| | 1 | | using System.Threading; |
| | 2 | | using Cysharp.Threading.Tasks; |
| | 3 | | using Decentraland.Renderer.RendererServices; |
| | 4 | | using rpc_csharp; |
| | 5 | |
|
| | 6 | | namespace RPC.Services |
| | 7 | | { |
| | 8 | | public class EmotesRendererServiceImpl : IEmotesRendererService<RPCContext> |
| | 9 | | { |
| | 10 | | public static void RegisterService(RpcServerPort<RPCContext> port) |
| | 11 | | { |
| 0 | 12 | | EmotesRendererServiceCodeGen.RegisterService(port, new EmotesRendererServiceImpl()); |
| 0 | 13 | | } |
| | 14 | |
|
| | 15 | | public async UniTask<TriggerSelfUserExpressionResponse> TriggerSelfUserExpression(TriggerSelfUserExpressionReque |
| | 16 | | { |
| 0 | 17 | | await UniTask.SwitchToMainThread(ct); |
| 0 | 18 | | UserProfile.GetOwnUserProfile().SetAvatarExpression(request.Id, UserProfile.EmoteSource.Command); |
| 0 | 19 | | return default; |
| 0 | 20 | | } |
| | 21 | | } |
| | 22 | | } |