Ejemplo n.º 1
0
 public void AddGlobalBuff(string name, GlobalBuff globalBuff)
 {
     globalBuff.mod         = this;
     globalBuff.Name        = name;
     this.globalBuffs[name] = globalBuff;
     BuffLoader.globalBuffs.Add(globalBuff);
 }
Ejemplo n.º 2
0
        private void AutoloadGlobalBuff(Type type)
        {
            GlobalBuff globalBuff = (GlobalBuff)Activator.CreateInstance(type);

            globalBuff.mod = this;
            string name = type.Name;

            if (globalBuff.Autoload(ref name))
            {
                AddGlobalBuff(name, globalBuff);
            }
        }
Ejemplo n.º 3
0
		public void AddGlobalBuff(string name, GlobalBuff globalBuff)
		{
			globalBuff.mod = this;
			globalBuff.Name = name;
			this.globalBuffs[name] = globalBuff;
			BuffLoader.globalBuffs.Add(globalBuff);
		}