Skip to content

Commit 7e485a4

Browse files
committed
xrGame/alife_simulator_script.cpp: reformat
1 parent 1efbe09 commit 7e485a4

File tree

1 file changed

+48
-46
lines changed

1 file changed

+48
-46
lines changed

src/xrGame/alife_simulator_script.cpp

Lines changed: 48 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -314,52 +314,54 @@ void teleport_object(CALifeSimulator* alife, ALife::_OBJECT_ID id, GameGraph::_G
314314

315315
SCRIPT_EXPORT(CALifeSimulator, (),
316316
{
317-
module(luaState)[class_<CALifeSimulator>("alife_simulator")
318-
.def("valid_object_id", &valid_object_id)
319-
.def("level_id", &get_level_id)
320-
.def("level_name", &get_level_name)
321-
.def("object",
322-
(CSE_ALifeDynamicObject * (*)(const CALifeSimulator*, ALife::_OBJECT_ID))(alife_object))
323-
.def("object", (CSE_ALifeDynamicObject * (*)(const CALifeSimulator*, ALife::_OBJECT_ID, bool))(
324-
alife_object))
325-
.def("object", (CSE_ALifeDynamicObject *(*) (const CALifeSimulator*, LPCSTR))(alife_object))
326-
.def("story_object", (CSE_ALifeDynamicObject * (*)(const CALifeSimulator*, ALife::_STORY_ID))(
327-
alife_story_object))
328-
.def("set_switch_online",
329-
(void (CALifeSimulator::*)(ALife::_OBJECT_ID, bool))(&CALifeSimulator::set_switch_online))
330-
.def("set_switch_offline",
331-
(void (CALifeSimulator::*)(ALife::_OBJECT_ID, bool))(&CALifeSimulator::set_switch_offline))
332-
.def("set_interactive",
333-
(void (CALifeSimulator::*)(ALife::_OBJECT_ID, bool))(&CALifeSimulator::set_interactive))
334-
.def("kill_entity", &CALifeSimulator::kill_entity)
335-
336-
.def("kill_entity", &kill_entity0)
337-
.def("kill_entity", &kill_entity1)
338-
.def("add_in_restriction", &add_in_restriction)
339-
.def("add_out_restriction", &add_out_restriction)
340-
.def("remove_in_restriction", &remove_in_restriction)
341-
.def("remove_out_restriction", &remove_out_restriction)
342-
.def("remove_all_restrictions", &CALifeSimulator::remove_all_restrictions)
343-
.def("create", &CALifeSimulator__create)
344-
.def("create", &CALifeSimulator__spawn_item2)
345-
.def("create", &CALifeSimulator__spawn_item)
346-
.def("create_ammo", &CALifeSimulator__spawn_ammo)
347-
.def("release", &CALifeSimulator__release)
348-
.def("spawn_id", &CALifeSimulator__spawn_id)
349-
.def("actor", &get_actor)
350-
.def("has_info", &has_info)
351-
.def("dont_has_info", &dont_has_info)
352-
.def("switch_distance", (float (CALifeSimulator::*)())(&CALifeSimulator::switch_distance))
353-
.def("switch_distance", (void (CALifeSimulator::*)(float))
354-
(&CALifeSimulator::set_switch_distance))
355-
.def("set_switch_distance", (void (CALifeSimulator::*)(float))
356-
(&CALifeSimulator::set_switch_distance)) //Alundaio: renamed to set_switch_distance from switch_distance
357-
//Alundaio: extend alife simulator exports
358-
.def("teleport_object", &teleport_object)
359-
//Alundaio: END
360-
361-
,
362-
def("alife", &alife)];
317+
module(luaState)
318+
[
319+
class_<CALifeSimulator>("alife_simulator")
320+
.def("valid_object_id", &valid_object_id)
321+
.def("level_id", &get_level_id)
322+
.def("level_name", &get_level_name)
323+
.def("object",
324+
(CSE_ALifeDynamicObject * (*)(const CALifeSimulator*, ALife::_OBJECT_ID))(alife_object))
325+
.def("object", (CSE_ALifeDynamicObject * (*)(const CALifeSimulator*, ALife::_OBJECT_ID, bool))(
326+
alife_object))
327+
.def("object", (CSE_ALifeDynamicObject *(*) (const CALifeSimulator*, LPCSTR))(alife_object))
328+
.def("story_object", (CSE_ALifeDynamicObject * (*)(const CALifeSimulator*, ALife::_STORY_ID))(
329+
alife_story_object))
330+
.def("set_switch_online",
331+
(void (CALifeSimulator::*)(ALife::_OBJECT_ID, bool))(&CALifeSimulator::set_switch_online))
332+
.def("set_switch_offline",
333+
(void (CALifeSimulator::*)(ALife::_OBJECT_ID, bool))(&CALifeSimulator::set_switch_offline))
334+
.def("set_interactive",
335+
(void (CALifeSimulator::*)(ALife::_OBJECT_ID, bool))(&CALifeSimulator::set_interactive))
336+
.def("kill_entity", &CALifeSimulator::kill_entity)
337+
338+
.def("kill_entity", &kill_entity0)
339+
.def("kill_entity", &kill_entity1)
340+
.def("add_in_restriction", &add_in_restriction)
341+
.def("add_out_restriction", &add_out_restriction)
342+
.def("remove_in_restriction", &remove_in_restriction)
343+
.def("remove_out_restriction", &remove_out_restriction)
344+
.def("remove_all_restrictions", &CALifeSimulator::remove_all_restrictions)
345+
.def("create", &CALifeSimulator__create)
346+
.def("create", &CALifeSimulator__spawn_item2)
347+
.def("create", &CALifeSimulator__spawn_item)
348+
.def("create_ammo", &CALifeSimulator__spawn_ammo)
349+
.def("release", &CALifeSimulator__release)
350+
.def("spawn_id", &CALifeSimulator__spawn_id)
351+
.def("actor", &get_actor)
352+
.def("has_info", &has_info)
353+
.def("dont_has_info", &dont_has_info)
354+
.def("switch_distance", (float (CALifeSimulator::*)())(&CALifeSimulator::switch_distance))
355+
.def("switch_distance", (void (CALifeSimulator::*)(float))
356+
(&CALifeSimulator::set_switch_distance))
357+
.def("set_switch_distance", (void (CALifeSimulator::*)(float))
358+
(&CALifeSimulator::set_switch_distance)) //Alundaio: renamed to set_switch_distance from switch_distance
359+
//Alundaio: extend alife simulator exports
360+
.def("teleport_object", &teleport_object),
361+
//Alundaio: END
362+
363+
def("alife", &alife)
364+
];
363365
class CALifeSimulatorExporter1
364366
{
365367
};

0 commit comments

Comments
 (0)