Objectives ecs rework (#19967)

Co-authored-by: deltanedas <@deltanedas:kde.org>
This commit is contained in:
deltanedas
2023-09-16 07:18:10 +01:00
committed by GitHub
parent e8c58d1574
commit f7711edbe3
106 changed files with 2121 additions and 1779 deletions

View File

@@ -1,6 +1,5 @@
using Content.Shared.GameTicking;
using Content.Shared.Mind.Components;
using Content.Shared.Objectives;
using Robust.Shared.Network;
using Robust.Shared.Players;
@@ -22,7 +21,7 @@ namespace Content.Shared.Mind
[RegisterComponent]
public sealed partial class MindComponent : Component
{
internal readonly List<Objective> Objectives = new();
internal readonly List<EntityUid> Objectives = new();
/// <summary>
/// The session ID of the player owning this mind.
@@ -78,10 +77,10 @@ namespace Content.Shared.Mind
// TODO move objectives out of mind component
/// <summary>
/// An enumerable over all the objectives this mind has.
/// An enumerable over all the objective entities this mind has.
/// </summary>
[ViewVariables]
public IEnumerable<Objective> AllObjectives => Objectives;
public IEnumerable<EntityUid> AllObjectives => Objectives;
/// <summary>
/// Prevents user from ghosting out