Added Remove Tour Support

Added very simple functionality to delete the tour object on import.
This commit is contained in:
Entrox-Licher 2023-08-08 12:59:52 -04:00
parent 92c8d9c6d1
commit e4dbbc29fe
2 changed files with 13 additions and 0 deletions

View File

@ -51,6 +51,7 @@ local playAreaAPI = require("core/PlayAreaApi")
local deckImporterApi = require("arkhamdb/DeckImporterApi")
local optionPanelApi = require("core/OptionPanelApi")
local blessCurseApi = require("chaosbag/BlessCurseManagerApi")
local tourApi = require("core/tour/TourApi")
local campaignBoxGUID
@ -169,6 +170,7 @@ function createCampaignFromToken(importData)
function() optionPanelApi.loadSettings(importData["options"]) end,
0.5
)
tourApi.deleteTour()
broadcastToAll("Campaign successfully imported!", Color.Green)
end

View File

@ -0,0 +1,11 @@
do
local TourApi = {}
local TOUR_GUID = "0e5aa8"
TourApi.deleteTour = function()
getObjectFromGUID(TOUR_GUID).call("deleteStarter", nil, nil, nil)
end
return TourApi
end