#include "scripts/debug.lua"
#include "scripts/slime.lua"
#include "scripts/gun.lua"
#include "scripts/projectiles.lua"
#include "scripts/registry.lua"
#include "scripts/timers.lua"
#include "scripts/sound.lua"
#include "scripts/tool.lua"
#include "scripts/umf.lua"
#include "scripts/ui.lua"
#include "scripts/utility.lua"

------------------------------------------------
--- Gas Can
--- By: Cheejins
------------------------------------------------

CONFIG = {
    soundEnabled = true,
    slowMotion = false,
}

function init()

    UI_GAME = false
    checkRegInitialized()

    initDebug()
    initSounds()

    tool.tool.init()
    initTimers()

end


function tick()

    runTimers()
    manageProjectiles()

    tool.run()
    Slime.run()

    debugMod()

end


function draw()

    if not regGetBool('tool.slime.renderSlimeParticles') then
        Slime.slimes.effects.renderSlimesIdleSimple()
    end

    if tool.tool.active() then
        uiDrawToolNameOptionsHint()
    end

    uiManageGameOptions()

end


UpdateQuickloadPatch()
