Exemplo n.º 1
0
    public override void Initialize()
    {
        base.Initialize();

        UpdatesAfter.Add(typeof(TransformSystem));
        UpdatesAfter.Add(typeof(PhysicsSystem));
        UpdatesBefore.Add(typeof(EyeUpdateSystem));
    }
Exemplo n.º 2
0
        public override void Initialize()
        {
            base.Initialize();

            SubscribeLocalEvent <UpdateContainerOcclusionMessage>(UpdateContainerOcclusion);

            UpdatesBefore.Add(typeof(SpriteSystem));
        }
Exemplo n.º 3
0
        public override void Initialize()
        {
            base.Initialize();
            SubscribeLocalEvent <PlayerDetachedSystemMessage>(PlayerDetached);

            _audioSystem = EntitySystemManager.GetEntitySystem <AudioSystem>();

            UpdatesBefore.Add(typeof(PhysicsSystem));
        }
Exemplo n.º 4
0
        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);
        }
Exemplo n.º 5
0
        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);
        }
Exemplo n.º 6
0
        public override void Initialize()
        {
            base.Initialize();

            UpdatesBefore.Add(typeof(PhysicsSystem));
        }
        public override void Initialize()
        {
            base.Initialize();

            UpdatesBefore.Add(typeof(MetabolismSystem));
        }