Sync daemon authority migration
This commit is contained in:
parent
030b4b5d74
commit
39a0dc8737
295 changed files with 25121 additions and 7360 deletions
|
|
@ -0,0 +1,31 @@
|
|||
using System;
|
||||
|
||||
#nullable enable
|
||||
|
||||
namespace GameCult.Aetheria.State.Unity
|
||||
{
|
||||
public sealed class AetheriaRuntimeObservedDaemonState
|
||||
{
|
||||
public AetheriaRuntimeObservedDaemonState(
|
||||
AetheriaRuntimeDaemonFrameDocument frame,
|
||||
AetheriaRuntimeDaemonSoaViewDocument? soaView,
|
||||
string framePath,
|
||||
string soaViewPath)
|
||||
{
|
||||
Frame = frame ?? throw new ArgumentNullException(nameof(frame));
|
||||
SoaView = soaView;
|
||||
SoaIndex = AetheriaRuntimeDaemonSoaViewIndex.Build(soaView);
|
||||
FramePath = framePath ?? "";
|
||||
SoaViewPath = soaViewPath ?? "";
|
||||
}
|
||||
|
||||
public AetheriaRuntimeDaemonFrameDocument Frame { get; }
|
||||
public AetheriaRuntimeDaemonSoaViewDocument? SoaView { get; }
|
||||
public AetheriaRuntimeDaemonSoaViewIndex SoaIndex { get; }
|
||||
public string FramePath { get; }
|
||||
public string SoaViewPath { get; }
|
||||
public bool HasSoaView => SoaView != null && SoaIndex.IsValid;
|
||||
public bool IsAuthoritative => Frame.IsAuthoritative;
|
||||
public AetheriaRuntimeRunCheckpointCommit Run => Frame.Run;
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue