diff options
| author | MegaMech <MegaMech@users.noreply.github.com> | 2025-01-23 11:22:07 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-23 11:22:07 -0700 |
| commit | 1f189dfa804a05177f99dda1044898eb63fdcb3f (patch) | |
| tree | 598e0a6c26a5554afd1fcbcd801079fd1df090d3 /src/engine/vehicles/Train.cpp | |
| parent | 24ecfc3db43bfa606f41c42ef8778f96b5047c6b (diff) | |
Game.cpp and World.cpp Cleanup (#159)
* Remove CProperties and delete dup Properties from World.h
* Improvement
* Fix compile
* Cleanup
* Document gRaceState
* wip cleanup
* compile
* Impl PlayerBombKart
* Rename CourseManager_ to CM_
* Finish renames m_ to CM_
* cleanup
* Remove extra printf
---------
Co-authored-by: MegaMech <7255464+MegaMech@users.noreply.github.com>
Diffstat (limited to 'src/engine/vehicles/Train.cpp')
| -rw-r--r-- | src/engine/vehicles/Train.cpp | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/engine/vehicles/Train.cpp b/src/engine/vehicles/Train.cpp index 0e9af21ed..14d9c9763 100644 --- a/src/engine/vehicles/Train.cpp +++ b/src/engine/vehicles/Train.cpp @@ -76,10 +76,6 @@ ATrain::ATrain(ATrain::TenderStatus tender, size_t numCarriages, f32 speed, uint AnotherSmokeTimer = 0; - _count++; -} - -void ATrain::Spawn() { TrainCarStuff* tempLocomotive; TrainCarStuff* tempTender; TrainCarStuff* tempPassengerCar; @@ -128,9 +124,12 @@ void ATrain::Spawn() { ACTOR_TRAIN_PASSENGER_CAR); } } + + _count++; } -void ATrain::BeginPlay() { +bool ATrain::IsMod() { + return true; } void ATrain::SyncComponents(TrainCarStuff* trainCar, s16 orientationY) { @@ -223,7 +222,7 @@ void ATrain::Tick() { } } -void ATrain::Collision(s32 playerId, Player* player) { +void ATrain::VehicleCollision(s32 playerId, Player* player) { TrainCarStuff* trainCar; f32 playerPosX; f32 playerPosZ; @@ -274,7 +273,7 @@ void ATrain::Collision(s32 playerId, Player* player) { } -void ATrain::Draw(s32 playerId) { +void ATrain::Draw(Camera* camera) { } s32 ATrain::AddSmoke(s32 trainIndex, Vec3f pos, f32 velocity) { |
