Fixes for scripting documentation

This commit is contained in:
Marianne Gagnon 2015-06-21 18:43:31 -04:00
parent 90cf3176d1
commit 9119f5f291
2 changed files with 9 additions and 2 deletions

View File

@ -32,13 +32,17 @@ namespace Scripting
/** \addtogroup Scripting
* @{
*/
/** \addtogroup Audio
/** \addtogroup Scripting_Audio Audio
* @{
*/
/** Plays a sound by name */
void playSound(const std::string* sound_name)
{
SFXManager::get()->quickSound(*sound_name);
}
/** @}*/
/** @}*/

View File

@ -44,12 +44,14 @@ namespace Scripting
* @{
*/
/** Get number of challenges that were completed at any difficulty */
int getCompletedChallengesCount()
{
::Track* track = World::getWorld()->getTrack();
return track->getNumOfCompletedChallenges();
}
/** Get total number of challenges */
int getChallengeCount()
{
::Track* track = World::getWorld()->getTrack();
@ -69,8 +71,9 @@ namespace Scripting
r = engine->RegisterGlobalFunction("int getChallengeCount()", asFUNCTION(getChallengeCount), asCALL_CDECL); assert(r >= 0);
}
/** \cond DOXYGEN_IGNORE */
}
/** \cond DOXYGEN_IGNORE */
}
/** \endcond */