Construction System. (#87)

* Construction WiP

* Construction kinda works!

* Lots more construction work.

* It mostly works!
This commit is contained in:
Pieter-Jan Briers
2018-08-02 08:29:55 +02:00
committed by GitHub
parent f051078c79
commit d7074bf74f
72 changed files with 1925 additions and 245 deletions

View File

@@ -67,8 +67,8 @@ namespace Content.Server.GameObjects.Components.Materials
}
var refl = IoCManager.Resolve<IReflectionManager>();
Value = serializer.ReadDataField("mat", "unobtanium");
var key = serializer.ReadDataField("key", string.Empty);
Value = serializer.ReadDataField<string>("mat");
var key = serializer.ReadDataField<string>("key");
if (refl.TryParseEnumReference(key, out var @enum))
{
Key = @enum;
@@ -78,4 +78,9 @@ namespace Content.Server.GameObjects.Components.Materials
}
}
}
public enum MaterialKeys
{
Stack,
}
}