set fields

This commit is contained in:
Gered 2013-08-28 18:26:49 -04:00
parent 4a1d80ce4f
commit 68ea526f34

View file

@ -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)