You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
692 B

using System;
namespace ET
{
[ActorMessageHandler]
[FriendClass(typeof(Unit))]
public class C2M_GameTimedHandler: AMActorLocationRpcHandler<Unit, C2M_GameTime, M2C_GameTime>
{
protected async override ETTask Run(Unit unit, C2M_GameTime request, M2C_GameTime response, Action reply)
{
try
{
response.GameTime = unit.GameTime;
reply();
}
catch (Exception e)
{
response.Error = ErrorCode.ERR_BuildError;
response.Message = e.ToString();
reply();
}
await ETTask.CompletedTask;
}
}
}