Exemplo n.º 1
0
 public static void Res_CreateEntityFunc(ScriptEngine lua, string func_name, int entity_id)
 {
     if(((LuaTable)lua["entity_funcs"])[entity_id] == null)
         lua.DoString("entity_funcs[" + entity_id + "] = {}");
     ((LuaFunction) lua[func_name + "_init"]).Call(entity_id);
 }