mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-05-09 20:18:23 +03:00
Move scripting source files into new filder. Obviously, these won't work yet or even compile.
This commit is contained in:
parent
a9d8b78c96
commit
69de6e4502
24 changed files with 3 additions and 3 deletions
27
Scripting/Source/GameScriptAudioTrack.cpp
Normal file
27
Scripting/Source/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