-- This is the environment used when loading our custom skin classes

local perspective = require("perspective")
local overlay = require("overlay")
local color = require("util.color")
local memory = require("memory")
local melee = require("melee")
local gui = require("gui")

local env = {
	love = love,

	-- QOL Stuff
	graphics = love.graphics,
	timer = love.timer,
	audio = love.audio,
	filesystem = love.filesystem,
	window = love.window,

	-- Incase someone forgets to define these
	SKIN = {},

	color = color,

	memory = memory,
	melee = melee,

	perspective = perspective,

	SETTINGS = PANEL_SETTINGS,

	BUTTONS = {
		Z = 0x0010,
		R = 0x0020,
		L = 0x0040,
		A = 0x0100,
		B = 0x0200,
		X = 0x0400,
		Y = 0x0800,
		D_LEFT = 0x0001,
		D_RIGHT = 0x0002,
		D_DOWN = 0x0004,
		D_UP = 0x0008,
		START = 0x1000,
		UP = 0x10000,
		DOWN = 0x20000,
		LEFT = 0x40000,
		RIGHT = 0x80000,
		C_UP = 0x100000,
		C_DOWN = 0x200000,
		C_LEFT = 0x400000,
		C_RIGHT = 0x800000,
	},

	DPAD = {
		DPAD_LEFT = 0x0001,
		DPAD_RIGHT = 0x0002,
		DPAD_DOWN = 0x0004,
		DPAD_UP = 0x0008,
	},

	overlay = overlay,
}

return env