mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-05-02 17:57:59 +03:00

Treat functions as global that would previously be accessed through the GameFlow table. This does pollute the global environment in Lua a bit, but keeps it consistent with the functions in GameLogicScript, which are all accessed as globals. Add some default member initialisers. Remove WriteDefaults. Rename Intro to IntroImagePath and make it a std::string. Add some documentation for the functions of GameFlowScript. Fix some comments.
23 lines
355 B
C++
23 lines
355 B
C++
#pragma once
|
|
|
|
#include "framework.h"
|
|
#include "GameScriptSkyLayer.h"
|
|
|
|
namespace sol {
|
|
class state;
|
|
}
|
|
|
|
struct GameScriptSkyLayer
|
|
{
|
|
bool Enabled{ false };
|
|
byte R{ 0 };
|
|
byte G{ 0 };
|
|
byte B{ 0 };
|
|
short CloudSpeed{ 0 };
|
|
|
|
GameScriptSkyLayer() = default;
|
|
GameScriptSkyLayer(byte r, byte g, byte b, short speed);
|
|
|
|
static void Register(sol::state *);
|
|
};
|
|
|