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