From 9605c36303972e0399dcbb6f14592c033bf82ad5 Mon Sep 17 00:00:00 2001 From: Jarrod Doyle Date: Mon, 26 Aug 2024 15:24:07 +0100 Subject: [PATCH] Change BuildHierarchy type signature --- project/code/TMV/Mission.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/project/code/TMV/Mission.cs b/project/code/TMV/Mission.cs index b448556..6adce01 100644 --- a/project/code/TMV/Mission.cs +++ b/project/code/TMV/Mission.cs @@ -66,7 +66,7 @@ public partial class Mission : Node3D { if (Build) { - RebuildMap(); + Timing.TimeStage("Build", () => RebuildMap()); Build = false; } if (Clear) @@ -106,13 +106,13 @@ public partial class Mission : Node3D if (_file.Chunks.TryGetValue("BRLIST", out var brList)) { - var objHierarchy = Timing.TimeStage("Hierarchy", () => BuildHierarchy(_file)); + var objHierarchy = Timing.TimeStage("Hierarchy", BuildHierarchy); Timing.TimeStage("Object Placement", () => PlaceObjects((BrList)brList, objHierarchy)); } } // TODO: Make this less of a mess - private ObjectHierarchy BuildHierarchy(DbFile db) + private ObjectHierarchy BuildHierarchy() { ObjectHierarchy objHierarchy; if (_file.Chunks.TryGetValue("GAM_FILE", out var gamFileChunk))