diff options
author | Fernando Carmona Varo <ferkiwi@gmail.com> | 2015-10-24 22:31:23 +0200 |
---|---|---|
committer | Fernando Carmona Varo <ferkiwi@gmail.com> | 2015-10-24 22:55:59 +0200 |
commit | ebde4407511a7255e1e5b6d897f81188c4fe2eb3 (patch) | |
tree | 6427830f7ec41d86827a4b6aa07ec4a14f1e0f01 /myhighscore/api.lua | |
parent | 65f7603ae3aac553716c8d4e9141914251b430d5 (diff) |
Some refactoring and organization, added api.lua
Diffstat (limited to 'myhighscore/api.lua')
-rwxr-xr-x | myhighscore/api.lua | 9 |
1 files changed, 9 insertions, 0 deletions
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 |