Esempio n. 1
0
 public static void HandleReload(NetworkMessage netMsg)
 {
     Message_Sr.PlayerAction action = netMsg.ReadMessage <Message_Sr.PlayerAction>();
     if (Networking_OnConnect.AccountVerefication(action.index, action.log, action.pass))
     {
         Player_MovePlayer pl = GetPlayerController(action.index);
         if (pl != null)
         {
             pl.StartReload();
         }
     }
 }
 public static void SendTopList(NetworkMessage netMsg)
 {
     Message_Sr.PlayerAction act = netMsg.ReadMessage <Message_Sr.PlayerAction>();
     if (Networking_OnConnect.AccountVerefication(act.index, act.log, act.pass))
     {
         NetworkConnection con = RoomsManager.GetPlayerConnection(act.index);
         if (con != null)
         {
             con.SendWriter(top, 1);
         }
     }
 }