Files
Project-M/Assets/_Project/Scripts/Simulation/World/CycleDirectorSpawner.cs
T
2026-06-03 22:41:27 -07:00

17 lines
678 B
C#

using Unity.Entities;
namespace ProjectM.Simulation
{
/// <summary>
/// Singleton baked into the gameplay subscene holding the cycle-director ghost prefab. A one-shot server
/// system (<c>CycleDirectorSpawnSystem</c>) instantiates the prefab — the GLOBAL <see cref="CycleState"/>
/// + shared resource-ledger ghost — exactly once, then destroys this singleton. Mirrors
/// <see cref="StorageSpawner"/>. Carries no transform; only the prefab needs one.
/// </summary>
public struct CycleDirectorSpawner : IComponentData
{
/// <summary>Baked cycle-director ghost prefab to instantiate.</summary>
public Entity Prefab;
}
}