Improve GameScriptSkyLayer.

Make its constructor take a GameScriptColor, and give it a SetColor function, exposing it to Lua as the color member.

Add documentation.
This commit is contained in:
hispidence 2021-08-07 19:06:22 +01:00
parent af5b32c929
commit 10111e2df2
2 changed files with 46 additions and 15 deletions

View file

@ -1,7 +1,6 @@
#pragma once
#include "framework.h"
#include "GameScriptSkyLayer.h"
#include "GameScriptColor.h"
namespace sol {
class state;
@ -16,7 +15,8 @@ struct GameScriptSkyLayer
short CloudSpeed{ 0 };
GameScriptSkyLayer() = default;
GameScriptSkyLayer(byte r, byte g, byte b, short speed);
GameScriptSkyLayer(GameScriptColor const & col, short speed);
void SetColor(GameScriptColor const & col);
static void Register(sol::state *);
};