< Summary

Information
Class: Lattice.ECS.Session.Session
Assembly: Lattice
File(s): /home/runner/work/Sideline/Sideline/godot/scripts/lattice/ECS/Session/SessionCompatibility.cs
Line coverage
50%
Covered lines: 2
Uncovered lines: 2
Coverable lines: 4
Total lines: 25
Line coverage: 50%
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
.ctor(...)100%11100%
.ctor(...)100%210%

File(s)

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

#LineLine coverage
 1using System;
 2using System.ComponentModel;
 3using Lattice.Math;
 4
 5namespace Lattice.ECS.Session
 6{
 7    /// <summary>
 8    /// `MinimalPredictionSession` 的兼容入口。
 9    /// 当前仍保留 `Session` 名称,避免现有调用面一次性迁移。
 10    /// </summary>
 11    [Obsolete("请优先改用 MinimalPredictionSession 或 SessionRunnerBuilder。Session 仅保留为兼容入口。", false)]
 12    [EditorBrowsable(EditorBrowsableState.Never)]
 13    public class Session : MinimalPredictionSession
 14    {
 15        public Session(FP deltaTime, int localPlayerId = 0)
 116            : base(deltaTime, localPlayerId)
 17        {
 118        }
 19
 20        public Session(SessionRuntimeOptions runtimeOptions)
 021            : base(runtimeOptions)
 22        {
 023        }
 24    }
 25}