Re-organize entity prototypes.

This commit is contained in:
Pieter-Jan Briers
2019-07-26 19:43:20 +02:00
parent c635aeba79
commit 448ee88357
56 changed files with 411 additions and 423 deletions

View File

@@ -1,156 +0,0 @@
- type: entity
name: "Item"
id: BaseItem
components:
- type: Item
Size: 5
- type: Clickable
- type: BoundingBox
aabb: "-0.25,-0.25,0.25,0.25"
- type: Collidable
mask: 5
layer: 8
IsScrapingFloor: true
- type: Physics
mass: 5
- type: Sprite
drawdepth: Items
- type: entity
name: "Emergency Toolbox With Handle"
parent: BaseItem
id: RedToolboxItem
description: A shiny red and robust container
components:
- type: Sprite
texture: Objects/toolbox_r.png
- type: Icon
texture: Objects/toolbox_r.png
- type: Storage
Capacity: 60
- type: Item
Size: 9999
- type: entity
name: "Mechanical Toolbox With Handle"
parent: BaseItem
id: BlueToolboxItem
description: A blue box, not the kind you're thinking of
components:
- type: Sprite
texture: Objects/Toolbox_b.png
- type: Icon
texture: Objects/Toolbox_b.png
- type: Storage
Capacity: 60
- type: Item
Size: 9999
- type: entity
name: Electrical Toolbox
parent: BaseItem
id: YellowToolboxItem
description: A toolbox typically stocked with electrical gear
components:
- type: Sprite
texture: Objects/Toolbox_y.png
- type: Icon
texture: Objects/Toolbox_y.png
- type: Storage
Capacity: 60
- type: Item
Size: 9999
- type: entity
id: YellowToolboxItemFilled
name: Electrical Toolbox (Filled)
parent: YellowToolboxItem
components:
- type: ToolboxElectricalFill
- type: entity
name: "Extra-Grip™ Mop"
parent: BaseItem
id: MopItem
description: A mop that cant be stopped, viscera cleanup detail awaits
components:
- type: Sprite
texture: Objects/mop.png
- type: Icon
texture: Objects/mop.png
- type: Item
Size: 10
- type: entity
name: "Fire Extinguisher"
parent: BaseItem
id: fire_extinguisher
description: Extinguishes fires.
components:
- type: Sprite
texture: Objects/fire_extinguisher.png
- type: Icon
texture: Objects/fire_extinguisher.png
- type: Item
Size: 10
#handheld lights
- type: entity
name: "Flashlight"
parent: BaseItem
id: FlashlightLantern
description: They light the way to freedom
components:
- type: HandheldLight
- type: Sprite
sprite: Objects/lantern.rsi
layers:
- state: lantern_off
- state: HandheldLightOnOverlay
shader: unshaded
visible: false
- type: Icon
sprite: Objects/lantern.rsi
state: lantern_off
- type: PointLight
state: Off
- type: entity
name: Bike Horn
parent: BaseItem
id: BikeHorn
description: A horn off of a bicycle.
components:
- type: Sprite
sprite: Objects/bikehorn.rsi
state: icon
- type: Icon
sprite: Objects/bikehorn.rsi
state: icon
- type: Item
Size: 5
sprite: Objects/bikehorn.rsi
- type: Sound
- type: EmitSoundOnUse
sound: /Audio/items/bikehorn.ogg
- type: entity
name: Table Parts
parent: BaseItem
id: TableParts
description: Parts of a table.
components:
- type: Sprite
sprite: Objects/table_parts.rsi
state: icon
- type: Icon
sprite: Objects/table_parts.rsi
state: icon
- type: Item
Size: 25
sprite: Objects/table_parts.rsi

View File

@@ -36,31 +36,3 @@
placement: placement:
mode: SnapgridBorder mode: SnapgridBorder
- type: entity
parent: airlock
id: airlock_external
name: External Airlock
components:
- type: Sprite
sprite: Buildings/airlock_external.rsi
- type: Icon
sprite: Buildings/airlock_external.rsi
- type: Appearance
visuals:
- type: AirlockVisualizer2D
open_sound: /Audio/machines/airlock_ext_open.ogg
close_sound: /Audio/machines/airlock_ext_close.ogg
- type: entity
parent: airlock
id: airlock_engineering
name: Engineering Airlock
components:
- type: Sprite
sprite: Buildings/airlock_engineering.rsi
- type: Icon
sprite: Buildings/airlock_engineering.rsi

View File

