Reorganized src folder.
This commit is contained in:
70
src/gstates/gstate.lua
Normal file
70
src/gstates/gstate.lua
Normal 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
|
||||
Reference in New Issue
Block a user