< Summary

Information
Class: Lattice.ECS.Framework.ISystem
Assembly: Lattice
File(s): /home/runner/work/Sideline/Sideline/godot/scripts/lattice/ECS/Framework/ISystem.cs
Line coverage
100%
Covered lines: 2
Uncovered lines: 0
Coverable lines: 2
Total lines: 41
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
get_Phase()100%11100%
get_Contract()100%11100%

File(s)

/home/runner/work/Sideline/Sideline/godot/scripts/lattice/ECS/Framework/ISystem.cs

#LineLine coverage
 1using Lattice.ECS.Core;
 2using Lattice.Math;
 3
 4namespace Lattice.ECS.Framework
 5{
 6    /// <summary>
 7    /// 最小系统接口。
 8    /// 当前主干正式支持的是“平面 `SystemScheduler` + 轻量 phase + 显式生命周期”模型,
 9    /// 不要求系统派生自 `SystemBase`,也不引入 group / enable-disable / dependency graph 等更重系统家族语义。
 10    /// </summary>
 11    public interface ISystem
 12    {
 13        /// <summary>
 14        /// 系统所属的执行阶段。
 15        /// 默认落在 `Simulation`,调度器会先按 phase 排序,再在 phase 内保持注册顺序稳定。
 16        /// </summary>
 14917        SystemPhase Phase => SystemPhase.Simulation;
 18
 19        /// <summary>
 20        /// 当前系统的轻量作者契约。
 21        /// 默认允许读写普通组件数据,但不默认开放 global state 与结构性修改;
 22        /// 若系统需要这些更强能力,应显式声明,而不是继续依赖隐式约定。
 23        /// </summary>
 76624        SystemAuthoringContract Contract => SystemAuthoringContract.Default;
 25
 26        /// <summary>
 27        /// 系统初始化时调用。
 28        /// </summary>
 29        void OnInit(Frame frame);
 30
 31        /// <summary>
 32        /// 每帧更新时调用。
 33        /// </summary>
 34        void OnUpdate(Frame frame, FP deltaTime);
 35
 36        /// <summary>
 37        /// 系统销毁时调用。
 38        /// </summary>
 39        void OnDestroy(Frame frame);
 40    }
 41}

Methods/Properties

get_Phase()
get_Contract()