Example #1
0
        protected override void Init(IServiceCollection services)
        {
            _filter    = CreateFilter(new EntityFilterConfiguration().With <RectTransform>());
            _transform = GetReadOnly <RectTransform>();

            _renderQueue = services.Get <BoundingBoxRenderQueue>();
        }
Example #2
0
    protected override void Init(IServiceCollection services)
    {
        _camera    = GetMutable <CameraComponent>();
        _transform = GetReadOnly <Transform3D>();
        _filter    = CreateFilter(new EntityFilterConfiguration().With <CameraComponent>().With <Transform3D>());

        _graphicsSystem = services.Get <GraphicsSystem>();
    }
Example #3
0
    protected override void Init(IServiceCollection services)
    {
        _transform = GetReadOnly <Transform3D>();
        _model     = GetReadOnly <ModelComponent>();
        _filter    = CreateFilter(new EntityFilterConfiguration().With <Transform3D>().With <ModelComponent>());

        _queue = services.Get <SimpleRenderQueue>();
    }
Example #4
0
        protected override void Init(IServiceCollection services)
        {
            _filter    = CreateFilter(new EntityFilterConfiguration().With <TextComponent>().With <RectTransform>());
            _text      = GetReadOnly <TextComponent>();
            _transform = GetReadOnly <RectTransform>();

            _renderQueue = services.Get <SpriteRenderQueue>();
        }
Example #5
0
        protected override void Init(IServiceCollection services)
        {
            // TOOD: this must be sorted by Z-Index
            _filter = CreateFilter(new EntityFilterConfiguration().With <RectTransform>().With <InteractableComponent>());

            _interactable = GetMutable <InteractableComponent>();
            _transform    = GetReadOnly <RectTransform>();
        }
Example #6
0
        protected override void Init(IServiceCollection services)
        {
            _filter    = CreateFilter(new EntityFilterConfiguration().With <TextComponent>().With <RectTransform>());
            _text      = GetMutable <TextComponent>();
            _transform = GetReadOnly <RectTransform>();

            _textManager = services.Get <TextManager>();
            _fontManager = services.Get <FontManager>();
        }
Example #7
0
    protected override void Init(IServiceCollection services)
    {
        _transform = GetReadOnly <RectTransform>();
        _collider  = GetMutable <BoxColliderComponent>();

        _filter = CreateFilter(new EntityFilterConfiguration().With <RectTransform>().With <BoxColliderComponent>());

        _renderQueue = services.Get <BoundingBoxRenderQueue>();
        var config = services.Get <CollisionMatrixConfiguration>();

        if (config == null)
        {
            Logger.Warning <BoxCollision2DSystem>($"{nameof(BoxCollision2DSystem)} was registered but no CollisionMatrix was configured.");
        }
        else
        {
            _matrix = config.colliders;
        }
    }