screen init, update, optional decision condition
This commit is contained in:
@@ -7,6 +7,12 @@ function Screen.register(screen_data)
|
||||
if not screen_data.situations then
|
||||
screen_data.situations = {}
|
||||
end
|
||||
if not screen_data.init then
|
||||
screen_data.init = function() end
|
||||
end
|
||||
if not screen_data.update then
|
||||
screen_data.update = function() end
|
||||
end
|
||||
_screens[screen_data.id] = screen_data
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user