From 68ea526f347e4999679a4b545e7c812cb209a6d6 Mon Sep 17 00:00:00 2001 From: gered Date: Wed, 28 Aug 2013 18:26:49 -0400 Subject: [PATCH] set fields --- Blarg.GameFramework/TileMap/Prefabs/TilePrefab.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Blarg.GameFramework/TileMap/Prefabs/TilePrefab.cs b/Blarg.GameFramework/TileMap/Prefabs/TilePrefab.cs index f30227c..0ddcae5 100644 --- a/Blarg.GameFramework/TileMap/Prefabs/TilePrefab.cs +++ b/Blarg.GameFramework/TileMap/Prefabs/TilePrefab.cs @@ -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)