39 lines
1.0 KiB
Lua
39 lines
1.0 KiB
Lua
------------------------------------------------------------------------------
|
|
-- Imports
|
|
------------------------------------------------------------------------------
|
|
|
|
local make_class = require 'src.utils.classes'
|
|
|
|
|
|
------------------------------------------------------------------------------
|
|
-- Class definitions
|
|
------------------------------------------------------------------------------
|
|
|
|
local Asset = make_class()
|
|
|
|
|
|
------------------------------------------------------------------------------
|
|
-- Class methods
|
|
------------------------------------------------------------------------------
|
|
|
|
function Asset:_init(file_name)
|
|
self.file_name = string.format('assets/%s', file_name)
|
|
end
|
|
|
|
|
|
function Asset:load()
|
|
error 'Attempted to load unimplemented asset.'
|
|
end
|
|
|
|
|
|
function Asset:unload()
|
|
error 'Attempted to unload unimplemented asset.'
|
|
end
|
|
|
|
|
|
------------------------------------------------------------------------------
|
|
-- Module return
|
|
------------------------------------------------------------------------------
|
|
|
|
return Asset
|