Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Angelscript vehicle engine bindings #3048

Draft
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

ohlidalp
Copy link
Member

@ohlidalp ohlidalp commented May 28, 2023

The missing piece of #3030. Will come with a demo script when finished.

The gear-vector prep code was moved from ActorSpawner.cpp to EngineSim.cpp

EngineSim.h:
- added doxy comments about 'engine' keyword args
- added `getDiffRatio()` getter so `m_diff_ratio` is no longer a dead attr - will be bound to AngelScript later
This touches many files but it's just find&replace of the renamed functions in EngineSim.h
This is a preparation for AngelScript bindings which must all be `camelCase()`.
Deleted `EngineSim::shiftmodes`, using global `SimGearboxMode` (see Application.h) for everything. The enums are the same except for syntax.
EngineSim class upgraded to RefCountingObject - that means all codebase uses EngineSimPtr now.
Ambiguous func `EngineSim::getEngineTorque()` renamed to `getCurEngineTorque()`
Func `EngineSim::getShiftingToGear()` renamed to `getShifTargetGear()`
EngineSim.h - some more doxygen doc shuffling.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant