Example #1
0
 public ModelLoader(ITagContainer diContainer)
 {
     this.diContainer      = diContainer;
     scene                 = diContainer.GetTag <Scene>();
     ecsWorld              = diContainer.GetTag <DefaultEcs.World>();
     sceneLoadSubscription = ecsWorld.Subscribe <messages.SceneLoaded>(HandleSceneLoaded);
 }
Example #2
0
 public Savegame(ITagContainer diContainer)
 {
     world    = diContainer.GetTag <DefaultEcs.World>();
     scene    = diContainer.GetTag <Scene>();
     savegame = diContainer.GetTag <zzio.Savegame>();
     disableAttackTriggerDisposable = world.Subscribe <GSModDisableAttackTrigger>(HandleDisableAttackTrigger);
     removeItemDisposable           = world.Subscribe <GSModRemoveItem>(HandleRemoveItem);
     changeNpcStateDisposable       = world.Subscribe <GSModChangeNPCState>(HandleChangeNpcState);
     disableTriggerDisposable       = world.Subscribe <GSModDisableTrigger>(HandleDisableTrigger);
     removeModelDisposable          = world.Subscribe <GSModRemoveModel>(HandleRemoveModel);
     setTriggerDisposable           = world.Subscribe <GSModSetTrigger>(HandleSetTrigger);
     setNpcModifierDisposable       = world.Subscribe <GSModSetNPCModifier>(HandleSetNpcModifier);
     gsmodForSceneDisposable        = world.Subscribe <messages.GSModForScene>(HandleGSModForScene);
 }
Example #3
0
 public Animal(ITagContainer diContainer)
 {
     scene    = diContainer.GetTag <Scene>();
     ecsWorld = diContainer.GetTag <DefaultEcs.World>();
     sceneLoadSubscription = ecsWorld.Subscribe <messages.SceneLoaded>(HandleSceneLoaded);
 }