mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-05-06 19:01:06 +03:00
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:
parent
af5b32c929
commit
10111e2df2
2 changed files with 46 additions and 15 deletions
|
@ -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 *);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue