mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-04-30 00:37:58 +03:00
18 lines
476 B
C++
18 lines
476 B
C++
![]() |
#include "framework.h"
|
||
|
#include "GameScriptAudioTrack.h"
|
||
|
|
||
|
GameScriptAudioTrack::GameScriptAudioTrack(std::string const & trackName, bool looped)
|
||
|
{
|
||
|
this->trackName = trackName;
|
||
|
this->looped = looped;
|
||
|
}
|
||
|
|
||
|
void GameScriptAudioTrack::Register(sol::state* lua)
|
||
|
{
|
||
|
lua->new_usertype<GameScriptAudioTrack>("AudioTrack",
|
||
|
sol::constructors<GameScriptAudioTrack(std::string, bool)>(),
|
||
|
"trackName", &GameScriptAudioTrack::trackName,
|
||
|
"looped", &GameScriptAudioTrack::looped
|
||
|
);
|
||
|
}
|