@@ -0,0 +1,27 @@
- type: entity
parent: airlock
id: airlock_external
name: External Airlock
components:
- type: Sprite
sprite: Buildings/airlock_external.rsi
- type: Icon
sprite: Buildings/airlock_external.rsi
- type: Appearance
visuals:
- type: AirlockVisualizer2D
open_sound: /Audio/machines/airlock_ext_open.ogg
close_sound: /Audio/machines/airlock_ext_close.ogg
- type: entity
parent: airlock
id: airlock_engineering
name: Engineering Airlock
components:
- type: Sprite
sprite: Buildings/airlock_engineering.rsi
- type: Icon
sprite: Buildings/airlock_engineering.rsi

View File

@@ -1,32 +1,3 @@
- type: entity
id: crate_generic
name: Crate
description: A large container for items.
components:
- type: Sprite
sprite: Buildings/crate.rsi
layers:
- state: crate
- state: crate_door
- type: Icon
sprite: Buildings/crate.rsi
state: crate
- type: Clickable
- type: BoundingBox
- type: Collidable
- type: Storage
Capacity: 60
- type: Damageable
- type: Destructible
thresholdvalue: 100
placement:
snap:
- Wall
- type: entity - type: entity
id: weldtank id: weldtank
name: Fueltank name: Fueltank

View File

@@ -72,58 +72,3 @@
- type: PoweredLight - type: PoweredLight
bulb: Bulb bulb: Bulb
- type: entity
parent: BaseItem
name: BaseLightbulb
id: BaseLightbulb
components:
- type: LightBulb
- type: entity
parent: BaseLightbulb
name: Light Tube
id: LightTube
components:
- type: LightBulb
bulb: Tube
- type: Sprite
sprite: Objects/light_tube.rsi
state: normal
- type: Icon
sprite: Objects/light_tube.rsi
state: normal
- type: entity
parent: BaseLightbulb
name: LED Light Tube
id: LedLightTube
components:
- type: LightBulb
bulb: Tube
color: "#EEEEFF"
BurningTemperature: 350
PowerUse: 9
- type: Sprite
sprite: Objects/light_tube.rsi
state: normal
- type: Icon
sprite: Objects/light_tube.rsi
state: normal
- type: entity
parent: BaseLightbulb
name: Light Bulb
id: LightBulb
components:
- type: LightBulb
bulb: Bulb
- type: Sprite
sprite: Objects/light_bulb.rsi
state: normal
- type: Icon
sprite: Objects/light_bulb.rsi
state: normal

View File

@@ -0,0 +1,39 @@
- type: entity
id: locker_generic
name: Locker
description: A standard-issue Nanotrasen storage unit.
components:
- type: Sprite
sprite: Buildings/closet.rsi
layers:
- state: generic
- state: generic_door
map: ["enum.StorageVisualLayers.Door"]
- type: Icon
sprite: Buildings/closet.rsi
state: generic_door
- type: Clickable
- type: BoundingBox
aabb: "-0.5,-0.25,0.5,0.25"
- type: Collidable
mask: 3
IsScrapingFloor: true
- type: Physics
mass: 25
Anchored: false
- type: EntityStorage
- type: PlaceableSurface
- type: Damageable
- type: Destructible
thresholdvalue: 100
- type: Appearance
visuals:
- type: StorageVisualizer2D
state_open: generic_open
state_closed: generic_door
placement:
snap:
- Wall

View File

@@ -0,0 +1,90 @@
- type: entity
id: locker_tool
name: Tool Locker
parent: locker_generic
components:
- type: Sprite
sprite: Buildings/closet.rsi
layers:
- state: eng
- state: eng_tool_door
map: ["enum.StorageVisualLayers.Door"]
- type: Appearance
visuals:
- type: StorageVisualizer2D
state_open: eng_open
state_closed: eng_tool_door
- type: Icon
state: eng_tool_door
- type: entity
id: locker_tool_filled
name: Tool Locker (Filled)
parent: locker_tool
components:
- type: ToolLockerFill
- type: entity
id: locker_electrical_supplies
name: Electrical Supplies Locker
parent: locker_generic
components:
- type: Sprite
sprite: Buildings/closet.rsi
layers:
- state: eng
- state: eng_elec_door
map: ["enum.StorageVisualLayers.Door"]
- type: Appearance
visuals:
- type: StorageVisualizer2D
state_open: eng_open
state_closed: eng_elec_door
- type: Icon
state: eng_elec_door
- type: entity
id: locker_welding_supplies
name: Welding Supplies Locker
parent: locker_generic
components:
- type: Sprite
sprite: Buildings/closet.rsi
layers:
- state: eng
- state: eng_weld_door
map: ["enum.StorageVisualLayers.Door"]
- type: Appearance
visuals:
- type: StorageVisualizer2D
state_open: eng_open
state_closed: eng_weld_door
- type: Icon
state: eng_weld_door
- type: entity
id: locker_radiation_suit
name: Radiation Suit Locker
parent: locker_generic
components:
- type: Sprite
sprite: Buildings/closet.rsi
layers:
- state: eng
- state: eng_rad_door
map: ["enum.StorageVisualLayers.Door"]
- type: Appearance
visuals:
- type: StorageVisualizer2D
state_open: eng_open
state_closed: eng_rad_door
- type: Icon
state: eng_rad_door

