< Summary

Information
Class: Lattice.ECS.Framework.SystemMetadata
Assembly: Lattice
File(s): /home/runner/work/Sideline/Sideline/godot/scripts/lattice/ECS/Framework/SystemMetadata.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 17
Coverable lines: 17
Total lines: 44
Line coverage: 0%
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_Order()100%210%
get_Kind()100%210%
get_Category()100%210%
get_DebugCategory()100%210%
get_AllowRuntimeToggle()100%210%
get_Default()100%210%
get_GroupDefault()100%210%

File(s)

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

#LineLine coverage
 1// Copyright (c) 2026 Sideline Authors. All rights reserved.
 2// Licensed under GPL-3.0.
 3
 4namespace Lattice.ECS.Framework
 5{
 6    /// <summary>
 7    /// 系统执行类型。
 8    /// </summary>
 9    public enum SystemExecutionKind
 10    {
 11        MainThread,
 12        HotPath,
 13        ParallelReserved,
 14        Signal,
 15        Group
 16    }
 17
 18    /// <summary>
 19    /// 系统元数据。
 20    /// </summary>
 21    public readonly record struct SystemMetadata(
 022        int Order,
 023        SystemExecutionKind Kind,
 024        string? Category,
 025        string? DebugCategory,
 026        bool AllowRuntimeToggle)
 27    {
 28        /// <summary>默认普通主线程系统元数据。</summary>
 029        public static SystemMetadata Default => new(
 030            Order: 0,
 031            Kind: SystemExecutionKind.MainThread,
 032            Category: null,
 033            DebugCategory: null,
 034            AllowRuntimeToggle: true);
 35
 36        /// <summary>默认系统组元数据。</summary>
 037        public static SystemMetadata GroupDefault => new(
 038            Order: 0,
 039            Kind: SystemExecutionKind.Group,
 040            Category: "Group",
 041            DebugCategory: "Group",
 042            AllowRuntimeToggle: true);
 43    }
 44}