< Summary

Information
Class: Gravitas.Diagnostics.GravitasRagdollDiagnosticView
Assembly: Gravitas
File(s): /home/runner/work/Gravitas/Gravitas/src/Gravitas/Diagnostics/Events/Constraints/GravitasRagdollDiagnosticView.cs
Line coverage
100%
Covered lines: 7
Uncovered lines: 0
Coverable lines: 7
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
.ctor(...)100%11100%
get_Frame()100%11100%
get_Sequence()100%11100%
get_RagdollId()100%11100%
get_LinkCount()100%11100%
get_JointCount()100%11100%
get_IsActive()100%11100%

File(s)

/home/runner/work/Gravitas/Gravitas/src/Gravitas/Diagnostics/Events/Constraints/GravitasRagdollDiagnosticView.cs

#LineLine coverage
 1//=======================================================================
 2// GravitasRagdollDiagnosticView.cs
 3//=======================================================================
 4// MIT License, Copyright (c) 2026-present David Oravsky (mrdav30)
 5// See LICENSE file in the project root for full license information.
 6//=======================================================================
 7
 8namespace Gravitas.Diagnostics;
 9
 10/// <summary>
 11/// Typed read-only view over a ragdoll active-state diagnostic event.
 12/// </summary>
 13public readonly struct GravitasRagdollDiagnosticView
 14{
 315    internal GravitasRagdollDiagnosticView(GravitasDiagnosticEvent diagnosticEvent) => Event = diagnosticEvent;
 16
 17    /// <summary>Gets the underlying diagnostic event.</summary>
 18    public GravitasDiagnosticEvent Event { get; }
 19
 20    /// <summary>Gets the simulation frame in which the state change was captured.</summary>
 121    public long Frame => Event.Frame;
 22
 23    /// <summary>Gets the event's sequence within its capture buffer.</summary>
 124    public int Sequence => Event.Sequence;
 25
 26    /// <summary>Gets the context-local ragdoll identifier.</summary>
 227    public int RagdollId => Event.BodyId;
 28
 29    /// <summary>Gets the number of ragdoll links.</summary>
 130    public int LinkCount => Event.DataA;
 31
 32    /// <summary>Gets the number of ragdoll joints.</summary>
 133    public int JointCount => Event.DataB;
 34
 35    /// <summary>Gets whether the ragdoll is active.</summary>
 136    public bool IsActive => Event.Hit;
 37}