summaryrefslogtreecommitdiff
path: root/src/port/Game.cpp
diff options
context:
space:
mode:
authorMegaMech <MegaMech@users.noreply.github.com>2024-12-04 11:20:07 -0700
committerGitHub <noreply@github.com>2024-12-04 11:20:07 -0700
commitc774537ad36116909a0b43ecd28609df4ef386a8 (patch)
tree7be65a36bffc55d43c0931c1b25d3194461ef329 /src/port/Game.cpp
parentd830492da94f44369dac17db88461c0e9524ccd4 (diff)
parenteb158e2abd86579d3fa3c69436c3322cffd28d59 (diff)
Merge branch 'modding' into modding+modding+
Diffstat (limited to 'src/port/Game.cpp')
-rw-r--r--src/port/Game.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/port/Game.cpp b/src/port/Game.cpp
index b610a3002..0b5e8a32f 100644
--- a/src/port/Game.cpp
+++ b/src/port/Game.cpp
@@ -295,8 +295,10 @@ extern "C" {
void CourseManager_ClearVehicles(void) {
gWorldInstance.ClearVehicles();
+ gWorldInstance.Crossings.clear();
gWorldInstance.BombKarts.clear();
gWorldInstance.Thwomps.clear();
+ gWorldInstance.Penguins.clear();
}
void CourseManager_CrossingTrigger() {
@@ -501,6 +503,22 @@ extern "C" {
}
}
+ void CourseManager_TickPenguins(void) {
+ for (auto& penguin : gWorldInstance.Penguins) {
+ if (penguin) {
+ penguin->Tick();
+ }
+ }
+ }
+
+ void CourseManager_DrawPenguins(s32 cameraId) {
+ for (auto& penguin : gWorldInstance.Penguins) {
+ if (penguin) {
+ penguin->Draw(cameraId);
+ }
+ }
+ }
+
size_t GetCupCursorPosition() {
return gWorldInstance.CurrentCup->CursorPosition;
}