Пример #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);
             }
         }
     }
 }
Пример #2
0
 public AddSystem()
 {
     this.system = null;
 }
Пример #3
0
 public AddSystem(ProvenceSystem system)
 {
     this.system = system;
 }
Пример #4
0
 public SystemReadyEvent(ProvenceSystem system)
 {
     this.system = system;
 }