コード例 #1
0
        public uint Execute(PacketDistributed ipacket)
        {
            CG_TAKEOFF_FASHION packet = (CG_TAKEOFF_FASHION )ipacket;

            if (null == packet)
            {
                return((uint)PACKET_EXE.PACKET_EXE_ERROR);
            }
            //enter your logic
            return((uint)PACKET_EXE.PACKET_EXE_CONTINUE);
        }
コード例 #2
0
ファイル: FashionLogic.cs プロジェクト: kimch2/PackageClient
    void TakeOffOnClick()
    {
        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_TAKEOFF_FASHION packet = (CG_TAKEOFF_FASHION)PacketDistributed.CreatePacket(MessageID.PACKET_CG_TAKEOFF_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_CANCEL_DREAM);
            PACK.SendPacket();
            //GameManager.gameManager.FlyWingMananger.DreamFlyWing(m_curChooseFashionData.ItemVisualID);
        }
    }