TombEngine/TR5Main/Scripting/GameScriptSkyLayer.h
hispidence 10111e2df2 Improve GameScriptSkyLayer.
Make its constructor take a GameScriptColor, and give it a SetColor function, exposing it to Lua as the color member.

Add documentation.
2021-08-07 19:06:22 +01:00

23 lines
379 B
C++

#pragma once
#include "GameScriptColor.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(GameScriptColor const & col, short speed);
void SetColor(GameScriptColor const & col);
static void Register(sol::state *);
};