View File

@@ -0,0 +1,28 @@
- type: entity
id: crate_generic
name: Crate
description: A large container for items.
components:
- type: Sprite
sprite: Buildings/crate.rsi
layers:
- state: crate
- state: crate_door
- type: Icon
sprite: Buildings/crate.rsi
state: crate
- type: Clickable
- type: BoundingBox
- type: Collidable
- type: Storage
Capacity: 60
- type: Damageable
- type: Destructible
thresholdvalue: 100
placement:
snap:
- Wall

View File

@@ -1,130 +0,0 @@
- type: entity
id: locker_generic
name: Locker
description: A standard-issue Nanotrasen storage unit.
components:
- type: Sprite
sprite: Buildings/closet.rsi
layers:
- state: generic
- state: generic_door
map: ["enum.StorageVisualLayers.Door"]
- type: Icon
sprite: Buildings/closet.rsi
state: generic_door
- type: Clickable
- type: BoundingBox
aabb: "-0.5,-0.25,0.5,0.25"
- type: Collidable
mask: 3
IsScrapingFloor: true
- type: Physics
mass: 25
Anchored: false
- type: EntityStorage
- type: PlaceableSurface
- type: Damageable
- type: Destructible
thresholdvalue: 100
- type: Appearance
visuals:
- type: StorageVisualizer2D
state_open: generic_open
state_closed: generic_door
placement:
snap:
- Wall
- type: entity
id: locker_tool
name: Tool Locker
parent: locker_generic
components:
- type: Sprite
sprite: Buildings/closet.rsi
layers:
- state: eng
- state: eng_tool_door
map: ["enum.StorageVisualLayers.Door"]
- type: Appearance
visuals:
- type: StorageVisualizer2D
state_open: eng_open
state_closed: eng_tool_door
- type: Icon
state: eng_tool_door
- type: entity
id: locker_tool_filled
name: Tool Locker (Filled)
parent: locker_tool
components:
- type: ToolLockerFill
- type: entity
id: locker_electrical_supplies
name: Electrical Supplies Locker
parent: locker_generic
components:
- type: Sprite
sprite: Buildings/closet.rsi
layers:
- state: eng
- state: eng_elec_door
map: ["enum.StorageVisualLayers.Door"]
- type: Appearance
visuals:
- type: StorageVisualizer2D
state_open: eng_open
state_closed: eng_elec_door
- type: Icon
state: eng_elec_door
- type: entity
id: locker_welding_supplies
name: Welding Supplies Locker
parent: locker_generic
components:
- type: Sprite
sprite: Buildings/closet.rsi
layers:
- state: eng
- state: eng_weld_door
map: ["enum.StorageVisualLayers.Door"]
- type: Appearance
visuals:
- type: StorageVisualizer2D
state_open: eng_open
state_closed: eng_weld_door
- type: Icon
state: eng_weld_door
- type: entity
id: locker_radiation_suit
name: Radiation Suit Locker
parent: locker_generic
components:
- type: Sprite
sprite: Buildings/closet.rsi
layers:
- state: eng
- state: eng_rad_door
map: ["enum.StorageVisualLayers.Door"]
- type: Appearance
visuals:
- type: StorageVisualizer2D
state_open: eng_open
state_closed: eng_rad_door
- type: Icon
state: eng_rad_door

View File

@@ -0,0 +1,21 @@
- type: entity
name: Bike Horn
parent: BaseItem
id: BikeHorn
description: A horn off of a bicycle.
components:
- type: Sprite
sprite: Objects/bikehorn.rsi
state: icon
- type: Icon
sprite: Objects/bikehorn.rsi
state: icon
- type: Item
Size: 5
sprite: Objects/bikehorn.rsi
- type: Sound
- type: EmitSoundOnUse
sound: /Audio/items/bikehorn.ogg

View File

@@ -0,0 +1,12 @@
- type: entity
name: Fire Extinguisher
parent: BaseItem
id: fire_extinguisher
description: Extinguishes fires.
components:
- type: Sprite
texture: Objects/fire_extinguisher.png
- type: Icon
texture: Objects/fire_extinguisher.png
- type: Item
Size: 10

View File

@@ -0,0 +1,19 @@
- type: entity
name: Flashlight
parent: BaseItem
id: FlashlightLantern
description: They light the way to freedom
components:
- type: HandheldLight
- type: Sprite
sprite: Objects/lantern.rsi
layers:
- state: lantern_off
- state: HandheldLightOnOverlay
shader: unshaded
visible: false
- type: Icon
sprite: Objects/lantern.rsi
state: lantern_off
- type: PointLight
state: Off

