refactor(streaming): extract the update frame
This commit is contained in:
parent
4e4aac2c5a
commit
0bc9fda9de
13 changed files with 912 additions and 184 deletions
|
|
@ -28,3 +28,25 @@ internal sealed class LocalPlayerControllerSlot : ILocalPlayerControllerSource
|
|||
{
|
||||
public PlayerMovementController? Controller { get; set; }
|
||||
}
|
||||
|
||||
internal interface ILocalPlayerModeSource
|
||||
{
|
||||
bool IsPlayerMode { get; }
|
||||
bool ChaseModeEverEntered { get; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The one mutable local presentation-mode slot. Checkpoint F transfers write
|
||||
/// ownership to PlayerModeController; streaming and camera owners only read it.
|
||||
/// </summary>
|
||||
internal sealed class LocalPlayerModeState : ILocalPlayerModeSource
|
||||
{
|
||||
public bool IsPlayerMode { get; set; }
|
||||
public bool ChaseModeEverEntered { get; set; }
|
||||
|
||||
public void ResetSession()
|
||||
{
|
||||
IsPlayerMode = false;
|
||||
ChaseModeEverEntered = false;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue