Exemplo n.º 1
0
        public uint Execute(PacketDistributed ipacket)
        {
            CG_BELLE_CLOSE packet = (CG_BELLE_CLOSE )ipacket;

            if (null == packet)
            {
                return((uint)PACKET_EXE.PACKET_EXE_ERROR);
            }
            //enter your logic
            return((uint)PACKET_EXE.PACKET_EXE_CONTINUE);
        }
Exemplo n.º 2
0
 void DoBelleClose()
 {
     if (BelleInfoWindow.Instance() != null)
     {
         Tab_Belle belleTab = BelleInfoWindow.Instance().CurSellectedBelleData;
         if (belleTab == null)
         {
             return;
         }
         CG_BELLE_CLOSE closeRequest = (CG_BELLE_CLOSE)PacketDistributed.CreatePacket(MessageID.PACKET_CG_BELLE_CLOSE);
         closeRequest.SetBelleID(belleTab.Id);
         closeRequest.SendPacket();
     }
 }