Add read-only max_turn_weight in ProfileProperties

This commit is contained in:
Michael Krasnyk
2017-03-20 14:34:25 +01:00
parent 851fcf0758
commit 78a199e2fb
3 changed files with 13 additions and 1 deletions
+3 -1
View File
@@ -245,7 +245,9 @@ void Sol2ScriptingEnvironment::InitContext(LuaScriptingContext &context)
"weight_precision",
&ProfileProperties::weight_precision,
"weight_name",
sol::property(&ProfileProperties::SetWeightName, &ProfileProperties::GetWeightName));
sol::property(&ProfileProperties::SetWeightName, &ProfileProperties::GetWeightName),
"max_turn_weight",
sol::property(&ProfileProperties::GetMaxTurnWeight));
context.state.new_usertype<std::vector<std::string>>(
"vector",