This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
hpl3:game:scripting [2015/09/11 10:32] ian.thomas [Important notes] |
hpl3:game:scripting [2017/04/26 06:54] alexkalopsia [User Module] |
||
---|---|---|---|
Line 17: | Line 17: | ||
Instead do this: | Instead do this: | ||
- | <code c++>/*void Update(float afTimeStep) { UpdateStuff(afTimeStep); }*/ | + | <code c++> |
+ | /*void Update(float afTimeStep) | ||
+ | { | ||
+ | UpdateStuff(afTimeStep); | ||
+ | }*/ | ||
</code> | </code> | ||
Line 83: | Line 87: | ||
=== General === | === General === | ||
- | A user module is a class that has all kinds of functionality. It is really just base class that can be filled to take care of some kind of behavior. Normally the modules are not used directly, but instead have helper functions that simply the calling of various methods. | + | A user module is a class that has all kinds of functionality. It is really just base class that can be filled to take care of some kind of behavior. Normally the modules are not used directly, but instead have helper functions that simply handle the calling of various methods. |
Modules are added in "Modules.cfg". | Modules are added in "Modules.cfg". | ||
- | The games come with a pre-made ones that can be find in [[:hpl3:game:scripting:user_modules|User Modules page]]. | + | The games come with pre-made ones that can be found on the [[:hpl3:game:scripting:user_modules|User Modules page]]. |
=== Callback Methods === | === Callback Methods === |