mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-05-01 09:18:00 +03:00
Actually add documentation.
This commit is contained in:
parent
3efa8f16b7
commit
cd16268e19
1 changed files with 22 additions and 0 deletions
|
@ -264,7 +264,29 @@ Get a SinkInfo by its name.
|
||||||
*/
|
*/
|
||||||
m_lua->set_function("GetSinkByName", &GameScript::GetSinkByName, this);
|
m_lua->set_function("GetSinkByName", &GameScript::GetSinkByName, this);
|
||||||
|
|
||||||
|
/***
|
||||||
|
Get a SoundSourceInfo by its name.
|
||||||
|
@function GetSoundSourceByName
|
||||||
|
@tparam string name the unique name of the sink as set in, or generated by, Tomb Editor
|
||||||
|
@treturn SoundSourceInfo a non-owning SoundSourceInfo referencing the sink.
|
||||||
|
*/
|
||||||
|
m_lua->set_function("GetSoundSourceByName", &GameScript::GetSoundSourceByName, this);
|
||||||
|
|
||||||
|
/***
|
||||||
|
Calculate the distance between two positions.
|
||||||
|
@function CalculateDistance
|
||||||
|
@tparam Position posA first position
|
||||||
|
@tparam Position posB second position
|
||||||
|
@treturn int the direct distance from one position to the other
|
||||||
|
*/
|
||||||
m_lua->set_function("CalculateDistance", &CalculateDistance);
|
m_lua->set_function("CalculateDistance", &CalculateDistance);
|
||||||
|
/***
|
||||||
|
Calculate the horizontal distance between two positions.
|
||||||
|
@function CalculateHorizontalDistance
|
||||||
|
@tparam Position posA first position
|
||||||
|
@tparam Position posB second position
|
||||||
|
@treturn int the direct distance on the XZ plane from one position to the other
|
||||||
|
*/
|
||||||
m_lua->set_function("CalculateHorizontalDistance", &CalculateHorizontalDistance);
|
m_lua->set_function("CalculateHorizontalDistance", &CalculateHorizontalDistance);
|
||||||
|
|
||||||
MakeReadOnlyTable("ObjID", kObjIDs);
|
MakeReadOnlyTable("ObjID", kObjIDs);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue