Fixed young Lara hairs; Added more levels; Added Lara type to LUA; Fixed de-allocation bug;

This commit is contained in:
MontyTRC89 2018-09-05 23:56:39 +02:00
parent 100f1bb458
commit e80146e6bf
7 changed files with 97 additions and 14 deletions

View file

@ -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;
}