local LD = require("design.LevelDesignLibrary")
local uiCalls = require("ui.uicalls")
local LM = require("level.loadmonitor")
local thisLevel, Nid500Monitor
function OnScriptLoaded(level)
end
function OnStart(level)
  Nid500Monitor = LM.CreateLoadMonitor()
  Nid500Monitor:AddCallback({
    Wads = {
      "Nid000_LevelGlobal"
    },
    Functions = {
      GetEncounterInfo
    }
  })
end
function GetEncounterInfo()
  local Nid000Level = game.FindLevel("Nid000_LevelGlobal")
  if Nid000Level ~= nil then
    Nid000Level:CallScript("PopulateEncounters")
  end
end
function ResetEnounters()
  GameObjects.Nid100_EncounterManager.LuaObjectScript.EncounterReset()
  GameObjects.Nid300_EncounterManager.LuaObjectScript.EncounterReset()
  GameObjects.Nid310_EncounterManager.LuaObjectScript.EncounterReset()
  GameObjects.Nid320_EncounterManager.LuaObjectScript.EncounterReset()
  GameObjects.Nid330_EncounterManager.LuaObjectScript.EncounterReset()
  GameObjects.Nid340_EncounterManager.LuaObjectScript.EncounterReset()
end
