< Summary

Information
Class: Lattice.ECS.Session.MinimalPredictionSession
Assembly: Lattice
File(s): /home/runner/work/Sideline/Sideline/godot/scripts/lattice/ECS/Session/MinimalPredictionSession.cs
Line coverage
100%
Covered lines: 15
Uncovered lines: 0
Coverable lines: 15
Total lines: 37
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
.cctor()100%11100%
.ctor(...)100%11100%
.ctor(...)100%11100%
get_RuntimeBoundary()100%11100%

File(s)

/home/runner/work/Sideline/Sideline/godot/scripts/lattice/ECS/Session/MinimalPredictionSession.cs

#LineLine coverage
 1using Lattice.Math;
 2
 3namespace Lattice.ECS.Session
 4{
 5    /// <summary>
 6    /// 纯 C#、单线程、固定顺序、可回滚的最小预测运行时。
 7    /// 这是当前主干正式承诺的 Session 运行模式。
 8    /// </summary>
 9    public class MinimalPredictionSession : SessionRuntime
 10    {
 111        private static readonly SessionRuntimeBoundary MinimalPredictionBoundary = new(
 112            SessionRuntimeKind.MinimalPrediction,
 113            SessionRuntimeCapability.LocalPredictionStep |
 114            SessionRuntimeCapability.PredictionVerification |
 115            SessionRuntimeCapability.LocalRewind |
 116            SessionRuntimeCapability.CheckpointRestore,
 117            UnsupportedSessionRuntimeCapability.ThreadedScheduling |
 118            UnsupportedSessionRuntimeCapability.ResourceConfiguredBoot |
 119            UnsupportedSessionRuntimeCapability.FullNetworkSession |
 120            UnsupportedSessionRuntimeCapability.PlayerMappingAndTransport);
 21
 22        public MinimalPredictionSession(FP deltaTime, int localPlayerId = 0)
 8423            : base(deltaTime, localPlayerId)
 24        {
 8425        }
 26
 27        public MinimalPredictionSession(SessionRuntimeOptions runtimeOptions)
 2328            : base(runtimeOptions)
 29        {
 2330        }
 31
 32        /// <summary>
 33        /// 当前模式的正式运行边界。
 34        /// </summary>
 61035        public override SessionRuntimeBoundary RuntimeBoundary => MinimalPredictionBoundary;
 36    }
 37}