mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-05-13 05:57:05 +03:00
Update SkyLayer more.
This commit is contained in:
parent
0e4997ffb0
commit
e201518883
3 changed files with 4 additions and 4 deletions
|
@ -102,7 +102,7 @@ Specify which translations in the strings table correspond to which languages.
|
|||
table_flow.set_function(ScriptReserved_SetLanguageNames, &FlowHandler::SetLanguageNames, this);
|
||||
|
||||
Level::Register(table_flow);
|
||||
SkyLayer::Register(m_lua);
|
||||
SkyLayer::Register(table_flow);
|
||||
Mirror::Register(table_flow);
|
||||
InventoryItem::Register(table_flow);
|
||||
GameScriptSettings::Register(m_lua);
|
||||
|
|
|
@ -8,9 +8,9 @@ As seen in TR4's City of the Dead.
|
|||
@pragma nostrip
|
||||
*/
|
||||
|
||||
void SkyLayer::Register(sol::state* lua)
|
||||
void SkyLayer::Register(sol::table & parent)
|
||||
{
|
||||
lua->new_usertype<SkyLayer>("SkyLayer",
|
||||
parent.new_usertype<SkyLayer>("SkyLayer",
|
||||
sol::constructors<SkyLayer(GameScriptColor const &, short)>(),
|
||||
|
||||
/// (@{Color}) RGB sky color
|
||||
|
|
|
@ -19,6 +19,6 @@ struct SkyLayer
|
|||
void SetColor(GameScriptColor const & col);
|
||||
GameScriptColor GetColor() const;
|
||||
|
||||
static void Register(sol::state *);
|
||||
static void Register(sol::table &);
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue