Example #1
0
 public void RemoveSystem <T>(SystemDestructionType destructionType = SystemDestructionType.SYSTEM_REMOVAL) where T : ProvenceSystem
 {
     if (systemDictionary.ContainsKey(typeof(T)))
     {
         systemDictionary[typeof(T)].Destroy(destructionType);
         systemDictionary.Remove(typeof(T));
     }
 }
Example #2
0
 public override void Destroy(SystemDestructionType destructionType)
 {
     DestroyAllObjects();
     DeregisterEventListeners();
 }
Example #3
0
 public void RemoveSystem <T>(T system, SystemDestructionType destructionType = SystemDestructionType.SYSTEM_REMOVAL) where T : ProvenceSystem
 {
     systemManager.RemoveSystem <T>(destructionType);
 }
Example #4
0
 public virtual void Destroy(SystemDestructionType destructionType)
 {
     world.eventManager.RemoveListener <WakeSystemEvent>(Awaken);
     world.eventManager.RemoveListener <WorldSafetyDestroy>(SafetyDestroy);
     DeregisterEventListeners();
 }