Files
Project-M/Assets/_Project/Scripts/Simulation/World/ReadyToggleRequest.cs
T
2026-07-02 20:41:43 -07:00

17 lines
642 B
C#

using Unity.NetCode;
namespace ProjectM.Simulation
{
/// <summary>
/// Client → server ready-check toggle — an explicit SET (not a flip), so a duplicated/late RPC is idempotent.
/// UNCONDITIONAL wire type (never #if — the reflection-built RpcCollection hash must match across peers; only
/// send/receive SYSTEMS may be gated). Blittable scalar payload per the project RPC rules. Handled by
/// <c>ReadyToggleSystem</c> (Staging/Launching only).
/// </summary>
public struct ReadyToggleRequest : IRpcCommand
{
/// <summary>1 = ready, 0 = not ready.</summary>
public byte Ready;
}
}