Import a ton of backpack types.
This commit is contained in:
@@ -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 =>
|
||||
{
|
||||
|
||||
@@ -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>();
|
||||
|
||||
Reference in New Issue
Block a user