mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-05-10 20:46:47 +03:00
Register SetAmbientTrack and PlayAudioTrack. Make PlayAudioTrack static, pass its string arg by reference-to-const, and let it use the loop bool passed in instead of the one stored in global state.
Improve some text formatting in the header.
This commit is contained in:
parent
9386993bcd
commit
33dcd85a06
2 changed files with 13 additions and 10 deletions
|
@ -81,10 +81,10 @@ public:
|
|||
void ResetVariables();
|
||||
|
||||
// Sound
|
||||
void PlayAudioTrack(std::string trackName, bool looped);
|
||||
static void PlayAudioTrack(std::string const & trackName, bool looped);
|
||||
void PlaySoundEffect(int id, GameScriptPosition pos, int flags);
|
||||
void PlaySoundEffect(int id, int flags);
|
||||
void SetAmbientTrack(std::string const & trackName);
|
||||
static void SetAmbientTrack(std::string const & trackName);
|
||||
|
||||
// Special FX
|
||||
void AddLightningArc(GameScriptPosition src, GameScriptPosition dest, GameScriptColor color, int lifetime, int amplitude, int beamWidth, int segments, int flags);
|
||||
|
@ -113,10 +113,10 @@ public:
|
|||
int CalculateDistance(GameScriptPosition pos1, GameScriptPosition pos2);
|
||||
int CalculateHorizontalDistance(GameScriptPosition pos1, GameScriptPosition pos2);
|
||||
|
||||
void InitCallbacks();
|
||||
void OnStart();
|
||||
void OnLoad();
|
||||
void OnControlPhase();
|
||||
void OnSave();
|
||||
void OnEnd();
|
||||
void InitCallbacks();
|
||||
void OnStart();
|
||||
void OnLoad();
|
||||
void OnControlPhase();
|
||||
void OnSave();
|
||||
void OnEnd();
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue