21 lines
784 B
C#
21 lines
784 B
C#
using Unity.Entities;
|
|
using Unity.NetCode;
|
|
|
|
namespace ProjectM.Simulation
|
|
{
|
|
/// <summary>
|
|
/// Long-arc progress toward the goal ("reach THEM"). Lives on the GLOBAL CycleDirector ghost (relevant in
|
|
/// every region, alongside CycleState + the resource ledger), so it is visible to all players regardless
|
|
/// of region. SINGLE writer: <c>CyclePhaseSystem</c> increments <see cref="Charge"/> on each completed
|
|
/// cycle (Build -> Expedition). The HUD observes it for a progress bar.
|
|
/// </summary>
|
|
public struct GoalProgress : IComponentData
|
|
{
|
|
/// <summary>Accumulated progress.</summary>
|
|
[GhostField] public int Charge;
|
|
|
|
/// <summary>Charge required to reach the goal.</summary>
|
|
[GhostField] public int Target;
|
|
}
|
|
}
|