public void AddGlobalWall(string name, GlobalWall globalWall) { globalWall.mod = this; globalWall.Name = name; this.globalWalls[name] = globalWall; WallLoader.globalWalls.Add(globalWall); }
private void AutoloadGlobalWall(Type type) { GlobalWall globalWall = (GlobalWall)Activator.CreateInstance(type); globalWall.mod = this; string name = type.Name; if (globalWall.Autoload(ref name)) { AddGlobalWall(name, globalWall); } }