Disposal routing (#1710)

* Implement disposal tagger
Implement disposal  router
Combine sprites to make conpipe-tagger sprite

* Implement change requests

* Remove nullable

* Update DisposalHolderComponent.cs

* Update DisposalHolderComponent.cs

* Update Content.Server/GameObjects/Components/Disposal/DisposalRouterComponent.cs

Co-authored-by: DrSmugleaf <DrSmugleaf@users.noreply.github.com>

Co-authored-by: Julian Giebel <j.giebel@netrocks.info>
Co-authored-by: DrSmugleaf <DrSmugleaf@users.noreply.github.com>
This commit is contained in:
Julian Giebel
2020-08-19 15:50:06 +02:00
committed by GitHub
parent 7be8657417
commit 1292adb001
14 changed files with 1554 additions and 1 deletions

View File

@@ -44,6 +44,31 @@
state_anchored: pipe-s
state_broken: pipe-b
- type: entity
id: DisposalTagger
parent: DisposalPipeBase
name: disposal pipe tagger
description: A pipe that tags entities for routing
components:
- type: Sprite
drawdepth: BelowFloor
sprite: Constructible/Power/disposal.rsi
state: conpipe-tagger
- type: Icon
sprite: Constructible/Power/disposal.rsi
state: conpipe-tagger
- type: DisposalTagger
- type: Appearance
visuals:
- type: DisposalVisualizer
state_free: conpipe-tagger
state_anchored: pipe-tagger
state_broken: pipe-b
- type: UserInterface
interfaces:
- key: enum.DisposalTaggerUiKey.Key
type: DisposalTaggerBoundUserInterface
- type: entity
id: DisposalTrunk
parent: DisposalPipeBase
@@ -131,6 +156,63 @@
- key: enum.DisposalUnitUiKey.Key
type: DisposalUnitBoundUserInterface
- type: entity
id: DisposalRouter
parent: DisposalPipeBase
name: disposal router
description: A three-way router. Entities with matching tags get routed to the side
components:
- type: Sprite
drawdepth: BelowFloor
sprite: Constructible/Power/disposal.rsi
state: conpipe-j1s
- type: Icon
sprite: Constructible/Power/disposal.rsi
state: conpipe-j1s
- type: DisposalRouter
degrees:
- 0
- -90
- 180
- type: Appearance
visuals:
- type: DisposalVisualizer
state_free: conpipe-j1s
state_anchored: pipe-j1s
state_broken: pipe-b
- type: Flippable
entity: DisposalRouterFlipped
- type: UserInterface
interfaces:
- key: enum.DisposalRouterUiKey.Key
type: DisposalRouterBoundUserInterface
- type: entity
id: DisposalRouterFlipped
parent: DisposalRouter
name: flipped router junction
components:
- type: Sprite
drawdepth: BelowFloor
sprite: Constructible/Power/disposal.rsi
state: conpipe-j2s
- type: Icon
sprite: Constructible/Power/disposal.rsi
state: conpipe-j2s
- type: DisposalRouter
degrees:
- 0
- 90
- 180
- type: Appearance
visuals:
- type: DisposalVisualizer
state_free: conpipe-j2s
state_anchored: pipe-j2s
state_broken: pipe-b
- type: Flippable
entity: DisposalRouter
- type: entity
id: DisposalJunction
parent: DisposalPipeBase