diff options
Diffstat (limited to 'examples/greet/Divina.lua')
| -rw-r--r-- | examples/greet/Divina.lua | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/examples/greet/Divina.lua b/examples/greet/Divina.lua new file mode 100644 index 0000000..30649ea --- /dev/null +++ b/examples/greet/Divina.lua @@ -0,0 +1,33 @@ +-- This variable is `local`, meaning Divina cannot see it. +-- +--- @type string +local name = "greet-" .. tostring(os.time()) + +-- This variable is **not** `local`, Divina can see it. +-- +--- @class Package +--- @field public name string +--- @field public version string +--- @field public description string +--- @field public compile_options string[] +--- @field public minimum_divina_version string +--- @field public sources string[] +Package = { + name = name, + version = "0.1.0", + description = "Greet me!", + compile_options = {}, + -- The `Divina` table is a special table that you can access anywhere from + -- the `Divina.lua` script. It contains all sorts of important information. + -- + -- Here we are setting our `minimum_divina_version` to `Divina.version`. + minimum_divina_version = Divina.version, + sources = { + "Main.asm", + }, + type = Divina.Type.Bin, + arch = Divina.Arch.x64, +} + +-- http://lua-users.org/wiki/ModulesTutorial +return Package |