public static NetworkRequest Prepare(string user_id, string password) { NetworkRequest request = new NetworkRequest(NetworkCode.LOGIN); request.AddString(user_id); request.AddString(password); return request; }
public static NetworkRequest Prepare(string version, string session_id) { NetworkRequest request = new NetworkRequest(NetworkCode.CLIENT); request.AddString(version); request.AddString(session_id); return request; }
public static NetworkRequest Prepare(string user_id, string password) { NetworkRequest request = new NetworkRequest(NetworkCode.LOGIN); request.AddString(user_id); request.AddString(password); return(request); }
public static NetworkRequest Prepare(string version, string session_id) { NetworkRequest request = new NetworkRequest(NetworkCode.CLIENT); request.AddString(version); request.AddString(session_id); return(request); }
public static NetworkRequest Prepare(string fname, string lname, string email, string password, string name, short color) { NetworkRequest request = new NetworkRequest (NetworkCode.REGISTER); request.AddString (fname); request.AddString (lname); request.AddString (email); request.AddString (password); request.AddString (name); return request; }
public static NetworkRequest Prepare(string fname, string lname, string email, string password, string name, short color) { NetworkRequest request = new NetworkRequest(NetworkCode.REGISTER); request.AddString(fname); request.AddString(lname); request.AddString(email); request.AddString(password); request.AddString(name); return(request); }
public static NetworkRequest Prepare(int playerID, string playerName) { NetworkRequest request = new NetworkRequest(NetworkCode.MATCH_STATUS); request.AddInt32(playerID); request.AddString (playerName); return request; }
public static NetworkRequest Prepare(string message) { NetworkRequest request = new NetworkRequest(NetworkCode.ERROR_LOG); request.AddString(message); return request; }
public static NetworkRequest Prepare(string message) { NetworkRequest request = new NetworkRequest(NetworkCode.ERROR_LOG); request.AddString(message); return(request); }
public static NetworkRequest Prepare(int playerID, string playerName) { NetworkRequest request = new NetworkRequest(NetworkCode.MATCH_STATUS); request.AddInt32(playerID); request.AddString(playerName); return(request); }
public static NetworkRequest Prepare(string sessionID) { NetworkRequest request = new NetworkRequest(NetworkCode.MATCH_START); request.AddString(sessionID); return(request); }
public static NetworkRequest Prepare(short type, string message) { NetworkRequest request = new NetworkRequest(NetworkCode.MESSAGE); request.AddShort16(type); request.AddString(message); return request; }
public static NetworkRequest Prepare(short type, string message) { NetworkRequest request = new NetworkRequest(NetworkCode.MESSAGE); request.AddShort16(type); request.AddString(message); return(request); }
// Card Constructor //public void init(BattlePlayer player, int cardID, int diet, // int level, int attack, int health,string species_name, string type, string description public static NetworkRequest Prepare(int playerID, int cardID, int diet, int level, int attack, int health, string species_name, string type, string description) { NetworkRequest request = new NetworkRequest(NetworkCode.SUMMON_CARD); request.AddInt32(playerID); request.AddInt32(cardID); request.AddInt32 (diet); request.AddInt32(level); request.AddInt32(attack); request.AddInt32 (health); request.AddString (species_name); // These two not used request.AddString (type); request.AddString (description); return request; }
// Card Constructor //public void init(BattlePlayer player, int cardID, int diet, // int level, int attack, int health,string species_name, string type, string description public static NetworkRequest Prepare(int playerID, int cardID, int diet, int level, int attack, int health, string species_name, string type, string description) { NetworkRequest request = new NetworkRequest(NetworkCode.SUMMON_CARD); request.AddInt32(playerID); request.AddInt32(cardID); request.AddInt32(diet); request.AddInt32(level); request.AddInt32(attack); request.AddInt32(health); request.AddString(species_name); // These two not used request.AddString(type); request.AddString(description); return(request); }