2019-04-15 21:11:38 -06:00
|
|
|
|
using Robust.Shared.GameObjects;
|
|
|
|
|
|
using Robust.Shared.Serialization;
|
2018-04-22 06:11:38 -05:00
|
|
|
|
|
|
|
|
|
|
namespace Content.Server.GameObjects
|
|
|
|
|
|
{
|
2019-07-31 15:02:36 +02:00
|
|
|
|
[RegisterComponent]
|
2018-04-22 06:11:38 -05:00
|
|
|
|
public class StoreableComponent : Component
|
|
|
|
|
|
{
|
|
|
|
|
|
public override string Name => "Storeable";
|
|
|
|
|
|
|
|
|
|
|
|
public int ObjectSize = 0;
|
|
|
|
|
|
|
2018-07-26 23:38:16 +02:00
|
|
|
|
public override void ExposeData(ObjectSerializer serializer)
|
2018-04-22 06:11:38 -05:00
|
|
|
|
{
|
|
|
|
|
|
base.ExposeData(serializer);
|
|
|
|
|
|
|
|
|
|
|
|
serializer.DataField(ref ObjectSize, "Size", 1);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Enum for the storage capacity of various containers
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public enum ReferenceSizes
|
|
|
|
|
|
{
|
|
|
|
|
|
Wallet = 4,
|
|
|
|
|
|
Pocket = 12,
|
|
|
|
|
|
Box = 24,
|
2018-04-25 06:42:35 -05:00
|
|
|
|
Belt = 30,
|
2018-04-22 06:11:38 -05:00
|
|
|
|
Toolbox = 60,
|
|
|
|
|
|
Backpack = 100,
|
|
|
|
|
|
NoStoring = 9999
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|