public SceneManager(SingularityGame game) { this.Game = game; Instance = this; this.GameScenes = new Dictionary <string, GameScene>(); this.SceneStack = new Stack <GameScene>(); this.SceneQueue = new Queue <GameScene>(); }
/// <summary> /// Creates a new <see cref="GameScene"/> /// </summary> /// <param name="sceneKey">Unique key for <seealso cref="SceneManager"/></param> /// <param name="sceneSize">Size of the scene in 2^x</param> /// <param name="minPartition">Minimum size of <seealso cref="Octree{T}"/> partitioning</param> /// <param name="precision">Buffer radius for <seealso cref="Octree{T}"/></param> public GameScene(SingularityGame game, String sceneKey, int sceneSize = 16, int minPartition = 2, float precision = 0.0f) { this.Game = game; this.SceneKey = sceneKey; // Setting default values for all members this.CameraPosition = new Vector3(); //this.ColliderObjects = new Dictionary<Type, IList>(); this.BufferedObjects = new List <GameObject>(); this.ColliderObjects = new Octree <GameObject>(sceneSize, minPartition, precision); }