示例#1
0
 public void AddGlobalTile(string name, GlobalTile globalTile)
 {
     globalTile.mod         = this;
     globalTile.Name        = name;
     this.globalTiles[name] = globalTile;
     TileLoader.globalTiles.Add(globalTile);
 }
示例#2
0
        private void AutoloadGlobalTile(Type type)
        {
            GlobalTile globalTile = (GlobalTile)Activator.CreateInstance(type);

            globalTile.mod = this;
            string name = type.Name;

            if (globalTile.Autoload(ref name))
            {
                AddGlobalTile(name, globalTile);
            }
        }
示例#3
0
文件: Mod.cs 项目: popovn/tModLoader
 public void AddGlobalTile(string name, GlobalTile globalTile)
 {
     globalTile.mod = this;
     globalTile.Name = name;
     this.globalTiles[name] = globalTile;
     TileLoader.globalTiles.Add(globalTile);
 }
示例#4
0
文件: Mod.cs 项目: Exeton/tModLoader
 public void SetGlobalTile(GlobalTile globalTile)
 {
     globalTile.mod = this;
     this.globalTile = globalTile;
 }