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

18 lines
827 B
C#

using Unity.NetCode;
namespace ProjectM.Simulation
{
/// <summary>
/// Client -&gt; server request to move the sender's player between world regions (base &lt;-&gt; expedition).
/// A one-off action, so an RPC (not a per-tick predicted input), mirroring <see cref="StorageOpRequest"/>.
/// TargetRegion is a byte (see <see cref="RegionId"/>) to keep the generated serializer trivial. The
/// server teleports the sender's player to the region origin and flips its <see cref="RegionTag"/>, which
/// re-scopes GhostRelevancy so the client gains the target region's ghosts and drops the old region's.
/// </summary>
public struct RegionTransitRequest : IRpcCommand
{
/// <summary>Destination region id (see <see cref="RegionId"/>).</summary>
public byte TargetRegion;
}
}