add gateway for admeme (#17587)

Co-authored-by: deltanedas <@deltanedas:kde.org>
This commit is contained in:
deltanedas
2023-08-02 10:47:18 +01:00
committed by GitHub
parent ce25812215
commit 3d1ade9684
13 changed files with 682 additions and 0 deletions

View File

@@ -0,0 +1,69 @@
- type: entity
abstract: true
parent: BaseStructure
id: BaseGateway
name: gateway
description: A mysterious gateway built by unknown hands, it allows for faster than light travel to far-flung locations.
components:
- type: Sprite
sprite: Structures/Machines/gateway.rsi
noRot: true
layers:
- state: frame
- state: portal
shader: unshaded
map: ["enum.GatewayVisualLayers.Portal"]
- state: on
shader: unshaded
map: ["enum.PowerDeviceVisualLayers.Powered"]
- type: GenericVisualizer
visuals:
enum.PowerDeviceVisuals.Powered:
enum.PowerDeviceVisualLayers.Powered:
True: { visible: true }
False: { visible: false }
enum.GatewayVisuals.Active:
enum.GatewayVisualLayers.Portal:
True: { visible: true }
False: { visible: false }
- type: InteractionOutline
- type: Physics
bodyType: Static
- type: Transform
noRot: true
- type: Fixtures
fixtures:
portalFixture:
shape:
!type:PhysShapeAabb
bounds: "-0.25,-0.48,0.25,0.48"
mask:
- FullTileMask
layer:
- WallLayer
hard: false
- type: Appearance
- type: entity
parent: BaseGateway
id: Gateway
components:
- type: ActivatableUI
key: enum.GatewayUiKey.Key
- type: ActivatableUIRequiresPower
- type: UserInterface
interfaces:
- key: enum.GatewayUiKey.Key
type: GatewayBoundUserInterface
- type: ApcPowerReceiver
powerLoad: 3000
- type: ExtensionCableReceiver
- type: Gateway
- type: entity
parent: BaseGateway
id: GatewayDestination
suffix: Destination
components:
- type: GatewayDestination
name: Unknown