//<<<<<<< HEAD
 //    public void send(int x, int y) {
 //
 //        packet = new GamePacket(request_id);
 //        packet.addInt32 (x);
 //        packet.addInt32 (y);
 //=======
 public void send(string x, string y)
 {
     packet = new GamePacket(request_id);
     packet.addString(x);
     packet.addString(y);
     //>>>>>>> Dong
 }
 public RequestLogin send(string username, string password)
 {
     Debug.Log ("sending packet");
     packet = new GamePacket (request_id);
     packet.addString (Constants.CLIENT_VERSION);
     packet.addString (username);
     packet.addString (password);
     return this;
 }
 // Update is called once per frame
 public void send(int id)
 {
     packet = new GamePacket(request_id);
     packet.addInt32(id);
 }
 public void send()
 {
     packet = new GamePacket(request_id);
 }
 // Use this for initialization
 public RequestRREndGame()
 {
     packet = new GamePacket(request_id = Constants.CMSG_RRENDGAME);
 }
 public RequestRRStartGame()
 {
     packet = new GamePacket(request_id = Constants.CMSG_RRSTARTGAME);
 }
Exemple #7
0
 // Use this for initialization
 public RequestRRGetMap()
 {
     packet = new GamePacket(request_id = Constants.CMSG_RRGETMAP);
 }
Exemple #8
0
 public RequestRRStartGame()
 {
     packet = new GamePacket(request_id = Constants.CMSG_RRSTARTGAME);
 }
 // Update is called once per frame
 public void send(int id)
 {
     packet = new GamePacket(request_id);
     packet.addInt32 (id);
 }
 // Use this for initialization
 public RequestRREndGame()
 {
     packet = new GamePacket(request_id = Constants.CMSG_RRENDGAME);
 }
 public RequestRaceInit()
 {
     packet = new GamePacket (request_id = Constants.CMSG_RACE_INIT);
 }
 // Use this for initialization
 public RequestRRGetMap()
 {
     packet = new GamePacket(request_id = Constants.CMSG_RRGETMAP);
 }
 public void send(int keytype, int key)
 {
     packet = new GamePacket(request_id);
     packet.addInt32 (keytype);
     packet.addInt32 (key);
 }
 public void send()
 {
     packet = new GamePacket(request_id);
 }
Exemple #15
0
 public RequestRaceInit()
 {
     packet = new GamePacket(request_id = Constants.CMSG_RACE_INIT);
 }
 public void send(int keytype, int key)
 {
     packet = new GamePacket(request_id);
     packet.addInt32(keytype);
     packet.addInt32(key);
 }