Exemplo n.º 1
0
    //确认解锁
    public static void UnlockOk()
    {
        CG_BACKPACK_UNLOCK unlock = (CG_BACKPACK_UNLOCK)PacketDistributed.CreatePacket(MessageID.PACKET_CG_BACKPACK_UNLOCK);

        unlock.SetType(1);
        unlock.SendPacket();
    }
        public uint Execute(PacketDistributed ipacket)
        {
            CG_BACKPACK_UNLOCK packet = (CG_BACKPACK_UNLOCK )ipacket;

            if (null == packet)
            {
                return((uint)PACKET_EXE.PACKET_EXE_ERROR);
            }
            //enter your logic
            return((uint)PACKET_EXE.PACKET_EXE_CONTINUE);
        }