public override void Initialize() { base.Initialize(); UpdatesAfter.Add(typeof(TransformSystem)); UpdatesAfter.Add(typeof(PhysicsSystem)); UpdatesBefore.Add(typeof(EyeUpdateSystem)); }
public override void Initialize() { base.Initialize(); SubscribeLocalEvent <UpdateContainerOcclusionMessage>(UpdateContainerOcclusion); UpdatesBefore.Add(typeof(SpriteSystem)); }
public override void Initialize() { base.Initialize(); SubscribeLocalEvent <PlayerDetachedSystemMessage>(PlayerDetached); _audioSystem = EntitySystemManager.GetEntitySystem <AudioSystem>(); UpdatesBefore.Add(typeof(PhysicsSystem)); }
public override void Initialize() { base.Initialize(); UpdatesBefore.Add(typeof(SharedBroadphaseSystem)); var configManager = IoCManager.Resolve <IConfigurationManager>(); configManager.OnValueChanged(CVars.GenerateGridFixtures, SetEnabled, true); configManager.OnValueChanged(CVars.GridFixtureEnlargement, SetEnlargement, true); }
public override void Initialize() { base.Initialize(); UpdatesBefore.Add(typeof(SpriteSystem)); UpdatesAfter.Add(typeof(TransformSystem)); UpdatesAfter.Add(typeof(PhysicsSystem)); _mapManager.MapCreated += MapManagerOnMapCreated; _mapManager.MapDestroyed += MapManagerOnMapDestroyed; SubscribeLocalEvent <EntMapIdChangedMessage>(EntMapIdChanged); SubscribeLocalEvent <MoveEvent>(EntMoved); SubscribeLocalEvent <EntParentChangedMessage>(EntParentChanged); SubscribeLocalEvent <PointLightRadiusChangedMessage>(PointLightRadiusChanged); SubscribeLocalEvent <RenderTreeRemoveSpriteMessage>(RemoveSprite); SubscribeLocalEvent <RenderTreeRemoveLightMessage>(RemoveLight); }
public override void Initialize() { base.Initialize(); UpdatesBefore.Add(typeof(PhysicsSystem)); }
public override void Initialize() { base.Initialize(); UpdatesBefore.Add(typeof(MetabolismSystem)); }