Skip to content

Commit

Permalink
xrGame/script_binder_object_script.cpp: mark the object property as r…
Browse files Browse the repository at this point in the history
…eadwrite
  • Loading branch information
ChugunovRoman committed Aug 22, 2024
1 parent d6eb6ce commit 3d00030
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/xrGame/action_base_script.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ IC static void CScriptActionBase_Export(lua_State* luaState)
module(luaState)
[
class_<CScriptActionBase, no_bases, default_holder, CScriptActionWrapper>("action_base")
.def_readonly("object", &CScriptActionBase::m_object)
.def_readwrite("object", &CScriptActionBase::m_object)
.def_readonly("storage", &CScriptActionBase::m_storage)
.def(constructor<>())
.def(constructor<CScriptGameObject*>())
Expand Down
2 changes: 1 addition & 1 deletion src/xrGame/action_planner_script.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ IC static void CScriptActionPlanner_Export(lua_State* luaState)
module(luaState)
[
class_<CScriptActionPlanner, no_bases, default_holder, CScriptActionPlannerWrapper>("action_planner")
.def_readonly("object", &CScriptActionPlanner::m_object)
.def_readwrite("object", &CScriptActionPlanner::m_object)
.def_readonly("storage", &CScriptActionPlanner::m_storage)
.def(constructor<>())
.def("actual", &get_actual)
Expand Down
2 changes: 1 addition & 1 deletion src/xrGame/property_evaluator_script.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ SCRIPT_EXPORT(CScriptPropertyEvaluator, (),
class_<CScriptPropertyEvaluator, no_bases, default_holder,
CScriptPropertyEvaluatorWrapper
>("property_evaluator")
.def_readonly("object", &CScriptPropertyEvaluator::m_object)
.def_readwrite("object", &CScriptPropertyEvaluator::m_object)
.def_readonly("storage", &CScriptPropertyEvaluator::m_storage)
.def(constructor<>())
.def(constructor<CScriptGameObject*>())
Expand Down
2 changes: 1 addition & 1 deletion src/xrGame/script_binder_object_script.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ SCRIPT_EXPORT(CScriptBinderObject, (),
module(luaState)
[
class_<CScriptBinderObject, no_bases, default_holder, CScriptBinderObjectWrapper>("object_binder")
.def_readonly("object", &CScriptBinderObject::m_object)
.def_readwrite("object", &CScriptBinderObject::m_object)
.def(constructor<CScriptGameObject*>())
.def("reinit", &CScriptBinderObject::reinit, &CScriptBinderObjectWrapper::reinit_static)
.def("reload", &CScriptBinderObject::reload, &CScriptBinderObjectWrapper::reload_static)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ static void CSE_ALifeOnlineOfflineGroup_Export(lua_State* luaState)
[
class_<CSE_ALifeOnlineOfflineGroup::MEMBERS::value_type>("MEMBERS__value_type")
.def_readonly("id", &CSE_ALifeOnlineOfflineGroup::MEMBERS::value_type::first)
.def_readonly("object", &CSE_ALifeOnlineOfflineGroup::MEMBERS::value_type::second),
.def_readwrite("object", &CSE_ALifeOnlineOfflineGroup::MEMBERS::value_type::second),

luabind_class_online_offline_group2(CSE_ALifeOnlineOfflineGroup, "cse_alife_online_offline_group",
CSE_ALifeDynamicObject, CSE_ALifeSchedulable)
Expand Down

0 comments on commit 3d00030

Please sign in to comment.