예제 #1
0
        private static LuaTable CreateConfigurationTableWithOnlyTags(NLua.Lua luaInterpreter)
        {
            LuaTable table = NLuaUtilities.MakeLuaTable(luaInterpreter, "the_table");
            LuaTable tags  = NLuaUtilities.MakeLuaTable(luaInterpreter, "tag_table");

            tags[0]       = "EAW";
            tags[1]       = "FOC";
            table["tags"] = tags;
            return(table);
        }
예제 #2
0
        private static LuaTable CreateConfigurationTable(NLua.Lua luaInterpreter, string luaVisibility)
        {
            LuaTable table = NLuaUtilities.MakeLuaTable(luaInterpreter, "the_table");
            WorkshopItemVisibility visibility =
                (WorkshopItemVisibility)luaInterpreter.GetObjectFromPath("visibility." + luaVisibility);

            table["app_id"]           = AppIdAsLong;
            table["item_id"]          = ItemIdAsLong;
            table["title"]            = Title;
            table["description_file"] = DescriptionFilePath;
            table["item_folder"]      = FolderPath;
            table["visibility"]       = visibility;
            table["language"]         = Language;
            return(table);
        }