Reorganized src folder.

This commit is contained in:
2025-09-28 15:10:07 -04:00
parent c2c8d931c3
commit 023430315a
6 changed files with 7 additions and 7 deletions

70
src/gstates/gstate.lua Normal file
View File

@@ -0,0 +1,70 @@
------------------------------------------------------------------------------
-- Imports
------------------------------------------------------------------------------
local make_class = require 'src.utils.classes'
------------------------------------------------------------------------------
-- Class definitions
------------------------------------------------------------------------------
local GameState = make_class()
------------------------------------------------------------------------------
-- Class methods
------------------------------------------------------------------------------
function GameState:_init(name, index)
self.name = name
self.index = index
self.valid = false
end
function GameState:load()
end
function GameState:update(_)
return self.index
end
function GameState:draw()
end
function GameState:unload()
end
function GameState:keypressed(_, _ , _)
end
function GameState:textinput(_)
end
function GameState:keyreleased(_, _)
end
function GameState:mousemoved(_, _, _, _)
end
function GameState:mousepressed(_, _, _)
end
function GameState:mousereleased(_, _, _)
end
------------------------------------------------------------------------------
-- Module return
------------------------------------------------------------------------------
return GameState