Example #1
0
        /// <summary>
        /// METHOD: AddEntityWorld, a method which adds an entity to the world
        /// </summary>
        /// <param name="e"></param>
        public void AddEntityWorld(IEntity e)
        {
            // ADD entity passed in to SceneManagerList
            SceneMgrEList.Add(e);

            _sceneGraph.AddSceneList(e);
        }
Example #2
0
        /// <summary>
        /// METHOD: RemoveEntityFromWorld a method which removes a specified entity from the world
        /// </summary>
        /// <param name="e"></param>
        public void RemoveEntityFromWorld(IEntity e)
        {
            // REMOVE entity passed in from the game world

            // REMOVE entity passed in from the SceneManager
            SceneMgrEList.Remove(e);
        }