|
|
@@ -1340,13 +1340,6 @@ static int world_units(lua_State* L)
|
|
|
return 1;
|
|
|
}
|
|
|
|
|
|
-static int world_camera(lua_State* L)
|
|
|
-{
|
|
|
- LuaStack stack(L);
|
|
|
- stack.push_camera(stack.get_world(1)->camera(stack.get_unit(2)));
|
|
|
- return 1;
|
|
|
-}
|
|
|
-
|
|
|
static int camera_create(lua_State* L)
|
|
|
{
|
|
|
LuaStack stack(L);
|
|
|
@@ -1365,6 +1358,13 @@ static int camera_create(lua_State* L)
|
|
|
return 1;
|
|
|
}
|
|
|
|
|
|
+static int world_camera_instances(lua_State* L)
|
|
|
+{
|
|
|
+ LuaStack stack(L);
|
|
|
+ stack.push_camera(stack.get_world(1)->camera(stack.get_unit(2)));
|
|
|
+ return 1;
|
|
|
+}
|
|
|
+
|
|
|
static int camera_set_projection_type(lua_State* L)
|
|
|
{
|
|
|
LuaStack stack(L);
|
|
|
@@ -3233,8 +3233,8 @@ void load_api(LuaEnvironment& env)
|
|
|
env.add_module_function("World", "destroy_unit", world_destroy_unit);
|
|
|
env.add_module_function("World", "num_units", world_num_units);
|
|
|
env.add_module_function("World", "units", world_units);
|
|
|
- env.add_module_function("World", "camera", world_camera);
|
|
|
env.add_module_function("World", "camera_create", camera_create);
|
|
|
+ env.add_module_function("World", "camera_instances", world_camera_instances);
|
|
|
env.add_module_function("World", "camera_set_projection_type", camera_set_projection_type);
|
|
|
env.add_module_function("World", "camera_projection_type", camera_projection_type);
|
|
|
env.add_module_function("World", "camera_fov", camera_fov);
|