|
|
@@ -97,6 +97,22 @@ static int world_units(lua_State* L)
|
|
|
return 1;
|
|
|
}
|
|
|
|
|
|
+//-----------------------------------------------------------------------------
|
|
|
+static int world_update_animations(lua_State* L)
|
|
|
+{
|
|
|
+ LuaStack stack(L);
|
|
|
+ stack.get_world(1)->update_animations(stack.get_float(2));
|
|
|
+ return 0;
|
|
|
+}
|
|
|
+
|
|
|
+//-----------------------------------------------------------------------------
|
|
|
+static int world_update(lua_State* L)
|
|
|
+{
|
|
|
+ LuaStack stack(L);
|
|
|
+ stack.get_world(1)->update(stack.get_float(2));
|
|
|
+ return 0;
|
|
|
+}
|
|
|
+
|
|
|
//-----------------------------------------------------------------------------
|
|
|
static int world_play_sound(lua_State* L)
|
|
|
{
|
|
|
@@ -290,6 +306,9 @@ void load_world(LuaEnvironment& env)
|
|
|
env.load_module_function("World", "num_units", world_num_units);
|
|
|
env.load_module_function("World", "units", world_units);
|
|
|
|
|
|
+ env.load_module_function("World", "update_animations", world_update_animations);
|
|
|
+ env.load_module_function("World", "update", world_update);
|
|
|
+
|
|
|
env.load_module_function("World", "play_sound", world_play_sound);
|
|
|
env.load_module_function("World", "stop_sound", world_stop_sound);
|
|
|
env.load_module_function("World", "link_sound", world_link_sound);
|