示例#1
0
 public void AddGlobalBuff(string name, GlobalBuff globalBuff)
 {
     globalBuff.mod         = this;
     globalBuff.Name        = name;
     this.globalBuffs[name] = globalBuff;
     BuffLoader.globalBuffs.Add(globalBuff);
 }
示例#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);
            }
        }
示例#3
0
		public void AddGlobalBuff(string name, GlobalBuff globalBuff)
		{
			globalBuff.mod = this;
			globalBuff.Name = name;
			this.globalBuffs[name] = globalBuff;
			BuffLoader.globalBuffs.Add(globalBuff);
		}