示例#1
0
 public void SendUserAction(Network.UserActionData userActionData)
 {
     if (client?.Connected == true)
     {
         client.SendUserAction(userActionData, response =>
         {
             if (response != Network.ResponseType.Ok)
             {
                 client.RequestGameStateUpdate();
             }
         });
     }
 }
示例#2
0
 public void SendUserAction(UserActionData userAction, Action <ResponseType> responseAction)
 {
     RegisterResponse(userAction.MessageIndex, responseAction);
     SendUserAction(userAction);
 }
示例#3
0
 public void SendUserAction(UserActionData userAction)
 {
     Log.Verbose.Write(ErrorSystemType.Network, $"Send user action {userAction.UserAction} to server.");
     lastOwnHearbeat = DateTime.UtcNow;
     userAction.Send(server);
 }