public void PutPieceByInput(int selected, int target) { ReqMovePawn req = new ReqMovePawn(); req.Location = selected; req.Target = target; msg.SendMessageToServer(JgC2S_Msgs.kMovePawn, req); }
void HandleMessage(JStateObject state, ReqMovePawn req) { NtfMovePawn ntf = new NtfMovePawn(); ntf.LocalId = state.indexInRoom; ntf.Location = req.Location; ntf.Target = req.Target; ntf.Dummy = 9999; NotifyMessageToAllClients((byte)JgS2C_Msgs.kNtfMovePawn, ntf); }
public void PutPieceByInput(int selected, int target) { PutPiece(selected, target); ReqMovePawn req = new ReqMovePawn(); req.Location = selected; req.Target = target; JgRefs.ins_.msg.SendMessageToServer(JgC2S_Msgs.kMovePawn, req); //refactor: }
void RequestNextPawnMove() { ReqMovePawn req = new ReqMovePawn(); req.Location = 11; req.Target = 22; msg.SendMessageToServer(JgC2S_Msgs.kMovePawn, req); }