Merge remote-tracking branch 'upstream/master' into 20-11-19-sandboxing
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Content.Shared.Objectives;
|
||||
using Robust.Shared.GameObjects;
|
||||
using Robust.Shared.Serialization;
|
||||
|
||||
namespace Content.Shared.GameObjects.Components.Actor
|
||||
{
|
||||
public class SharedCharacterInfoComponent : Component
|
||||
{
|
||||
public override string Name => "CharacterInfo";
|
||||
public override uint? NetID => ContentNetIDs.CHARACTERINFO;
|
||||
|
||||
[Serializable, NetSerializable]
|
||||
protected class RequestCharacterInfoMessage : ComponentMessage
|
||||
{
|
||||
public RequestCharacterInfoMessage()
|
||||
{
|
||||
Directed = true;
|
||||
}
|
||||
}
|
||||
|
||||
[Serializable, NetSerializable]
|
||||
protected class CharacterInfoMessage : ComponentMessage
|
||||
{
|
||||
public readonly Dictionary<string, List<ConditionInfo>> Objectives;
|
||||
public readonly string JobTitle;
|
||||
|
||||
public CharacterInfoMessage(string jobTitle, Dictionary<string, List<ConditionInfo>> objectives)
|
||||
{
|
||||
Directed = true;
|
||||
JobTitle = jobTitle;
|
||||
Objectives = objectives;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
using System;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Robust.Shared.GameObjects;
|
||||
using Robust.Shared.Map;
|
||||
@@ -59,7 +59,9 @@ namespace Content.Shared.GameObjects.Components
|
||||
|
||||
public bool BreakOnTargetMove { get; }
|
||||
|
||||
public ClientDoAfter(byte id, EntityCoordinates userGrid, EntityCoordinates targetGrid, TimeSpan startTime, float delay, bool breakOnUserMove, bool breakOnTargetMove, EntityUid targetUid = default)
|
||||
public float MovementThreshold { get; }
|
||||
|
||||
public ClientDoAfter(byte id, EntityCoordinates userGrid, EntityCoordinates targetGrid, TimeSpan startTime, float delay, bool breakOnUserMove, bool breakOnTargetMove, float movementThreshold, EntityUid targetUid = default)
|
||||
{
|
||||
ID = id;
|
||||
UserGrid = userGrid;
|
||||
@@ -68,6 +70,7 @@ namespace Content.Shared.GameObjects.Components
|
||||
Delay = delay;
|
||||
BreakOnUserMove = breakOnUserMove;
|
||||
BreakOnTargetMove = breakOnTargetMove;
|
||||
MovementThreshold = movementThreshold;
|
||||
TargetUid = targetUid;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user