Exemple #1
0
 public Block(BlockKey key, string identifier,
              BlockProperties parameters,
              AdjacentList <BlockMeshSegment> mesh,
              AdjacentList <Rectangle> textureClippings)
     : this(key, identifier, parameters)
 {
     Mesh             = mesh;
     TextureClippings = textureClippings;
 }
Exemple #2
0
 public Block(BlockKey key, string identifier,
              BlockProperties properties)
 {
     Key        = key;
     Identifier = identifier ??
                  throw new ArgumentNullException(nameof(identifier));
     Properties = properties ??
                  throw new ArgumentNullException(nameof(properties));
 }