public ModelLoader(ITagContainer diContainer) { this.diContainer = diContainer; scene = diContainer.GetTag <Scene>(); ecsWorld = diContainer.GetTag <DefaultEcs.World>(); sceneLoadSubscription = ecsWorld.Subscribe <messages.SceneLoaded>(HandleSceneLoaded); }
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); }
public Animal(ITagContainer diContainer) { scene = diContainer.GetTag <Scene>(); ecsWorld = diContainer.GetTag <DefaultEcs.World>(); sceneLoadSubscription = ecsWorld.Subscribe <messages.SceneLoaded>(HandleSceneLoaded); }