public static byte AddTile(Package pack, Geometry.Tile tile) { byte output = tiles[pack].Add(tile); ShortIdentity id = new ShortIdentity(pack, output); tiles[pack][output].SetID(id); WriteLine(tile.Identity); return(output); }
internal void SetID(ShortIdentity newIdentity) { Identity = newIdentity; }
/// <summary> /// This might look weird, but this creates an air tile. It's worth mentioning that /// the 0 tile is reserved for air, and you don't need to initialize an air tile for your package either. /// </summary> internal Tile() { Identity = new ShortIdentity(0); }