Exemplo n.º 1
0
        public void SetFacialHair(int id)
        {
            TDCharacterAppearance data = TDCharacterAppearanceTable.GetAppearanceByID(AppearanceSlot.FacialHair, m_AppearanceData.sex, id);

            if (data != null)
            {
                m_FacialHair.SetSkin(m_AppearanceData.sex, (int)data.Appearance);
                m_AppearanceData.basicAppearance.facialHairID = id;
            }
        }
Exemplo n.º 2
0
        private void InitCharacterAppearanceData()
        {
            var database = SQLMgr.S.Open("Game");
            var reader   = database.LoadTable("CharacterAppearance");

            while (reader.Read())
            {
                TDCharacterAppearanceTable.OnAddRow(reader);
            }
        }
Exemplo n.º 3
0
        private void ReadTable(TDSqlMetaData metaData)
        {
            var database = SQLMgr.S.Open(metaData.databaseName);
            var reader   = database.LoadTable(metaData.tableName);

            while (reader.Read())
            {
                TDCharacterAppearanceTable.OnAddRow(reader);
            }
        }
Exemplo n.º 4
0
        private void RefreshListView()
        {
            switch (m_Slot)
            {
            case CreateCharacterAppearanceSlot.Hair:
                m_SelectAppearanceData = TDCharacterAppearanceTable.GetAppearanceDataGroup(AppearanceSlot.Hair, m_BasicAppearance.sex);
                break;

            case CreateCharacterAppearanceSlot.Head:
                m_SelectAppearanceData = TDCharacterAppearanceTable.GetAppearanceDataGroup(AppearanceSlot.Head, m_BasicAppearance.sex);
                break;

            case CreateCharacterAppearanceSlot.FacialHair:
                m_SelectAppearanceData = TDCharacterAppearanceTable.GetAppearanceDataGroup(AppearanceSlot.FacialHair, m_BasicAppearance.sex);
                break;

            case CreateCharacterAppearanceSlot.EyeBrows:
                m_SelectAppearanceData = TDCharacterAppearanceTable.GetAppearanceDataGroup(AppearanceSlot.EyeBrows, m_BasicAppearance.sex);
                break;
            }

            m_ListView.SetDataCount(m_SelectAppearanceData != null ? m_SelectAppearanceData.GetDataCount(m_BasicAppearance.sex) : 0);
        }
Exemplo n.º 5
0
        public void SetEyebrows(int id)
        {
            TDCharacterAppearance data = TDCharacterAppearanceTable.GetAppearanceByID(AppearanceSlot.EyeBrows, m_AppearanceData.sex, id);

            m_AppearanceData.basicAppearance.eyeBrows = m_Eyebrows.SetSkin(m_AppearanceData.sex, data != null ? (int)data.Appearance : -1);
        }
Exemplo n.º 6
0
        public void SetHead(int id)
        {
            TDCharacterAppearance data = TDCharacterAppearanceTable.GetAppearanceByID(AppearanceSlot.Head, m_AppearanceData.sex, id);

            m_AppearanceData.basicAppearance.headID = m_Head.SetSkin(m_AppearanceData.sex, data != null ? (int)data.Appearance : -1);
        }