EntityUid Type (#23)
* Wraps Entity Uids in their own type. * Update submodule I think.
This commit is contained in:
committed by
Pieter-Jan Briers
parent
5ee56a4cd3
commit
988b2b2bc5
@@ -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)
|
||||||
|
|||||||
@@ -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
2
engine
Submodule engine updated: 3ccb252a96...1487b2cdad
Reference in New Issue
Block a user