EntityUid Type (#23)

* Wraps Entity Uids in their own type.

* Update submodule I think.
This commit is contained in:
Acruid
2018-01-20 14:46:31 -08:00
committed by Pieter-Jan Briers
parent 5ee56a4cd3
commit 988b2b2bc5
3 changed files with 4 additions and 4 deletions

View File

@@ -215,7 +215,7 @@ namespace Content.Server.GameObjects
public override ComponentState GetComponentState() public override ComponentState GetComponentState()
{ {
var dict = new Dictionary<string, int>(hands.Count); var dict = new Dictionary<string, EntityUid>(hands.Count);
foreach (var hand in hands) foreach (var hand in hands)
{ {
if (hand.Value.Item != null) if (hand.Value.Item != null)

View File

@@ -15,10 +15,10 @@ namespace Content.Shared.GameObjects
[Serializable] [Serializable]
public class HandsComponentState : ComponentState public class HandsComponentState : ComponentState
{ {
public readonly Dictionary<string, int> Hands; public readonly Dictionary<string, EntityUid> Hands;
public readonly string ActiveIndex; public readonly string ActiveIndex;
public HandsComponentState(Dictionary<string, int> hands, string activeIndex) : base(ContentNetIDs.HANDS) public HandsComponentState(Dictionary<string, EntityUid> hands, string activeIndex) : base(ContentNetIDs.HANDS)
{ {
Hands = hands; Hands = hands;
ActiveIndex = activeIndex; ActiveIndex = activeIndex;

2
engine

Submodule engine updated: 3ccb252a96...1487b2cdad