From b934e98fc34964970ab5efacb2fb7c3372ae0b1a Mon Sep 17 00:00:00 2001 From: MegaMech Date: Sat, 13 Dec 2025 11:50:28 -0700 Subject: Refactor Track Class To Instantiate On Track Load (#587) * Initial Commit * First compilation of Registry template * Further changes * wip changes * Impl TrackBrowser and Registry Info * Remove const from TInfo * Prep GetWorld * Name refactor * Refactor gWorldInstance to GetWorld() * wip * Should work now * Data menu work again * Fix editor staying open after program close * Rename LoadLevel to LoadTrackDataFromJson * More changes * Add statue * Add search to content browser using tags * Fix statue pos and register tags * Fix actor loading * Fix delete all bug which deleted cameras * reduce some boiler plate in actor and object * Remove unused rulesets * Search bar for all tabs * fix data screen * fix actor spawning * temp editor fix * Clean up * improve extra mode transformation * fix podium crash * Fix editor clicking * Fix editor clicking 2 * fix extra in custom track * Fix FI for three actors * Fix divide by zero error * Ids managed by Registry * Add scary comment --------- Co-authored-by: MegaMech <7255464+MegaMech@users.noreply.github.com> Co-authored-by: coco875 --- src/engine/objects/ChainChomp.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/engine/objects/ChainChomp.cpp') diff --git a/src/engine/objects/ChainChomp.cpp b/src/engine/objects/ChainChomp.cpp index fafed0846..db12b3ba2 100644 --- a/src/engine/objects/ChainChomp.cpp +++ b/src/engine/objects/ChainChomp.cpp @@ -29,6 +29,16 @@ OChainChomp::OChainChomp() { _count++; } +OChainChomp::OChainChomp(const SpawnParams& params) { + Name = "Chain Chomp"; + ResourceName = "mk:chain_chomp"; + _idx = _count; + init_object(indexObjectList2[_idx], 0); + _objectIndex = indexObjectList2[_idx]; + + _count++; +} + void OChainChomp::Tick() { s32 objectIndex; Object* object; -- cgit v1.2.3