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:
hispidence 2021-12-17 23:19:49 +00:00
parent 69de6e4502
commit 6983e09a6a
24 changed files with 0 additions and 0 deletions

View 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
);
}