コード例 #1
0
    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();
    }
コード例 #2
0
 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();
     }
 }