Example #1
0
 public bool HasObjectBeenDestroyed(PersistentlyDestructible obj)
 {
     return(_destroyedObjects.Contains(obj.guid.guid));
 }
Example #2
0
 /**
  * Marks an object as persistently destroyed, e.g. it shall not spawn again when reloading its scene.
  * See also `PersistentlyDestructible` behavior.
  */
 public void MarkAsDestroyed(PersistentlyDestructible obj)
 {
     _destroyedObjects.Add(obj.guid.guid);
 }