• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

MeltyPlayer / MeltyTool / 20982513833

14 Jan 2026 04:35AM UTC coverage: 41.138% (-0.8%) from 41.907%
20982513833

push

github

MeltyPlayer
Fixed broken shader source tests.

6752 of 18485 branches covered (36.53%)

Branch coverage included in aggregate %.

28650 of 67572 relevant lines covered (42.4%)

64006.02 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/FinModelUtility/Fin/Fin/src/scene/instance/SceneNodeInstanceImpl.cs
1
using System;
2
using System.Collections.Generic;
3
using System.Linq;
4

5
using fin.math.rotations;
6
using fin.math.transform;
7

8
namespace fin.scene.instance;
9

10
public partial class SceneInstanceImpl {
11
  private class SceneNodeInstanceImpl
12
      : ISceneNodeInstance {
13
    private readonly IReadOnlySceneNode sceneObject_;
14
    public SceneNodeInstanceImpl(SceneNodeInstanceImpl? parent,
×
15
                                 IReadOnlySceneNode sceneObject) {
×
16
      this.sceneObject_ = sceneObject;
×
17
      
18
      this.Transform = new Transform3d(parent?.Transform);
×
19
      this.Transform.LocalTranslation = sceneObject.Position;
×
20
      this.Transform.LocalRotation = QuaternionUtil.Create(sceneObject.Rotation);
×
21
      this.Transform.LocalScale = sceneObject.Scale;
×
22

23
      this.ChildNodes = sceneObject.ChildNodes
×
24
                                   .Select(n => new SceneNodeInstanceImpl(
×
25
                                               this,
×
26
                                               n))
×
27
                                   .ToArray();
×
28
    }
×
29

30
    ~SceneNodeInstanceImpl() => this.ReleaseUnmanagedResources_();
×
31

32
    public void Dispose() {
×
33
      this.ReleaseUnmanagedResources_();
×
34
      GC.SuppressFinalize(this);
×
35
    }
×
36

37
    private void ReleaseUnmanagedResources_() {
×
38
      foreach (var child in this.ChildNodes) {
×
39
        child.Dispose();
×
40
      }
×
41
    }
×
42

43
    public IReadOnlySceneNode Definition => this.sceneObject_;
×
44

45
    public IReadOnlyList<ISceneNodeInstance> ChildNodes { get; }
×
46

47
    public Transform3d Transform { get; }
×
48

49
    public void Tick() {
×
50
      foreach (var component in this.sceneObject_.Components) {
×
51
        if (component is ISceneNodeTickComponent tickComponent) {
×
52
          tickComponent.Tick(this);
×
53
        }
×
54
      }
×
55

56
      foreach (var child in this.ChildNodes) {
×
57
        child.Tick();
×
58
      }
×
59
    }
×
60
  }
61
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc