Compare commits

..

2 Commits

Author SHA1 Message Date
Jay 1d42fdff0c apii dump 2020-05-24 00:49:25 +01:00
Jay 84a4da4bb8 0.21.0 api dump 2020-05-24 00:47:36 +01:00
1 changed files with 222 additions and 114 deletions

336
api.json
View File

@ -1,8 +1,8 @@
{ {
"os": "OSX", "os": "OSX",
"arch": "x64", "arch": "x64",
"version": "0.20.13", "version": "0.21.0",
"generatedAt": "10/05/2020 22:07:37", "generatedAt": "24/05/2020 00:46:08",
"sandbox": { "sandbox": {
"coroutine": { "coroutine": {
"status": "function", "status": "function",
@ -20,10 +20,10 @@
"xpcall": "function", "xpcall": "function",
"_DEVICE_PAD_BOTTOM": 0, "_DEVICE_PAD_BOTTOM": 0,
"ipairs": "function", "ipairs": "function",
"_TEV_BUILD": "02013", "_TEV_BUILD": "0210",
"colour": "cdata", "colour": "cdata",
"print": "function", "print": "function",
"_TEV_VERSION_MINOR": 20, "_TEV_VERSION_MINOR": 21,
"pcall": "function", "pcall": "function",
"gcinfo": "function", "gcinfo": "function",
"loadstring": "function", "loadstring": "function",
@ -45,11 +45,13 @@
"insert": "function" "insert": "function"
}, },
"error": "function", "error": "function",
"_TEV_VERSION": "0.20.13", "_TEV_VERSION": "0.21.0",
"quaternion": "cdata",
"_DEVICE": "Mac", "_DEVICE": "Mac",
"require": "function", "require": "function",
"unpack": "function",
"_VERSION": "Lua 5.1", "_VERSION": "Lua 5.1",
"_TEV_VERSION_PATCH": 13, "_TEV_VERSION_PATCH": 0,
"next": "function", "next": "function",
"math": { "math": {
"ceil": "function", "ceil": "function",
@ -83,7 +85,6 @@
"randomseed": "function", "randomseed": "function",
"rad": "function" "rad": "function"
}, },
"unpack": "function",
"os": { "os": {
"difftime": "function", "difftime": "function",
"date": "function", "date": "function",
@ -91,6 +92,7 @@
"clock": "function", "clock": "function",
"parseISO8601": "function" "parseISO8601": "function"
}, },
"vector3": "cdata",
"vector2": "cdata", "vector2": "cdata",
"select": "function", "select": "function",
"string": { "string": {
@ -419,6 +421,18 @@
"boolean" "boolean"
], ],
"description": "Returns true if the provided key is down" "description": "Returns true if the provided key is down"
},
"isMouseButtonDown": {
"parameters": [
{
"type": "number",
"name": "code"
}
],
"returns": [
"boolean"
],
"description": "Returns true if the provided button is down, where code is 1, 2 or 3"
} }
}, },
"className": "input", "className": "input",
@ -648,6 +662,39 @@
} }
} }
}, },
"sceneObject": {
"methods": [],
"className": "sceneObject",
"events": [],
"constructable": false,
"extends": "objectBase",
"properties": {
"absolutePosition": {
"hasGetter": true,
"type": "vector3",
"description": "",
"hasSetter": false
},
"rotation": {
"hasGetter": true,
"type": "quaternion",
"description": "",
"hasSetter": true
},
"position": {
"hasGetter": true,
"type": "vector3",
"description": "",
"hasSetter": true
},
"absoluteRotation": {
"hasGetter": true,
"type": "quaternion",
"description": "",
"hasSetter": false
}
}
},
"guiBase": { "guiBase": {
"methods": { "methods": {
"child": { "child": {
@ -666,11 +713,6 @@
"parameters": [], "parameters": [],
"returns": [], "returns": [],
"description": "Destroys all children" "description": "Destroys all children"
},
"destroy": {
"parameters": [],
"returns": [],
"description": "Destroys this object, further accessing this instance will error"
} }
}, },
"className": "guiBase", "className": "guiBase",
@ -1043,7 +1085,13 @@
} }
}, },
"objectBase": { "objectBase": {
"methods": [], "methods": {
"destroy": {
"parameters": [],
"returns": [],
"description": "Destroys this object, further accessing this instance will error"
}
},
"className": "objectBase", "className": "objectBase",
"events": [], "events": [],
"constructable": false, "constructable": false,
@ -1154,6 +1202,51 @@
"constructable": false, "constructable": false,
"properties": [] "properties": []
}, },
"guiRichTextBox": {
"methods": {
"removeColour": {
"parameters": [
{
"type": "int",
"name": "index"
}
],
"returns": [],
"description": "Removes any set colour at the index provided"
},
"setColour": {
"parameters": [
{
"type": "int",
"name": "index"
},
{
"type": "colour",
"name": "colour"
}
],
"returns": [],
"description": "Sets the colour of text onwards from the provided index"
},
"clearColours": {
"parameters": [],
"returns": [],
"description": "Removes any set colours at all indexes"
}
},
"className": "guiRichTextBox",
"events": [],
"constructable": true,
"extends": "guiTextBox",
"properties": {
"colours": {
"hasGetter": true,
"type": "table",
"description": "Returns a table of {index, colour} (e.g: {{1, colour(1,0,0)}, {3, colour(0,1,0)}})",
"hasSetter": false
}
}
},
"guiLine": { "guiLine": {
"methods": [], "methods": [],
"className": "guiLine", "className": "guiLine",
@ -1199,6 +1292,66 @@
} }
} }
}, },
"tween": {
"methods": {
"begin": {
"parameters": [
{
"type": "variant",
"name": "object"
},
{
"type": "number",
"name": "duration"
},
{
"type": "table",
"name": "properties"
},
{
"type": "string",
"name": "easing"
},
{
"type": "function?",
"name": "tweenCallback"
}
],
"returns": [],
"description": "Creates and starts a tween"
},
"create": {
"parameters": [
{
"type": "variant",
"name": "object"
},
{
"type": "number",
"name": "duration"
},
{
"type": "table",
"name": "properties"
},
{
"type": "string",
"name": "easing"
},
{
"type": "function?",
"name": "tweenCallback"
}
],
"returns": [],
"description": "Creates a tween"
}
},
"className": "tween",
"events": [],
"constructable": false,
"properties": []
},
"guiFrame": { "guiFrame": {
"methods": [], "methods": [],
"className": "guiFrame", "className": "guiFrame",
@ -1325,47 +1478,39 @@
} }
} }
}, },
"guiRichTextBox": { "scene": {
"methods": { "methods": {
"removeColour": { "child": {
"parameters": [ "parameters": [
{ {
"type": "int", "type": "string",
"name": "index" "name": "name"
} }
], ],
"returns": [], "returns": [
"description": "Removes any set colour at the index provided" "sceneObject"
},
"setColour": {
"parameters": [
{
"type": "int",
"name": "index"
},
{
"type": "colour",
"name": "colour"
}
], ],
"returns": [], "description": "Returns nil if not found"
"description": "Sets the colour of text onwards from the provided index"
}, },
"clearColours": { "destroyChildren": {
"parameters": [], "parameters": [],
"returns": [], "returns": [],
"description": "Removes any set colours at all indexes" "description": "Destroys all children"
} }
}, },
"className": "guiRichTextBox", "className": "scene",
"events": [], "events": [],
"constructable": true, "constructable": false,
"extends": "guiTextBox",
"properties": { "properties": {
"colours": { "camera": {
"hasGetter": true,
"type": "Undocumented",
"hasSetter": false
},
"children": {
"hasGetter": true, "hasGetter": true,
"type": "table", "type": "table",
"description": "Returns a table of {index, colour} (e.g: {{1, colour(1,0,0)}, {3, colour(0,1,0)}})", "description": "",
"hasSetter": false "hasSetter": false
} }
} }
@ -1645,42 +1790,52 @@
} }
} }
}, },
"scene": { "light": {
"methods": [], "methods": [],
"className": "scene", "className": "light",
"events": [], "events": [],
"constructable": false, "constructable": false,
"extends": "sceneObject",
"properties": { "properties": {
"size": { "colour": {
"hasGetter": true, "hasGetter": true,
"type": "Undocumented", "type": "colour",
"description": "",
"hasSetter": true "hasSetter": true
} }
} }
}, },
"block": { "block": {
"methods": { "methods": [],
"setShader": {
"parameters": [
{
"type": "string",
"name": "mesh"
}
],
"returns": [],
"description": "Sets mesh"
}
},
"className": "block", "className": "block",
"events": [], "events": [],
"constructable": true, "constructable": true,
"extends": "sceneObject",
"properties": { "properties": {
"position": { "roughness": {
"hasGetter": true,
"type": "number",
"description": "",
"hasSetter": true
},
"scale": {
"hasGetter": true, "hasGetter": true,
"type": "vector3", "type": "vector3",
"description": "", "description": "",
"hasSetter": true "hasSetter": true
}, },
"colour": {
"hasGetter": true,
"type": "colour",
"description": "",
"hasSetter": true
},
"metalness": {
"hasGetter": true,
"type": "number",
"description": "",
"hasSetter": true
},
"mesh": { "mesh": {
"hasGetter": true, "hasGetter": true,
"type": "string", "type": "string",
@ -1743,68 +1898,21 @@
"constructable": false, "constructable": false,
"properties": [] "properties": []
}, },
"tween": { "directionalLight": {
"methods": { "methods": [],
"begin": { "className": "directionalLight",
"parameters": [
{
"type": "variant",
"name": "object"
},
{
"type": "number",
"name": "duration"
},
{
"type": "table",
"name": "properties"
},
{
"type": "string",
"name": "easing"
},
{
"type": "function?",
"name": "tweenCallback"
}
],
"returns": [],
"description": "Creates and starts a tween"
},
"create": {
"parameters": [
{
"type": "variant",
"name": "object"
},
{
"type": "number",
"name": "duration"
},
{
"type": "table",
"name": "properties"
},
{
"type": "string",
"name": "easing"
},
{
"type": "function?",
"name": "tweenCallback"
}
],
"returns": [],
"description": "Creates a tween"
}
},
"className": "tween",
"events": [], "events": [],
"constructable": false, "constructable": true,
"extends": "light",
"properties": [] "properties": []
}, },
"dev": { "dev": {
"methods": { "methods": {
"reloadAllShaders": {
"parameters": [],
"returns": [],
"description": "Reloads all shaders."
},
"promptTevGit": { "promptTevGit": {
"parameters": [], "parameters": [],
"returns": [], "returns": [],
@ -1902,5 +2010,5 @@
"properties": [] "properties": []
} }
}, },
"build": "02013" "build": "0210"
} }