View File

@@ -0,0 +1,17 @@
- type: entity
name: "Item"
id: BaseItem
components:
- type: Item
Size: 5
- type: Clickable
- type: BoundingBox
aabb: "-0.25,-0.25,0.25,0.25"
- type: Collidable
mask: 5
layer: 8
IsScrapingFloor: true
- type: Physics
mass: 5
- type: Sprite
drawdepth: Items

View File

@@ -0,0 +1,56 @@
- type: entity
parent: BaseLightbulb
name: Light Bulb
id: LightBulb
components:
- type: LightBulb
bulb: Bulb
- type: Sprite
sprite: Objects/light_bulb.rsi
state: normal
- type: Icon
sprite: Objects/light_bulb.rsi
state: normal
- type: entity
parent: BaseItem
name: BaseLightbulb
id: BaseLightbulb
components:
- type: LightBulb
- type: entity
parent: BaseLightbulb
name: Light Tube
id: LightTube
components:
- type: LightBulb
bulb: Tube
- type: Sprite
sprite: Objects/light_tube.rsi
state: normal
- type: Icon
sprite: Objects/light_tube.rsi
state: normal
- type: entity
parent: BaseLightbulb
name: LED Light Tube
id: LedLightTube
components:
- type: LightBulb
bulb: Tube
color: "#EEEEFF"
BurningTemperature: 350
PowerUse: 9
- type: Sprite
sprite: Objects/light_tube.rsi
state: normal
- type: Icon
sprite: Objects/light_tube.rsi
state: normal

View File

@@ -0,0 +1,12 @@
- type: entity
name: Extra-Grip Mop
parent: BaseItem
id: MopItem
description: A mop that cant be stopped, viscera cleanup detail awaits
components:
- type: Sprite
texture: Objects/mop.png
- type: Icon
texture: Objects/mop.png
- type: Item
Size: 10

View File

@@ -0,0 +1,17 @@
- type: entity
name: Table Parts
parent: BaseItem
id: TableParts
description: Parts of a table.
components:
- type: Sprite
sprite: Objects/table_parts.rsi
state: icon
- type: Icon
sprite: Objects/table_parts.rsi
state: icon
- type: Item
Size: 25
sprite: Objects/table_parts.rsi

View File

@@ -0,0 +1,51 @@
- type: entity
name: Emergency Toolbox
parent: BaseItem
id: RedToolboxItem
description: A shiny red and robust container
components:
- type: Sprite
texture: Objects/toolbox_r.png
- type: Icon
texture: Objects/toolbox_r.png
- type: Storage
Capacity: 60
- type: Item
Size: 9999
- type: entity
name: Mechanical Toolbox
parent: BaseItem
id: BlueToolboxItem
description: A blue box, not the kind you're thinking of
components:
- type: Sprite
texture: Objects/Toolbox_b.png
- type: Icon
texture: Objects/Toolbox_b.png
- type: Storage
Capacity: 60
- type: Item
Size: 9999
- type: entity
name: Electrical Toolbox
parent: BaseItem
id: YellowToolboxItem
description: A toolbox typically stocked with electrical gear
components:
- type: Sprite
texture: Objects/Toolbox_y.png
- type: Icon
texture: Objects/Toolbox_y.png
- type: Storage
Capacity: 60
- type: Item
Size: 9999
- type: entity
id: YellowToolboxItemFilled
name: Electrical Toolbox (Filled)
parent: YellowToolboxItem
components:
- type: ToolboxElectricalFill

View File

@@ -0,0 +1,4 @@
- type: entity
parent: MobObserver
save: false
id: AdminObserver

View File

@@ -69,26 +69,3 @@
- type: Examiner - type: Examiner
- type: CharacterInfo - type: CharacterInfo
- type: entity
id: MobObserver
name: Observer
save: false
description: Boo!
components:
- type: Physics
mass: 5
- type: Eye
zoom: 0.5, 0.5
- type: BoundingBox
aabb: "-0.5,-0.25,-0.05,0.25"
- type: Input
context: "ghost"
- type: Examiner
DoRangeCheck: false
- type: entity
parent: MobObserver
save: false
id: AdminObserver

View File

@@ -0,0 +1,16 @@
- type: entity
id: MobObserver
name: Observer
save: false
description: Boo!
components:
- type: Physics
mass: 5
- type: Eye
zoom: 0.5, 0.5
- type: BoundingBox
aabb: "-0.5,-0.25,-0.05,0.25"
- type: Input
context: "ghost"
- type: Examiner
DoRangeCheck: false