Import a ton of backpack types.

This commit is contained in:
Pieter-Jan Briers
2019-08-12 21:34:35 +02:00
parent 3a25395ff9
commit 96eb4afdf6
90 changed files with 783 additions and 16 deletions

View File

@@ -43,6 +43,8 @@ namespace Content.Server.GameObjects
{
base.ExposeData(serializer);
serializer.DataField(ref _clothingEquippedPrefix, "ClothingPrefix", null);
// TODO: Writing.
serializer.DataReadFunction("Slots", new List<string>(0), list =>
{

View File

@@ -8,6 +8,7 @@ using Robust.Server.Interfaces.GameObjects;
using Robust.Shared.GameObjects;
using Robust.Shared.Interfaces.GameObjects;
using Robust.Shared.Maths;
using Robust.Shared.Serialization;
namespace Content.Server.GameObjects
{
@@ -50,6 +51,13 @@ namespace Content.Server.GameObjects
}
}
public override void ExposeData(ObjectSerializer serializer)
{
base.ExposeData(serializer);
serializer.DataField(ref _equippedPrefix, "HeldPrefix", null);
}
public bool AttackHand(AttackHandEventArgs eventArgs)
{
var hands = eventArgs.User.GetComponent<IHandsComponent>();

View File

@@ -5,17 +5,18 @@
description: A convenient storage pack
components:
- type: Sprite
sprite: Clothing/backpack.rsi
sprite: Clothing/backpacks.rsi
state: backpack
- type: Icon
sprite: Clothing/backpack.rsi
sprite: Clothing/backpacks.rsi
state: backpack
- type: Clothing
Size: 9999
QuickEquip: false
Slots:
- back
sprite: Clothing/backpack.rsi
sprite: Clothing/backpacks.rsi
HeldPrefix: backpack
- type: Storage
Capacity: 100
@@ -26,15 +27,13 @@
description: It's a backpack made by Honk! Co.
components:
- type: Sprite
sprite: Clothing/backpack_clown.rsi
state: icon
state: clown
- type: Icon
sprite: Clothing/backpack_clown.rsi
state: icon
state: clown
- type: Clothing
sprite: Clothing/backpack_clown.rsi
HeldPrefix: clown
- type: entity
parent: BackpackClothing
@@ -43,12 +42,374 @@
description: It's a very robust backpack.
components:
- type: Sprite
sprite: Clothing/backpack_sec.rsi
state: icon
state: security
- type: Icon
sprite: Clothing/backpack_sec.rsi
state: icon
state: security
- type: Clothing
sprite: Clothing/backpack_sec.rsi
HeldPrefix: security
- type: entity
parent: BackpackClothing
id: BackpackEngineering
name: Engineering Backpack
components:
- type: Sprite
state: engineering
- type: Icon
state: engineering
- type: Clothing
HeldPrefix: engineering
- type: entity
parent: BackpackClothing
id: BackpackMedical
name: Medical Backpack
components:
- type: Sprite
state: medical
- type: Icon
state: medical
- type: Clothing
HeldPrefix: medical
- type: entity
parent: BackpackClothing
id: BackpackCaptain
name: Captain's Backpack
components:
- type: Sprite
state: captain
- type: Icon
state: captain
- type: Clothing
HeldPrefix: captain
- type: entity
parent: BackpackClothing
id: BackpackHolding
name: Bag of Holding
components:
- type: Sprite
layers:
- state: holding
- state: holding-unlit
shader: unshaded
- type: Icon
state: holding
- type: Clothing
HeldPrefix: holding
- type: entity
parent: BackpackClothing
id: Satchel
name: Satchel
components:
- type: Sprite
state: satchel
- type: Icon
state: satchel
- type: Clothing
ClothingPrefix: satchel
- type: Storage
Capacity: 300
- type: entity
parent: BackpackClothing
id: SatchelEngineering
name: Engineering Satchel
components:
- type: Sprite
state: satchel-engineering
- type: Icon
state: satchel-engineering
- type: Clothing
HeldPrefix: engineering
ClothingPrefix: satchel-engineering
- type: entity
parent: BackpackClothing
id: SatchelMedical
name: Medical Satchel
components:
- type: Sprite
state: satchel-medical
- type: Icon
state: satchel-medical
- type: Clothing
HeldPrefix: medical
ClothingPrefix: satchel-medical
- type: entity
parent: BackpackClothing
id: SatchelChemistry
name: Chemistry Satchel
components:
- type: Sprite
state: satchel-chemistry
- type: Icon
state: satchel-chemistry
- type: Clothing
HeldPrefix: medical
ClothingPrefix: satchel-chemistry
- type: entity
parent: BackpackClothing
id: SatchelGenetics
name: Genetics Satchel
components:
- type: Sprite
state: satchel-genetics
- type: Icon
state: satchel-genetics
- type: Clothing
HeldPrefix: medical
ClothingPrefix: satchel-genetics
- type: entity
parent: BackpackClothing
id: SatchelVirology
name: Virology Satchel
components:
- type: Sprite
state: satchel-virology
- type: Icon
state: satchel-virology
- type: Clothing
HeldPrefix: medical
ClothingPrefix: satchel-virology
- type: entity
parent: BackpackClothing
id: SatchelScience
name: Science Satchel
components:
- type: Sprite
state: satchel-science
- type: Icon
state: satchel-science
- type: Clothing
ClothingPrefix: satchel-science
- type: entity
parent: BackpackClothing
id: SatchelSecurity
name: Security Satchel
components:
- type: Sprite
state: satchel-security
- type: Icon
state: satchel-security
- type: Clothing
HeldPrefix: security
ClothingPrefix: satchel-security
- type: entity
parent: BackpackClothing
id: SatchelCaptain
name: Captain's Satchel
components:
- type: Sprite
state: satchel-captain
- type: Icon
state: satchel-captain
- type: Clothing
HeldPrefix: captain
ClothingPrefix: satchel-captain
- type: entity
parent: BackpackClothing
id: SatchelHydroponics
name: Hydroponics Satchel
components:
- type: Sprite
state: satchel-hydroponics
- type: Icon
state: satchel-hydroponics
- type: Clothing
ClothingPrefix: satchel-hydroponics
- type: entity
parent: BackpackClothing
id: MessengerBag
name: Messenger Bag
components:
- type: Sprite
state: courier
- type: Icon
state: courier
- type: Clothing
ClothingPrefix: courier
- type: entity
parent: BackpackClothing
id: MessengerBagChemistry
name: Chemistry Messenger Bag
components:
- type: Sprite
state: courier-chemistry
- type: Icon
state: courier-chemistry
- type: Clothing
HeldPrefix: medical
ClothingPrefix: courier-chemistry
- type: entity
parent: BackpackClothing
id: MessengerBagMedical
name: Medical Messenger Bag
components:
- type: Sprite
state: courier-medical
- type: Icon
state: courier-medical
- type: Clothing
HeldPrefix: medical
ClothingPrefix: courier-medical
- type: entity
parent: BackpackClothing
id: MessengerBagVirology
name: Virology Messenger Bag
components:
- type: Sprite
state: courier-virology
- type: Icon
state: courier-virology
- type: Clothing
HeldPrefix: medical
ClothingPrefix: courier-virology
- type: entity
parent: BackpackClothing
id: MessengerBagEngineering
name: Engineering Messenger Bag
components:
- type: Sprite
state: courier-engineering
- type: Icon
state: courier-engineering
- type: Clothing
HeldPrefix: engineering
ClothingPrefix: courier-engineering
- type: entity
parent: BackpackClothing
id: MessengerBagScience
name: Science Messenger Bag
components:
- type: Sprite
state: courier-science
- type: Icon
state: courier-science
- type: Clothing
ClothingPrefix: courier-science
- type: entity
parent: BackpackClothing
id: MessengerBagCaptain
name: Captain's Messenger Bag
components:
- type: Sprite
state: courier-captain
- type: Icon
state: courier-captain
- type: Clothing
HeldPrefix: captain
ClothingPrefix: courier-captain
- type: entity
parent: BackpackClothing
id: MessengerBagHydroponics
name: Hydroponics Messenger Bag
components:
- type: Sprite
state: courier-hydroponics
- type: Icon
state: courier-hydroponics
- type: Clothing
ClothingPrefix: courier-hydroponics
- type: entity
parent: BackpackClothing
id: MessengerBagSecurity
name: Security Messenger Bag
components:
- type: Sprite
state: courier-security
- type: Icon
state: courier-security
- type: Clothing
HeldPrefix: security
ClothingPrefix: courier-security

Binary file not shown.

Before

Width:  |  Height:  |  Size: 241 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 378 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 638 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 465 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 455 B

View File

@@ -1 +0,0 @@
{"version": 1, "size": {"x": 32, "y": 32}, "license": "CC-BY-SA-3.0", "copyright": "Taken from https://github.com/discordia-space/CEV-Eris at commit 9a3a3a180344460263e8df7ea2565128e07b86b5", "states": [{"name": "backpack", "directions": 1, "delays": [[1.0]]}, {"name": "equipped-BACKPACK", "directions": 4, "delays": [[1.0], [1.0], [1.0], [1.0]]}, {"name": "inhand-left", "directions": 4, "delays": [[1.0], [1.0], [1.0], [1.0]]}, {"name": "inhand-right", "directions": 4, "delays": [[1.0], [1.0], [1.0], [1.0]]}]}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 698 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 615 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 667 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 672 B

View File

@@ -1 +0,0 @@
{"version": 1, "size": {"x": 32, "y": 32}, "license": "CC-BY-SA-3.0", "copyright": "Taken from https://github.com/vgstation-coders/vgstation13 at commit 125c975f1b3bf9826b37029e9ab5a5f89e975a7e", "states": [{"name": "equipped-BACKPACK", "directions": 4, "delays": [[1.0], [1.0], [1.0], [1.0]]}, {"name": "icon", "directions": 1, "delays": [[1.0]]}, {"name": "inhand-left", "directions": 4, "delays": [[1.0], [1.0], [1.0], [1.0]]}, {"name": "inhand-right", "directions": 4, "delays": [[1.0], [1.0], [1.0], [1.0]]}]}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 898 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 542 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 751 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 753 B

View File

@@ -1 +0,0 @@
{"version": 1, "size": {"x": 32, "y": 32}, "license": "CC-BY-SA-3.0", "copyright": "Taken from https://github.com/vgstation-coders/vgstation13 at commit 125c975f1b3bf9826b37029e9ab5a5f89e975a7e", "states": [{"name": "equipped-BACKPACK", "directions": 4, "delays": [[1.0], [1.0], [1.0], [1.0]]}, {"name": "icon", "directions": 1, "delays": [[1.0]]}, {"name": "inhand-left", "directions": 4, "delays": [[1.0], [1.0], [1.0], [1.0]]}, {"name": "inhand-right", "directions": 4, "delays": [[1.0], [1.0], [1.0], [1.0]]}]}

Binary file not shown.

After

Width:  |  Height:  |  Size: 344 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 281 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 283 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 240 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 357 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 342 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 337 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 270 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 392 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 360 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 364 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 320 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 271 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 309 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 284 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 306 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 268 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 307 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 295 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 292 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 284 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 259 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 306 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 283 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 305 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 267 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 311 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 278 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 305 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 267 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 267 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 400 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 265 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 265 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 371 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 457 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 375 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 822 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 326 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 331 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 470 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 584 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 288 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 226 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 238 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 251 B

View File

@@ -0,0 +1,399 @@
{
"version": 1,
"size": {
"x": 32,
"y": 32
},
"states": [
{
"name": "engineering",
"directions": 1
},
{
"name": "engineering-inhand-left",
"directions": 4
},
{
"name": "satchel-hydroponics-equipped-BACKPACK",
"directions": 4
},
{
"name": "satchel-science",
"directions": 1
},
{
"name": "satchel-engineering-equipped-BACKPACK",
"directions": 4
},
{
"name": "courier-black",
"directions": 1
},
{
"name": "courier-science-equipped-BACKPACK",
"directions": 4
},
{
"name": "engineering",
"directions": 1
},
{
"name": "engineering-inhand-left",
"directions": 4
},
{
"name": "satchel-hydroponics-equipped-BACKPACK",
"directions": 4
},
{
"name": "satchel-science",
"directions": 1
},
{
"name": "satchel-engineering-equipped-BACKPACK",
"directions": 4
},
{
"name": "courier-black",
"directions": 1
},
{
"name": "courier-science-equipped-BACKPACK",
"directions": 4
},
{
"name": "engineering",
"directions": 1
},
{
"name": "engineering-inhand-left",
"directions": 4
},
{
"name": "satchel-hydroponics-equipped-BACKPACK",
"directions": 4
},
{
"name": "satchel-science",
"directions": 1
},
{
"name": "satchel-engineering-equipped-BACKPACK",
"directions": 4
},
{
"name": "courier-black",
"directions": 1
},
{
"name": "courier-science-equipped-BACKPACK",
"directions": 4
},
{
"name": "satchel-security-equipped-BACKPACK",
"directions": 4
},
{
"name": "medical-equipped-BACKPACK",
"directions": 4
},
{
"name": "satchel-chemistry-equipped-BACKPACK",
"directions": 4
},
{
"name": "holding-equipped-BACKPACK",
"directions": 4,
"delays": [
[
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1
],
[
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1
],
[
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1
],
[
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1
]
]
},
{
"name": "satchel-genetics-equipped-BACKPACK",
"directions": 4
},
{
"name": "security-inhand-left",
"directions": 4
},
{
"name": "courier-security-equipped-BACKPACK",
"directions": 4
},
{
"name": "satchel-equipped-BACKPACK",
"directions": 4
},
{
"name": "clown-inhand-right",
"directions": 4
},
{
"name": "courier-virology",
"directions": 1
},
{
"name": "security-equipped-BACKPACK",
"directions": 4
},
{
"name": "medical",
"directions": 1
},
{
"name": "medical-inhand-left",
"directions": 4
},
{
"name": "courier-captain-equipped-BACKPACK",
"directions": 4
},
{
"name": "satchel-chemistry",
"directions": 1
},
{
"name": "captain-inhand-right",
"directions": 4
},
{
"name": "courier-engineering",
"directions": 1
},
{
"name": "security",
"directions": 1
},
{
"name": "holding-inhand-right",
"directions": 4
},
{
"name": "satchel-captain-equipped-BACKPACK",
"directions": 4
},
{
"name": "courier-medical-equipped-BACKPACK",
"directions": 4
},
{
"name": "satchel-security",
"directions": 1
},
{
"name": "courier-hydroponics",
"directions": 1
},
{
"name": "holding-broken",
"directions": 1
},
{
"name": "backpack",
"directions": 1
},
{
"name": "satchel-captain",
"directions": 1
},
{
"name": "backpack-equipped-BACKPACK",
"directions": 4
},
{
"name": "holding",
"directions": 1,
"delays": [[
0.1,
0.1,
0.1,
0.1,
0.1,
0.1
]]
},
{
"name": "holding-unlit",
"directions": 1,
"delays": [[
0.1,
0.1,
0.1,
0.1,
0.1,
0.1
]]
},
{
"name": "courier-virology-equipped-BACKPACK",
"directions": 4
},
{
"name": "courier-hydroponics-equipped-BACKPACK",
"directions": 4
},
{
"name": "security-inhand-right",
"directions": 4
},
{
"name": "medical-inhand-right",
"directions": 4
},
{
"name": "courier-security",
"directions": 1
},
{
"name": "satchel",
"directions": 1
},
{
"name": "engineering-equipped-BACKPACK",
"directions": 4
},
{
"name": "clown",
"directions": 1
},
{
"name": "satchel-virology",
"directions": 1
},
{
"name": "courier-medical",
"directions": 1
},
{
"name": "satchel-hydroponics",
"directions": 1
},
{
"name": "captain",
"directions": 1
},
{
"name": "courier-chemistry",
"directions": 1
},
{
"name": "captain-equipped-BACKPACK",
"directions": 4
},
{
"name": "satchel-medical-equipped-BACKPACK",
"directions": 4
},
{
"name": "backpack-inhand-left",
"directions": 4
},
{
"name": "satchel-science-equipped-BACKPACK",
"directions": 4
},
{
"name": "holding-broken-equipped-BACKPACK",
"directions": 4
},
{
"name": "satchel-engineering",
"directions": 1
},
{
"name": "courier-equipped-BACKPACK",
"directions": 4
},
{
"name": "backpack-inhand-right",
"directions": 4
},
{
"name": "captain-inhand-left",
"directions": 4
},
{
"name": "courier-chemistry-equipped-BACKPACK",
"directions": 4
},
{
"name": "engineering-inhand-right",
"directions": 4
},
{
"name": "satchel-medical",
"directions": 1
},
{
"name": "satchel-virology-equipped-BACKPACK",
"directions": 4
},
{
"name": "courier-captain",
"directions": 1
},
{
"name": "courier",
"directions": 1
},
{
"name": "courier-science",
"directions": 1
},
{
"name": "courier-engineering-equipped-BACKPACK",
"directions": 4
},
{
"name": "satchel-genetics",
"directions": 1
},
{
"name": "clown-inhand-left",
"directions": 4
},
{
"name": "clown-equipped-BACKPACK",
"directions": 4
},
{
"name": "holding-inhand-left",
"directions": 4
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 296 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 341 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 357 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 358 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 318 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 532 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 308 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 355 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 361 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 404 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 376 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 295 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 333 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 363 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 365 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 335 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 353 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 358 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 359 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 322 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 420 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 383 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 373 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 270 B