ServerStorage and Storable Yaml casing (#1424)

* Storable size yaml case fix

* ServerStorage yaml case fix

Co-authored-by: py01 <pyronetics01@gmail.com>
This commit is contained in:
ShadowCommander
2020-07-19 12:12:02 -07:00
committed by GitHub
34 changed files with 119 additions and 119 deletions

View File

@@ -45,7 +45,7 @@ namespace Content.Server.GameObjects.Components.Items.Storage
private bool _storageInitialCalculated;
private int _storageUsed;
private int _storageCapacityMax = 10000;
private int _storageCapacityMax;
public readonly HashSet<IPlayerSession> SubscribedSessions = new HashSet<IPlayerSession>();
public IReadOnlyCollection<IEntity>? StoredEntities => _storage?.ContainedEntities;
@@ -321,7 +321,7 @@ namespace Content.Server.GameObjects.Components.Items.Storage
{
base.ExposeData(serializer);
serializer.DataField(ref _storageCapacityMax, "Capacity", 10000);
serializer.DataField(ref _storageCapacityMax, "capacity", 10000);
//serializer.DataField(ref StorageUsed, "used", 0);
}

View File

@@ -8,13 +8,13 @@ namespace Content.Server.GameObjects.Components.Items.Storage
{
public override string Name => "Storable";
public int ObjectSize = 0;
public int ObjectSize;
public override void ExposeData(ObjectSerializer serializer)
{
base.ExposeData(serializer);
serializer.DataField(ref ObjectSize, "Size", 1);
serializer.DataField(ref ObjectSize, "size", 1);
}
}