From ebde4407511a7255e1e5b6d897f81188c4fe2eb3 Mon Sep 17 00:00:00 2001 From: Fernando Carmona Varo Date: Sat, 24 Oct 2015 22:31:23 +0200 Subject: Some refactoring and organization, added api.lua --- myhighscore/api.lua | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 myhighscore/api.lua (limited to 'myhighscore/api.lua') diff --git a/myhighscore/api.lua b/myhighscore/api.lua new file mode 100755 index 0000000..bbad4d7 --- /dev/null +++ b/myhighscore/api.lua @@ -0,0 +1,9 @@ + +myhighscore.registered_games = {} + + +-- You can register a new arcade game using this function +myhighscore.register_game(name, definition) + definition.description = definition.description or name + myhighscore.registered_games[name] = definition +end -- cgit v1.2.3