示例#1
0
        public uint Execute(PacketDistributed ipacket)
        {
            CG_WISHINGWELL_FETCH packet = (CG_WISHINGWELL_FETCH )ipacket;

            if (null == packet)
            {
                return((uint)PACKET_EXE.PACKET_EXE_ERROR);
            }
            //enter your logic
            return((uint)PACKET_EXE.PACKET_EXE_CONTINUE);
        }
示例#2
0
    void OnClickFetch()
    {
        int total = GameManager.gameManager.PlayerDataPool.CommonData.GetCommonData((int)Games.UserCommonData.USER_COMMONDATA.CD_WISHINGWELL_TOTAL);

        if (total > 0)
        {
            CG_WISHINGWELL_FETCH Pack = (CG_WISHINGWELL_FETCH)PacketDistributed.CreatePacket(MessageID.PACKET_CG_WISHINGWELL_FETCH);
            Pack.SetNoparam(0);
            Pack.SendPacket();
        }
        else
        {
            if (Singleton <ObjManager> .GetInstance().MainPlayer != null)
            {
                Singleton <ObjManager> .GetInstance().MainPlayer.SendNoticMsg(false, "#{3976}");
            }
            return;
        }
    }