Skip to content

Commit fd312b5

Browse files
committed
mod: template
1 parent ed28c42 commit fd312b5

2 files changed

Lines changed: 18 additions & 0 deletions

File tree

Injection.lua

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
--[[
2+
Do not change any thing in the current file,
3+
it's just there to show what objects are injected by vfox and what they do.
4+
5+
It's just handy when developing plugins, IDE can use this object for code hints!
6+
--]]
7+
RUNTIME = {
8+
--- Operating system type at runtime (Windows, Linux, Darwin)
9+
osType = "",
10+
--- Operating system architecture at runtime (amd64, arm64, etc.)
11+
archType = "",
12+
--- vfox runtime version
13+
version = "",
14+
}
15+

hooks/available.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1+
local util = require("util")
2+
13
--- Return all available versions provided by this plugin
24
--- @param ctx table Empty table used as context, for future extension
35
--- @return table Descriptions of available versions and accompanying tool descriptions
46
function PLUGIN:Available(ctx)
7+
util:DoSomeThing()
58
local runtimeVersion = ctx.runtimeVersion
69
return {
710
{

0 commit comments

Comments
 (0)