mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-05-10 04:26:42 +03:00
Revert "Move scripting source files into new filder. Obviously, these won't work yet or even compile."
This reverts commit 8a31dbf644
.
This commit is contained in:
parent
69de6e4502
commit
6983e09a6a
24 changed files with 0 additions and 0 deletions
27
TR5Main/Scripting/GameScriptAudioTrack.cpp
Normal file
27
TR5Main/Scripting/GameScriptAudioTrack.cpp
Normal file
|
@ -0,0 +1,27 @@
|
|||
#include "frameworkandsol.h"
|
||||
#include "GameScriptAudioTrack.h"
|
||||
|
||||
/***
|
||||
Metadata about audio tracks (music and ambience).
|
||||
|
||||
__In progress__
|
||||
|
||||
@pregameclass AudioTrack
|
||||
@pragma nostrip
|
||||
*/
|
||||
// TODO FIXME find out what is meant to happen and whether we need this or not
|
||||
|
||||
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
|
||||
);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue