Esempio n. 1
0
        /// <summary>
        /// Destroy the SimObject named name. This will dispose the SimObject
        /// and it will no longer be part of the scene or usable.
        /// </summary>
        /// <param name="name">The name of the SimObject to destroy.</param>
        public void destroySimObject(String name)
        {
            SimObjectBase simObject = simObjects[name];

            simObjects.Remove(name);
            simObject.Dispose();
            simObject._unsetSimObjectManager();
        }
Esempio n. 2
0
 /// <summary>
 /// Remove a SimObject. This does not destroy it and the caller takes
 /// ownership of the object for disposal.
 /// </summary>
 /// <param name="simObject">The SimObject to remove.</param>
 public void removeSimObject(SimObjectBase simObject)
 {
     simObjects.Remove(simObject.Name);
     simObject._unsetSimObjectManager();
 }