Beispiel #1
0
 public void AddSystemPackageAtRuntime(string packageName)
 {
     if (ProvenceManager.Collections <SystemPackage>().ContainsKey(packageName))
     {
         HashSet <Type> package = ProvenceManager.Collections <SystemPackage>()[packageName].systems;
         foreach (Type systemType in package)
         {
             if (!systemDictionary.ContainsKey(systemType))
             {
                 ProvenceSystem system = (ProvenceSystem)Activator.CreateInstance(systemType);
                 AddSystem((dynamic)system);
             }
         }
     }
 }
Beispiel #2
0
 public AddSystem()
 {
     this.system = null;
 }
Beispiel #3
0
 public AddSystem(ProvenceSystem system)
 {
     this.system = system;
 }
Beispiel #4
0
 public SystemReadyEvent(ProvenceSystem system)
 {
     this.system = system;
 }