World Storage (#112)

* Added generic crate assets.
Added open flag to StorageComponent.

* StorageComponent door toggling works.

* Door now updates based on if someone is subscribed to the Storage.

* Added License to crate.rsi
Fixed Icon of crate.

* Added basic Locker.

* Added Fire Extinguisher.

* Added ability to close the storage UI by the server.
Notify the server that the UI is closed, so that the player is unsubscribed from the storage.
Unsubscribe the player from a storage if the player entity moves out of range.

* Add check to make sure entity is on the same map as the storage.

* Update Engine module.

* Update Engine.
This commit is contained in:
Acruid
2018-10-25 17:35:34 -07:00
committed by GitHub
parent 6cc88115b5
commit 3dc3031054
18 changed files with 296 additions and 6 deletions

View File

@@ -0,0 +1,24 @@
- 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
placement:
snap:
- Wall

View File

@@ -69,6 +69,19 @@
- 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: "Lantern"

View File

@@ -0,0 +1,24 @@
- 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
- type: Icon
sprite: Buildings/closet.rsi
state: generic
- type: Clickable
- type: BoundingBox
- type: Collidable
- type: Storage
Capacity: 80
placement:
snap:
- Wall