protected override void Init(IServiceCollection services) { _filter = CreateFilter(new EntityFilterConfiguration().With <RectTransform>()); _transform = GetReadOnly <RectTransform>(); _renderQueue = services.Get <BoundingBoxRenderQueue>(); }
protected override void Init(IServiceCollection services) { _camera = GetMutable <CameraComponent>(); _transform = GetReadOnly <Transform3D>(); _filter = CreateFilter(new EntityFilterConfiguration().With <CameraComponent>().With <Transform3D>()); _graphicsSystem = services.Get <GraphicsSystem>(); }
protected override void Init(IServiceCollection services) { _transform = GetReadOnly <Transform3D>(); _model = GetReadOnly <ModelComponent>(); _filter = CreateFilter(new EntityFilterConfiguration().With <Transform3D>().With <ModelComponent>()); _queue = services.Get <SimpleRenderQueue>(); }
protected override void Init(IServiceCollection services) { _filter = CreateFilter(new EntityFilterConfiguration().With <TextComponent>().With <RectTransform>()); _text = GetReadOnly <TextComponent>(); _transform = GetReadOnly <RectTransform>(); _renderQueue = services.Get <SpriteRenderQueue>(); }
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>(); }
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>(); }
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; } }