public void SendDeleteBuildings(string status, string playerId) { var data = new CollectionBuilding(playerId, "", "", 0, 0, false, false, false, 0); var message = new Message("0531" + status, data); var str = JsonConvert.SerializeObject(message); ws.Send(str); }
public void SendUpdateBuilding(string status, string playerId, string playerStructureId, string structureId, int level, float position, bool isConstructed, bool isFlipped, bool isUpgrading, long endDate) { var data = new CollectionBuilding(playerId, playerStructureId, structureId, level, position, isConstructed, isFlipped, isUpgrading, endDate); var message = new Message("0540" + status, data); var str = JsonConvert.SerializeObject(message); ws.Send(str); }
public void SendDeleteBuilding(string status, string playerId, string playerStructureId) { var data = new CollectionBuilding(playerId, playerStructureId, "", 0, 0, false, false, false, new DateTime()); var message = new Message("0530" + status, data); var str = JsonConvert.SerializeObject(message); ws.Send(str); }