Fixed reference of SpearheadAPI
This commit is contained in:
@@ -1,7 +1,14 @@
|
|||||||
---@type Array<OnMissionCompleteListener>
|
---@type Array<OnMissionCompleteListener>
|
||||||
local MissionCompleteListeners = {}
|
local MissionCompleteListeners = {}
|
||||||
|
|
||||||
---@type SpearheadAPI
|
---@class FullSpearheadAPI : SpearheadAPI
|
||||||
|
---@field Internal SpearheadAPIInternal
|
||||||
|
|
||||||
|
---@class SpearheadAPIInternal
|
||||||
|
---@field notifyMissionComplete fun(zone_name: string)
|
||||||
|
|
||||||
|
|
||||||
|
---@type FullSpearheadAPI
|
||||||
SpearheadAPI = {
|
SpearheadAPI = {
|
||||||
Stages = {
|
Stages = {
|
||||||
changeStage = function(stageNumber)
|
changeStage = function(stageNumber)
|
||||||
|
|||||||
@@ -114,8 +114,8 @@ function Mission:NotifyMissionComplete()
|
|||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
|
||||||
pcall(function()
|
local succ, err = pcall(function()
|
||||||
Spearhead.API.Internal.notifyMissionComplete(self.zoneName)
|
SpearheadAPI.Internal.notifyMissionComplete(self.zoneName)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user