Skip to content

Commit

Permalink
code style
Browse files Browse the repository at this point in the history
  • Loading branch information
Xottab-DUTY committed Nov 29, 2023
1 parent 9eaeaf3 commit 9164cd4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
10 changes: 6 additions & 4 deletions src/xrGame/map_script.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,9 @@ SCRIPT_EXPORT(CMapLocation, (),
//.def(constructor<>())
.def("HintEnabled", &CMapLocation::HintEnabled)
.def("GetHint", &CMapLocation::GetHint)
.def("SetHint", +[](CMapLocation* self, LPCSTR hint) {
self->SetHint(hint);
.def("SetHint", +[](CMapLocation* self, pcstr hint)
{
self->SetHint(hint);
})
.def("PointerEnabled", &CMapLocation::PointerEnabled)
.def("EnablePointer", &CMapLocation::EnablePointer)
Expand All @@ -41,8 +42,9 @@ SCRIPT_EXPORT(CMapLocation, (),
.def("SpotEnabled", &CMapLocation::SpotEnabled)
.def("EnableSpot", &CMapLocation::EnableSpot)
.def("DisableSpot", &CMapLocation::DisableSpot)
.def("GetLevelName", +[](CMapLocation* self) {
return self->GetLevelName().c_str();
.def("GetLevelName", +[](CMapLocation* self)
{
return self->GetLevelName().c_str();
})
.def("GetPosition", &CMapLocation::GetPosition)
.def("ObjectID", &CMapLocation::ObjectID)
Expand Down
5 changes: 3 additions & 2 deletions src/xrGame/script_movement_action_script.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,9 @@ SCRIPT_EXPORT(CScriptMovementAction, (),
.def("move", &CScriptMovementAction::SetMovementType)
.def("path", &CScriptMovementAction::SetPathType)
.def("object", &CScriptMovementAction::SetObjectToGo)
.def("patrol", +[](CScriptMovementAction* self, const CPatrolPath* path, LPCSTR path_name) {
self->SetPatrolPath(path, path_name);
.def("patrol", +[](CScriptMovementAction* self, const CPatrolPath* path, pcstr path_name)
{
self->SetPatrolPath(path, path_name);
})
.def("position", &CScriptMovementAction::SetPosition)
.def("input", &CScriptMovementAction::SetInputKeys)
Expand Down

0 comments on commit 9164cd4

Please sign in to comment.