Beispiel #1
0
        public void FinalizeDataHolder()
        {
            var archetypes = ArchetypeMgr.GetArchetypes(Race, Class);

            if (archetypes == null)
            {
                ContentMgr.OnInvalidDBData(GetType().Name + " \"{0}\" refers to invalid Archetype: {1} {2}.", this, Race, Class);
            }
            else
            {
                foreach (var archetype in archetypes)
                {
                    ActionButton.Set(archetype.ActionButtons, Index, Action, Type, Info);
                }
            }
        }
Beispiel #2
0
        public void FinalizeDataHolder()
        {
            List <Archetype> archetypes = ArchetypeMgr.GetArchetypes(this.Race, this.Class);

            if (archetypes == null)
            {
                ContentMgr.OnInvalidDBData(this.GetType().Name + " \"{0}\" refers to invalid Archetype: {1} {2}.",
                                           (object)this, (object)this.Race, (object)this.Class);
            }
            else
            {
                foreach (Archetype archetype in archetypes)
                {
                    ActionButton.Set(archetype.ActionButtons, this.Index, this.Action, this.Type, this.Info);
                }
            }
        }