Created
April 1, 2016 05:39
-
-
Save abigpotostew/2c45e20dfe49a395f42625f0fee92c56 to your computer and use it in GitHub Desktop.
Opal API for zbstudio
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local api = { | |
oEvent = { | |
type = "class", | |
description="is this thing on?", | |
childs = { | |
DispatchEvent = { | |
description = "Notify all listeners for event_name, calling respective events.", | |
args = "(Corona Display Object, Event Name, Event Table)", | |
returns = "(nil)", | |
}, | |
} | |
}, | |
Opal = { | |
type = "lib", | |
description = "Stew's opal engine hook", | |
childs = { | |
util = { type = "lib", description="DUUUDE", }, | |
math = { type = "lib", description="DUUUDE2", }, | |
log = { type = "lib", description="not working :(", | |
childs={ | |
Debug = {type="function",description="please work",args="(message: string)",returns = "(file|nil [, string])",valuetype = "f",} | |
}, | |
}, | |
}, | |
}, | |
f = { | |
type = "class", | |
description = "Pseudoclass for operations on file handles.", | |
childs = { | |
close = { | |
type = "method", | |
description = "Closes file.", | |
args = "(file: file)", | |
returns = "(boolean|nil [, string, number])", | |
}, | |
}, | |
}, | |
} | |
return { | |
name = "Opal Game Framework", | |
description = "Framework built for Corona SDK to ease game making.", | |
author = "Stewart Bracken", | |
version = 0.1, | |
--api = {"corona"}, | |
onRegister = function(self) | |
-- add API with name "sample" and group "lua" | |
ide:AddAPI("opal", "OpalAPI", api) | |
end, | |
onUnRegister = function(self) | |
-- remove API with name "sample" from group "lua" | |
ide:RemoveAPI("opal", "OpalAPI") | |
end, | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment