19 lines
539 B
C#
19 lines
539 B
C#
using System;
|
|
using Fantasy;
|
|
using Fantasy.Async;
|
|
using Fantasy.Entitas;
|
|
using Fantasy.Network.Interface;
|
|
|
|
namespace NB.Game;
|
|
|
|
public class C2Game_GetRoleInfoRequestHandler : AddressRPC<Player, C2Game_GetRoleInfoRequest, Game2C_GetRoleInfoResponse>
|
|
{
|
|
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;
|
|
}
|
|
} |