//<<<<<<< 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); }
// Use this for initialization public RequestRRGetMap() { packet = new GamePacket(request_id = Constants.CMSG_RRGETMAP); }
// Update is called once per frame public void send(int id) { packet = new GamePacket(request_id); packet.addInt32 (id); }
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); }
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); }