Objectives ecs rework (#19967)
Co-authored-by: deltanedas <@deltanedas:kde.org>
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
using Content.Server.Objectives.Systems;
|
||||
|
||||
namespace Content.Server.Objectives.Components;
|
||||
|
||||
[RegisterComponent, Access(typeof(TargetObjectiveSystem))]
|
||||
public sealed partial class TargetObjectiveComponent : Component
|
||||
{
|
||||
/// <summary>
|
||||
/// Locale id for the objective title.
|
||||
/// It is passed "targetName" and "job" arguments.
|
||||
/// </summary>
|
||||
[DataField(required: true), ViewVariables(VVAccess.ReadWrite)]
|
||||
public string Title = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// Mind entity id of the target.
|
||||
/// This must be set by another system using <see cref="TargetObjectiveSystem.SetTarget"/>.
|
||||
/// </summary>
|
||||
[DataField, ViewVariables(VVAccess.ReadWrite)]
|
||||
public EntityUid? Target;
|
||||
}
|
||||
Reference in New Issue
Block a user