public static NetworkRequest Prepare(short action, short type) { NetworkRequest request = new NetworkRequest(NetworkCode.SPECIES_ACTION); request.AddShort16(action); request.AddShort16(type); 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(short type) { NetworkRequest request = new NetworkRequest(NetworkCode.LOGOUT); request.AddShort16(type); return request; }
public static NetworkRequest Prepare(short type) { NetworkRequest request = new NetworkRequest(NetworkCode.LOGOUT); request.AddShort16(type); 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) { NetworkRequest request = new NetworkRequest(NetworkCode.SHOP); // request.addShort16(0); request.AddShort16(type); 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) { NetworkRequest request = new NetworkRequest(NetworkCode.SHOP); // request.addShort16(0); request.AddShort16(type); return(request); }