Skip to content
Snippets Groups Projects
Commit f9664ea6 authored by dg's avatar dg
Browse files

save

git-svn-id: http://svn.net-core.org/repos/t-engine4@237 51575b47-30f0-44d4-a5cc-537603b46e54
parent a581ee6a
No related branches found
No related tags found
No related merge requests found
......@@ -141,6 +141,10 @@ function _M:setResolution(res)
end
end
--- Called
--- Called when screen resolution changes
function _M:onResolutionChange()
end
--- Requests the game to save
function _M:saveGame()
end
......@@ -416,10 +416,7 @@ function _M:setupCommands()
end,
SAVE_GAME = function()
local save = Savefile.new(self.save_name)
save:saveGame(self)
save:close()
self.log("Saved game.")
self:saveGame()
end,
-- Toggle tactical displau
......@@ -553,3 +550,11 @@ function _M:onQuit()
self:registerDialog(self.quit_dialog)
end
end
--- Requests the game to save
function _M:saveGame()
local save = Savefile.new(self.save_name)
save:saveGame(self)
save:close()
self.log("Saved game.")
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment