APIDump: Documented cPlugin
This commit is contained in:
parent
a1898521b0
commit
fdc67142fd
@ -1347,14 +1347,18 @@ a_Player:OpenWindow(Window);
|
|||||||
|
|
||||||
cPlugin =
|
cPlugin =
|
||||||
{
|
{
|
||||||
Desc = [[cPlugin describes a Lua plugin. This page is dedicated to new-style plugins and contain their functions.
|
Desc = [[cPlugin describes a Lua plugin. This page is dedicated to new-style plugins and contain their functions. Each plugin has its own Plugin object.
|
||||||
]],
|
]],
|
||||||
Functions =
|
Functions =
|
||||||
{
|
{
|
||||||
GetName = { Return = "string" },
|
Call = { Params = "Function name, [All the parameters divided with commas]", Notes = "This function allows you to call a function from another plugin. It can only use pass: integers, booleans, strings and usertypes (cPlayer, cEntity, cCuboid, etc.)." },
|
||||||
SetName = { Return = "" },
|
GetDirectory = { Return = "string", Notes = "Returns the name of the folder where the plugin's files are. (APIDump)" },
|
||||||
GetVersion = { Notes = "int" },
|
GetLocalDirectory = { Notes = "OBSOLETE use GetLocalFolder instead." },
|
||||||
SetVersion = { Return = "" },
|
GetLocalFolder = { Return = "string", Notes = "Returns the path where the plugin's files are. (Plugins/APIDump)" },
|
||||||
|
GetName = { Return = "string", Notes = "Returns the name of the plugin." },
|
||||||
|
SetName = { Params = "string", Notes = "Sets the name of the Plugin." },
|
||||||
|
GetVersion = { Return = "number", Notes = "Returns the version of the plugin." },
|
||||||
|
SetVersion = { Params = "number", Notes = "Sets the version of the plugin." },
|
||||||
GetFileName = { Return = "string" },
|
GetFileName = { Return = "string" },
|
||||||
CreateWebPlugin = { Notes = "{{cWebPlugin|cWebPlugin}}" },
|
CreateWebPlugin = { Notes = "{{cWebPlugin|cWebPlugin}}" },
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user