Move scripting source files into new filder. Obviously, these won't work yet or even compile.

This commit is contained in:
hispidence 2021-12-14 21:10:21 +00:00
parent 8c82eed3d2
commit 8a31dbf644
20 changed files with 0 additions and 0 deletions

View file

@ -1,27 +0,0 @@
#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
);
}