public override void CreateReferences()
        {
            base.CreateReferences();

            this.m_type = this.ParseType(this.GetValue("Type", 0));
            this.m_requiredClanLevel = this.GetIntegerValue("RequiredClanLevel", 0);
        }
Ejemplo n.º 2
0
        public static LogicAllianceBadgeLayerData GetFirstUnlockedAllianceBadgeLayerByType(LogicAllianceBadgeLayerType type, int allianceLevel)
        {
            LogicAllianceBadgeLayerData allianceBadgeLayer = null;
            LogicDataTable allianceBadgeLayerTable         = LogicDataTables.GetTable(LogicDataType.ALLIANCE_BADGE_LAYER);

            for (int i = 0; i < allianceBadgeLayerTable.GetItemCount(); i++)
            {
                LogicAllianceBadgeLayerData data = (LogicAllianceBadgeLayerData)allianceBadgeLayerTable.GetItemAt(i);

                if (data.GetBadgeType() == LogicAllianceBadgeLayerType.FOREGROUND && data.GetRequiredClanLevel() <= allianceLevel)
                {
                    allianceBadgeLayer = data;
                    break;
                }
            }

            return(allianceBadgeLayer);
        }