public void SendCGBuildingLevelUp() { CG_Building_LevelUp packet = (CG_Building_LevelUp)PacketDistributed.CreatePacket(MessageID.PACKET_CG_BUILDING_LEVELUP); packet.SetBuildingID(long.Parse(values [0].text)); packet.SendPacket(); }
private void SendBuildingLevelUp(long buildingID) { if (levelUpReceived) { levelUpReceived = false; CG_Building_LevelUp packet = (CG_Building_LevelUp)PacketDistributed.CreatePacket(MessageID.PACKET_CG_BUILDING_LEVELUP); packet.SetBuildingID(buildingID); packet.SendPacket(); } }