Ejemplo n.º 1
0
 public void AddGlobalWall(string name, GlobalWall globalWall)
 {
     globalWall.mod         = this;
     globalWall.Name        = name;
     this.globalWalls[name] = globalWall;
     WallLoader.globalWalls.Add(globalWall);
 }
Ejemplo n.º 2
0
        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);
            }
        }
Ejemplo n.º 3
0
 public void AddGlobalWall(string name, GlobalWall globalWall)
 {
     globalWall.mod = this;
     globalWall.Name = name;
     this.globalWalls[name] = globalWall;
     WallLoader.globalWalls.Add(globalWall);
 }