using System; using Fantasy; using Fantasy.Async; using Fantasy.Entitas; using Fantasy.Network.Interface; namespace NB.Game; public class C2Game_GetRoleInfoRequestHandler : AddressRPC { protected override async FTask Run(Player entity, C2Game_GetRoleInfoRequest request, Game2C_GetRoleInfoResponse response, Action reply) { response.RoomCode = "136A69"; response.RoleInfo = entity.GetRoleInfo(); await FTask.CompletedTask; } }