Example #1
0
 public void SendUserAction(Network.UserActionData userActionData)
 {
     if (client?.Connected == true)
     {
         client.SendUserAction(userActionData, response =>
         {
             if (response != Network.ResponseType.Ok)
             {
                 client.RequestGameStateUpdate();
             }
         });
     }
 }
Example #2
0
 public void SendUserAction(UserActionData userAction, Action <ResponseType> responseAction)
 {
     RegisterResponse(userAction.MessageIndex, responseAction);
     SendUserAction(userAction);
 }
Example #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);
 }