mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-04-30 16:57:57 +03:00

Make its constructor take a GameScriptColor, and give it a SetColor function, exposing it to Lua as the color member. Add documentation.
23 lines
379 B
C++
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 *);
|
|
};
|
|
|