public void AddGlobalTile(string name, GlobalTile globalTile) { globalTile.mod = this; globalTile.Name = name; this.globalTiles[name] = globalTile; TileLoader.globalTiles.Add(globalTile); }
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); } }
public void SetGlobalTile(GlobalTile globalTile) { globalTile.mod = this; this.globalTile = globalTile; }