set fields
This commit is contained in:
parent
4a1d80ce4f
commit
68ea526f34
|
@ -110,10 +110,16 @@ namespace Blarg.GameFramework.TileMap.Prefabs
|
|||
if (depth <= 0)
|
||||
throw new ArgumentException("depth");
|
||||
|
||||
_width = width;
|
||||
_height = height;
|
||||
_depth = depth;
|
||||
|
||||
_bounds = new BoundingBox();
|
||||
_bounds.Min.Set(Vector3.Zero);
|
||||
_bounds.Max.Set(width, height, depth);
|
||||
|
||||
_rotationBounds = new BoundingBox();
|
||||
|
||||
int numTiles = width * height * depth;
|
||||
_data = new Tile[numTiles];
|
||||
for (int i = 0; i < numTiles; ++i)
|
||||
|
|
Reference in a new issue