예제 #1
0
    void EquipOnClick()
    {
        Tab_FashionData m_curChooseFashionData = TableManager.GetFashionDataByID(m_curChooseFashion, 0);
        int             m_curChooseFashionType = 0;

        if (m_curChooseFashionData == null)
        {
            return;
        }
        m_curChooseFashionType = m_curChooseFashionData.FashionType;
        if (m_curChooseFashionType == (int)FashionType.TYPE_ClOSETH)
        {
            CG_WEAR_FASHION packet = (CG_WEAR_FASHION)PacketDistributed.CreatePacket(MessageID.PACKET_CG_WEAR_FASHION);
            packet.FashionID = m_curChooseFashion;
            packet.SendPacket();
        }
        else if (m_curChooseFashionType == (int)FashionType.TYPE_WING)
        {
            CG_ASK_EQUIPFLYWING PACK = (CG_ASK_EQUIPFLYWING)PacketDistributed.CreatePacket(MessageID.PACKET_CG_ASK_EQUIPFLYWING);
            PACK.SetFlyWingType((int)GlobeVar.FLY_SOCKET_TYPE.FLY_SOCKET_DREAM);
            PACK.SetFlyWingId1(m_curChooseFashionData.ItemVisualID);
            PACK.SendPacket();
            //GameManager.gameManager.FlyWingMananger.DreamFlyWing(m_curChooseFashionData.ItemVisualID);
        }
    }
예제 #2
0
        public uint Execute(PacketDistributed ipacket)
        {
            CG_WEAR_FASHION packet = (CG_WEAR_FASHION )ipacket;

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