mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-04-30 08:47:58 +03:00
Fixed young Lara hairs; Added more levels; Added Lara type to LUA; Fixed de-allocation bug;
This commit is contained in:
parent
100f1bb458
commit
e80146e6bf
7 changed files with 97 additions and 14 deletions
|
@ -44,7 +44,8 @@ GameScript::GameScript()
|
|||
"storm", &GameScriptLevel::Storm,
|
||||
"background", &GameScriptLevel::Background,
|
||||
"rain", &GameScriptLevel::Rain,
|
||||
"snow", &GameScriptLevel::Snow
|
||||
"snow", &GameScriptLevel::Snow,
|
||||
"laraType", &GameScriptLevel::LaraType
|
||||
);
|
||||
|
||||
m_lua.new_usertype<GameScript>("GameScript",
|
||||
|
@ -56,6 +57,14 @@ GameScript::GameScript()
|
|||
|
||||
m_strings.resize(NUM_STRINGS);
|
||||
|
||||
// define some constants
|
||||
m_lua["LaraType"] = m_lua.create_table_with(
|
||||
"Normal", LARA_DRAW_TYPE::LARA_NORMAL,
|
||||
"Young", LARA_DRAW_TYPE::LARA_YOUNG,
|
||||
"DiveSuit", LARA_DRAW_TYPE::LARA_DIVESUIT,
|
||||
"CatSuit", LARA_DRAW_TYPE::LARA_CATSUIT
|
||||
);
|
||||
|
||||
m_lua["Gameflow"] = this;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue