예제 #1
0
        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);
        }
예제 #2
0
 internal void SetID(ShortIdentity newIdentity)
 {
     Identity = newIdentity;
 }
예제 #3
0
 /// <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);
 }