public static NetworkRequest Prepare(int playerID, int wonGame) { NetworkRequest request = new NetworkRequest(NetworkCode.MATCH_OVER); request.AddInt32(playerID); request.AddInt32(wonGame); return request; }
public static NetworkRequest Prepare(int playerID, int attackersPosition) { NetworkRequest request = new NetworkRequest(NetworkCode.TREE_ATTACK); request.AddInt32(playerID); request.AddInt32(attackersPosition); return request; }
public static NetworkRequest Prepare(int playerID, int roomID) { NetworkRequest request = new NetworkRequest (NetworkCode.MATCH_INIT); request.AddInt32 (playerID); request.AddInt32 (roomID); return request; }
public static NetworkRequest Prepare(int playerID, int wonGame) { NetworkRequest request = new NetworkRequest(NetworkCode.MATCH_OVER); request.AddInt32(playerID); request.AddInt32(wonGame); return(request); }
public static NetworkRequest Prepare(int zone_id, int user_id) { NetworkRequest request = new NetworkRequest(NetworkCode.ZONE); request.AddInt32(zone_id); request.AddInt32(user_id); return request; }
public static NetworkRequest Prepare(int playerID, int handPosition) { NetworkRequest request = new NetworkRequest(NetworkCode.DEAL_CARD); request.AddInt32(playerID); request.AddInt32(handPosition); Debug.Log("Deal Card , playerID: " + playerID); return request; }
public static NetworkRequest Prepare(int world_id, int player_id) { NetworkRequest request = new NetworkRequest(NetworkCode.ECOSYSTEM); request.AddInt32(world_id); request.AddInt32(player_id); return request; }
public static NetworkRequest Prepare(int playerID, int attackersPosition) { NetworkRequest request = new NetworkRequest(NetworkCode.TREE_ATTACK); request.AddInt32(playerID); request.AddInt32(attackersPosition); return(request); }
public static NetworkRequest Prepare(int world_id, int player_id) { NetworkRequest request = new NetworkRequest(NetworkCode.ECOSYSTEM); request.AddInt32(world_id); request.AddInt32(player_id); return(request); }
public static NetworkRequest Prepare(int zone_id, int user_id) { NetworkRequest request = new NetworkRequest(NetworkCode.ZONE); request.AddInt32(zone_id); request.AddInt32(user_id); return(request); }
public static NetworkRequest Prepare(int playerID, int roomID) { NetworkRequest request = new NetworkRequest(NetworkCode.MATCH_INIT); request.AddInt32(playerID); request.AddInt32(roomID); return(request); }
public static NetworkRequest Prepare(int playerID, int handPosition) { NetworkRequest request = new NetworkRequest(NetworkCode.DEAL_CARD); request.AddInt32(playerID); request.AddInt32(handPosition); Debug.Log("Deal Card , playerID: " + playerID); return(request); }
public static NetworkRequest Prepare(int zone_id, int player_id, int vegetation_capacity, int natural_event) { NetworkRequest request = new NetworkRequest(NetworkCode.ZONE_UPDATE); request.AddInt32(zone_id); // request.addInt32(Constants.USER_ID); request.AddInt32(player_id); request.AddInt32(vegetation_capacity); request.AddInt32(natural_event); return request; }
public static NetworkRequest Prepare(int zone_id, int player_id, int vegetation_capacity, int natural_event) { NetworkRequest request = new NetworkRequest(NetworkCode.ZONE_UPDATE); request.AddInt32(zone_id); // request.addInt32(Constants.USER_ID); request.AddInt32(player_id); request.AddInt32(vegetation_capacity); request.AddInt32(natural_event); return(request); }
public static NetworkRequest Prepare(short type, Dictionary<int, int> cartList) { NetworkRequest request = new NetworkRequest(NetworkCode.SHOP_ACTION); request.AddShort16(type); request.AddShort16((short) cartList.Count); foreach (KeyValuePair<int, int> entry in cartList) { request.AddInt32(entry.Key); request.AddInt32(entry.Value); } return request; }
public static NetworkRequest Prepare(short type, Dictionary <int, int> cartList) { NetworkRequest request = new NetworkRequest(NetworkCode.SHOP_ACTION); request.AddShort16(type); request.AddShort16((short)cartList.Count); foreach (KeyValuePair <int, int> entry in cartList) { request.AddInt32(entry.Key); request.AddInt32(entry.Value); } return(request); }
public static NetworkRequest Prepare(short action, Dictionary <int, int> speciesList) { NetworkRequest request = new NetworkRequest(NetworkCode.SPECIES_ACTION); request.AddShort16(action); request.AddShort16((short)speciesList.Count); foreach (KeyValuePair <int, int> entry in speciesList) { request.AddInt32(entry.Key); request.AddInt32(entry.Value); } 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(int playerID) { NetworkRequest request = new NetworkRequest(NetworkCode.END_TURN); request.AddInt32(playerID); return(request); }
public static NetworkRequest Prepare(int player_id) { NetworkRequest request = new NetworkRequest(NetworkCode.PLAYER_SELECT); request.AddInt32(player_id); return request; }
public static NetworkRequest Prepare(int player_id) { NetworkRequest request = new NetworkRequest(NetworkCode.PLAYER_SELECT); request.AddInt32(player_id); 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); }
// 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); }
public static NetworkRequest Prepare(int playerID) { NetworkRequest request = new NetworkRequest(NetworkCode.QUIT_MATCH); request.AddInt32(playerID); return request; }
public static NetworkRequest Prepare(int playerID) { NetworkRequest request = new NetworkRequest(NetworkCode.END_TURN); request.AddInt32(playerID); return request; }