示例#1
0
 public void AddGlobalWall(string name, GlobalWall globalWall)
 {
     globalWall.mod         = this;
     globalWall.Name        = name;
     this.globalWalls[name] = globalWall;
     WallLoader.globalWalls.Add(globalWall);
 }
示例#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);
            }
        }
示例#3
0
文件: Mod.cs 项目: popovn/tModLoader
 public void AddGlobalWall(string name, GlobalWall globalWall)
 {
     globalWall.mod = this;
     globalWall.Name = name;
     this.globalWalls[name] = globalWall;
     WallLoader.globalWalls.Add(globalWall);
 }