mirror of
https://github.com/teverse/teverse
synced 2025-08-25 23:54:46 +02:00
Compare commits
2 Commits
82a1cc0c3b
...
7acaed288c
Author | SHA1 | Date | |
---|---|---|---|
![]() |
7acaed288c | ||
![]() |
3961034c00 |
98
apiDump.json
98
apiDump.json
@ -49,7 +49,7 @@
|
|||||||
"table"
|
"table"
|
||||||
],
|
],
|
||||||
"parameters": {
|
"parameters": {
|
||||||
"string": "json"
|
"json": "string"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"encodeWithTypes": {
|
"encodeWithTypes": {
|
||||||
@ -93,8 +93,8 @@
|
|||||||
"toServer": {
|
"toServer": {
|
||||||
"desc": "Sends a message to the connected server",
|
"desc": "Sends a message to the connected server",
|
||||||
"parameters": {
|
"parameters": {
|
||||||
"...": "...",
|
"eventName": "string",
|
||||||
"string": "eventName"
|
"...": "..."
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"bind": {
|
"bind": {
|
||||||
@ -103,23 +103,23 @@
|
|||||||
"table"
|
"table"
|
||||||
],
|
],
|
||||||
"parameters": {
|
"parameters": {
|
||||||
"function": "callback",
|
"callback": "function",
|
||||||
"string": "eventName"
|
"eventName": "string"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"toAllClients": {
|
"toAllClients": {
|
||||||
"desc": "Broadcasts a message to all connected clients (server only)",
|
"desc": "Broadcasts a message to all connected clients (server only)",
|
||||||
"parameters": {
|
"parameters": {
|
||||||
"...": "...",
|
"eventName": "string",
|
||||||
"string": "eventName"
|
"...": "..."
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"toClient": {
|
"toClient": {
|
||||||
"desc": "Broadcasts a message to the connected client (server only)",
|
"desc": "Broadcasts a message to the connected client (server only)",
|
||||||
"parameters": {
|
"parameters": {
|
||||||
"...": "...",
|
"eventName": "string",
|
||||||
"client": "client",
|
"client": "client",
|
||||||
"string": "eventName"
|
"...": "..."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -202,7 +202,7 @@
|
|||||||
"client"
|
"client"
|
||||||
],
|
],
|
||||||
"parameters": {
|
"parameters": {
|
||||||
"string": "id"
|
"id": "string"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -256,8 +256,8 @@
|
|||||||
"table"
|
"table"
|
||||||
],
|
],
|
||||||
"parameters": {
|
"parameters": {
|
||||||
"number": "y",
|
"y": "number",
|
||||||
"table": "exclusion"
|
"exclusion": "table"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"rayTestAllHits": {
|
"rayTestAllHits": {
|
||||||
@ -266,8 +266,8 @@
|
|||||||
"table"
|
"table"
|
||||||
],
|
],
|
||||||
"parameters": {
|
"parameters": {
|
||||||
"vector3": "end",
|
"end": "vector3",
|
||||||
"table": "exclusion"
|
"exclusion": "table"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"pause": {
|
"pause": {
|
||||||
@ -279,7 +279,7 @@
|
|||||||
"table"
|
"table"
|
||||||
],
|
],
|
||||||
"parameters": {
|
"parameters": {
|
||||||
"vector3": "end"
|
"end": "vector3"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"rayTestScreen": {
|
"rayTestScreen": {
|
||||||
@ -288,7 +288,7 @@
|
|||||||
"table"
|
"table"
|
||||||
],
|
],
|
||||||
"parameters": {
|
"parameters": {
|
||||||
"number": "y"
|
"y": "number"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -363,8 +363,8 @@
|
|||||||
"httpResult"
|
"httpResult"
|
||||||
],
|
],
|
||||||
"parameters": {
|
"parameters": {
|
||||||
"function": "callback",
|
"callback": "function",
|
||||||
"string": "body"
|
"body": "string"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"request": {
|
"request": {
|
||||||
@ -373,9 +373,9 @@
|
|||||||
"httpResult"
|
"httpResult"
|
||||||
],
|
],
|
||||||
"parameters": {
|
"parameters": {
|
||||||
"function": "callback",
|
"callback": "function",
|
||||||
"string": "body",
|
"body": "string",
|
||||||
"table": "headers"
|
"headers": "table"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"urlEncode": {
|
"urlEncode": {
|
||||||
@ -384,7 +384,7 @@
|
|||||||
"string"
|
"string"
|
||||||
],
|
],
|
||||||
"parameters": {
|
"parameters": {
|
||||||
"string": "url"
|
"url": "string"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"urlDecode": {
|
"urlDecode": {
|
||||||
@ -393,7 +393,7 @@
|
|||||||
"string"
|
"string"
|
||||||
],
|
],
|
||||||
"parameters": {
|
"parameters": {
|
||||||
"string": "url"
|
"url": "string"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"get": {
|
"get": {
|
||||||
@ -402,8 +402,8 @@
|
|||||||
"httpResult"
|
"httpResult"
|
||||||
],
|
],
|
||||||
"parameters": {
|
"parameters": {
|
||||||
"function": "callback",
|
"callback": "function",
|
||||||
"string": "url"
|
"url": "string"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -432,7 +432,7 @@
|
|||||||
"bool"
|
"bool"
|
||||||
],
|
],
|
||||||
"parameters": {
|
"parameters": {
|
||||||
"enums.key": "key"
|
"key": "enums.key"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"isMouseButtonDown": {
|
"isMouseButtonDown": {
|
||||||
@ -441,7 +441,7 @@
|
|||||||
"boo"
|
"boo"
|
||||||
],
|
],
|
||||||
"parameters": {
|
"parameters": {
|
||||||
"enums.mouseButton": "mb"
|
"mb": "enums.mouseButton"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -542,6 +542,7 @@
|
|||||||
"writable": false
|
"writable": false
|
||||||
},
|
},
|
||||||
"keyFocusedGui": {
|
"keyFocusedGui": {
|
||||||
|
"desc": "undefined",
|
||||||
"defaultType": "boolean",
|
"defaultType": "boolean",
|
||||||
"writable": false
|
"writable": false
|
||||||
}
|
}
|
||||||
@ -707,43 +708,43 @@
|
|||||||
"applyImpulseAtPosition": {
|
"applyImpulseAtPosition": {
|
||||||
"desc": "Applies an impulse force at a relative position to this object",
|
"desc": "Applies an impulse force at a relative position to this object",
|
||||||
"parameters": {
|
"parameters": {
|
||||||
"vector3": "position"
|
"position": "vector3"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"applyImpulse": {
|
"applyImpulse": {
|
||||||
"desc": "Applies an impulse force to this object",
|
"desc": "Applies an impulse force to this object",
|
||||||
"parameters": {
|
"parameters": {
|
||||||
"vector3": "impulse"
|
"impulse": "vector3"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"applyForce": {
|
"applyForce": {
|
||||||
"desc": "Applies a force to this object",
|
"desc": "Applies a force to this object",
|
||||||
"parameters": {
|
"parameters": {
|
||||||
"vector3": "force"
|
"force": "vector3"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"applyTorque": {
|
"applyTorque": {
|
||||||
"desc": "Applies a force to this object",
|
"desc": "Applies a force to this object",
|
||||||
"parameters": {
|
"parameters": {
|
||||||
"vector3": "torque"
|
"torque": "vector3"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"applyForceAtPosition": {
|
"applyForceAtPosition": {
|
||||||
"desc": "Applies a force at a relative position to this object",
|
"desc": "Applies a force at a relative position to this object",
|
||||||
"parameters": {
|
"parameters": {
|
||||||
"vector3": "force"
|
"force": "vector3"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"lookAt": {
|
"lookAt": {
|
||||||
"desc": "Changes the objects rotation so that it is looking towards the provided position.",
|
"desc": "Changes the objects rotation so that it is looking towards the provided position.",
|
||||||
"parameters": {
|
"parameters": {
|
||||||
"vector3": "position"
|
"position": "vector3"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"applyTorqueImpulse": {
|
"applyTorqueImpulse": {
|
||||||
"desc": "Applies a force to this object",
|
"desc": "Applies a force to this object",
|
||||||
"parameters": {
|
"parameters": {
|
||||||
"vector3": "torqueImpulse"
|
"torqueImpulse": "vector3"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -954,13 +955,13 @@
|
|||||||
"number"
|
"number"
|
||||||
],
|
],
|
||||||
"parameters": {
|
"parameters": {
|
||||||
"vector3": "position"
|
"position": "vector3"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"lookAt": {
|
"lookAt": {
|
||||||
"desc": "Changes the objects rotation so that it is looking towards the provided position.",
|
"desc": "Changes the objects rotation so that it is looking towards the provided position.",
|
||||||
"parameters": {
|
"parameters": {
|
||||||
"vector3": "position"
|
"position": "vector3"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -1621,8 +1622,8 @@
|
|||||||
"bindSizeBreakpoint": {
|
"bindSizeBreakpoint": {
|
||||||
"desc": "",
|
"desc": "",
|
||||||
"parameters": {
|
"parameters": {
|
||||||
"enums.sizeBreakpoint": "breakpoint",
|
"properties": "table",
|
||||||
"table": "properties"
|
"breakpoint": "enums.sizeBreakpoint"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -1943,7 +1944,7 @@
|
|||||||
"boolean"
|
"boolean"
|
||||||
],
|
],
|
||||||
"parameters": {
|
"parameters": {
|
||||||
"string": "className"
|
"className": "string"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"destroy": {
|
"destroy": {
|
||||||
@ -1967,7 +1968,7 @@
|
|||||||
"boolean"
|
"boolean"
|
||||||
],
|
],
|
||||||
"parameters": {
|
"parameters": {
|
||||||
"string": "name"
|
"name": "string"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"isDescendantOf": {
|
"isDescendantOf": {
|
||||||
@ -1976,7 +1977,7 @@
|
|||||||
"boolean"
|
"boolean"
|
||||||
],
|
],
|
||||||
"parameters": {
|
"parameters": {
|
||||||
"baseClass": "ancestor"
|
"ancestor": "baseClass"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"describe": {
|
"describe": {
|
||||||
@ -2068,7 +2069,7 @@
|
|||||||
"openUrl": {
|
"openUrl": {
|
||||||
"desc": "opens the default web browser",
|
"desc": "opens the default web browser",
|
||||||
"parameters": {
|
"parameters": {
|
||||||
"string": "url"
|
"url": "string"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"construct": {
|
"construct": {
|
||||||
@ -2077,9 +2078,9 @@
|
|||||||
"variant"
|
"variant"
|
||||||
],
|
],
|
||||||
"parameters": {
|
"parameters": {
|
||||||
"variant": "parent",
|
"className": "string",
|
||||||
"table": "properties",
|
"parent": "variant",
|
||||||
"string": "className"
|
"properties": "table"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"isAuthenticated": {
|
"isAuthenticated": {
|
||||||
@ -2088,7 +2089,10 @@
|
|||||||
},
|
},
|
||||||
"derivedFrom": "baseClass",
|
"derivedFrom": "baseClass",
|
||||||
"events": {
|
"events": {
|
||||||
"stepped": []
|
"stepped": {
|
||||||
|
"desc": "undefined",
|
||||||
|
"parameters": []
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"subclasses": [],
|
"subclasses": [],
|
||||||
"class": "engine",
|
"class": "engine",
|
||||||
@ -2236,7 +2240,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"_generatedAt": "19/01/2020 00:22:00",
|
"_generatedAt": "19/01/2020 11:05:52",
|
||||||
"enums": {
|
"enums": {
|
||||||
"serverLocation": {
|
"serverLocation": {
|
||||||
"london": 0
|
"london": 0
|
||||||
|
@ -46,7 +46,7 @@ addDocs("json", {
|
|||||||
className = property("undefined"),
|
className = property("undefined"),
|
||||||
},
|
},
|
||||||
methods = {
|
methods = {
|
||||||
decode = method("undefined", {['string'] = 'json'}, {'table'}),
|
decode = method("undefined", {['json'] = 'string'}, {'table'}),
|
||||||
encodeWithTypes = method("undefined", {['table'] = 'table'}, {'string'}),
|
encodeWithTypes = method("undefined", {['table'] = 'table'}, {'string'}),
|
||||||
encode = method("undefined", {['table'] = 'table'}, {'stripe'}),
|
encode = method("undefined", {['table'] = 'table'}, {'stripe'}),
|
||||||
},
|
},
|
||||||
@ -64,10 +64,10 @@ addDocs("networking", {
|
|||||||
serverId = property("the id of the connected server"),
|
serverId = property("the id of the connected server"),
|
||||||
},
|
},
|
||||||
methods = {
|
methods = {
|
||||||
toServer = method("Sends a message to the connected server", {['string'] = 'eventName', ['...'] = '...'}, nil),
|
toServer = method("Sends a message to the connected server", {['...'] = '...', ['eventName'] = 'string'}, nil),
|
||||||
bind = method("binds the provide callback to the eventname. Returns a table with a disconnect method.", {['string'] = 'eventName', ['function'] = 'callback'}, {'table'}),
|
bind = method("binds the provide callback to the eventname. Returns a table with a disconnect method.", {['callback'] = 'function', ['eventName'] = 'string'}, {'table'}),
|
||||||
toAllClients = method("Broadcasts a message to all connected clients (server only)", {['string'] = 'eventName', ['...'] = '...'}, nil),
|
toAllClients = method("Broadcasts a message to all connected clients (server only)", {['...'] = '...', ['eventName'] = 'string'}, nil),
|
||||||
toClient = method("Broadcasts a message to the connected client (server only)", {['client'] = 'client', ['string'] = 'eventName', ['...'] = '...'}, nil),
|
toClient = method("Broadcasts a message to the connected client (server only)", {['...'] = '...', ['client'] = 'client', ['eventName'] = 'string'}, nil),
|
||||||
},
|
},
|
||||||
events = {
|
events = {
|
||||||
connected = event("undefined", {}),
|
connected = event("undefined", {}),
|
||||||
@ -93,7 +93,7 @@ addDocs("clients", {
|
|||||||
className = property("undefined"),
|
className = property("undefined"),
|
||||||
},
|
},
|
||||||
methods = {
|
methods = {
|
||||||
getClientFromId = method("undefined", {['string'] = 'id'}, {'client'}),
|
getClientFromId = method("undefined", {['id'] = 'string'}, {'client'}),
|
||||||
},
|
},
|
||||||
events = {
|
events = {
|
||||||
clientDisconnected = event("undefined", {['client'] = 'client'}),
|
clientDisconnected = event("undefined", {['client'] = 'client'}),
|
||||||
@ -111,11 +111,11 @@ addDocs("physics", {
|
|||||||
methods = {
|
methods = {
|
||||||
getContacts = method("unimplemented", {['block'] = 'block'}, {'nil'}),
|
getContacts = method("unimplemented", {['block'] = 'block'}, {'nil'}),
|
||||||
resume = method("resumes physics and sets running to true", nil, nil),
|
resume = method("resumes physics and sets running to true", nil, nil),
|
||||||
rayTestScreenAllHits = method("runs a ray test query with our physics engine from the absolute coordinates x,y", {['number'] = 'x', ['number'] = 'y', ['table'] = 'exclusion'}, {'table'}),
|
rayTestScreenAllHits = method("runs a ray test query with our physics engine from the absolute coordinates x,y", {['y'] = 'number', ['exclusion'] = 'table'}, {'table'}),
|
||||||
rayTestAllHits = method("runs a ray test query with our physics engine between the start and end points provided", {['vector3'] = 'start', ['vector3'] = 'end', ['table'] = 'exclusion'}, {'table'}),
|
rayTestAllHits = method("runs a ray test query with our physics engine between the start and end points provided", {['end'] = 'vector3', ['exclusion'] = 'table'}, {'table'}),
|
||||||
pause = method("stops the physics engine and sets running to false", nil, nil),
|
pause = method("stops the physics engine and sets running to false", nil, nil),
|
||||||
rayTestClosest = method("runs a ray test query with our physics engine between the start and end points provided", {['vector3'] = 'start', ['vector3'] = 'end'}, {'table'}),
|
rayTestClosest = method("runs a ray test query with our physics engine between the start and end points provided", {['end'] = 'vector3'}, {'table'}),
|
||||||
rayTestScreen = method("runs a ray test query with our physics engine from the x,y screen position", {['number'] = 'x', ['number'] = 'y'}, {'table'}),
|
rayTestScreen = method("runs a ray test query with our physics engine from the x,y screen position", {['y'] = 'number'}, {'table'}),
|
||||||
},
|
},
|
||||||
events = {
|
events = {
|
||||||
},
|
},
|
||||||
@ -142,11 +142,11 @@ addDocs("http", {
|
|||||||
className = property("undefined"),
|
className = property("undefined"),
|
||||||
},
|
},
|
||||||
methods = {
|
methods = {
|
||||||
post = method("Is callback is nil, this function yields and returns the httpResult", {['string'] = 'url', ['string'] = 'body', ['function'] = 'callback'}, {'httpResult'}),
|
post = method("Is callback is nil, this function yields and returns the httpResult", {['callback'] = 'function', ['body'] = 'string'}, {'httpResult'}),
|
||||||
request = method("Is callback is nil, this function yields and returns the httpResult. ", {['string'] = 'requestType', ['string'] = 'url', ['string'] = 'body', ['table'] = 'headers', ['function'] = 'callback'}, {'httpResult'}),
|
request = method("Is callback is nil, this function yields and returns the httpResult. ", {['callback'] = 'function', ['body'] = 'string', ['headers'] = 'table'}, {'httpResult'}),
|
||||||
urlEncode = method("url encodes the string", {['string'] = 'url'}, {'string'}),
|
urlEncode = method("url encodes the string", {['url'] = 'string'}, {'string'}),
|
||||||
urlDecode = method("decodes the url", {['string'] = 'url'}, {'string'}),
|
urlDecode = method("decodes the url", {['url'] = 'string'}, {'string'}),
|
||||||
get = method("Is callback is nil, this function yields and returns the httpResult", {['string'] = 'url', ['function'] = 'callback'}, {'httpResult'}),
|
get = method("Is callback is nil, this function yields and returns the httpResult", {['callback'] = 'function', ['url'] = 'string'}, {'httpResult'}),
|
||||||
},
|
},
|
||||||
events = {
|
events = {
|
||||||
},
|
},
|
||||||
@ -155,15 +155,16 @@ addDocs("http", {
|
|||||||
addDocs("input", {
|
addDocs("input", {
|
||||||
properties = {
|
properties = {
|
||||||
screenSize = property("The size of the screen"),
|
screenSize = property("The size of the screen"),
|
||||||
mousePosition = property("The position of the mouse"),
|
|
||||||
className = property("undefined"),
|
className = property("undefined"),
|
||||||
|
cursorTexture = property("the cursor's texture"),
|
||||||
|
mousePosition = property("The position of the mouse"),
|
||||||
mouseFocusedGui = property("The gui element currently capturing the mouse input"),
|
mouseFocusedGui = property("The gui element currently capturing the mouse input"),
|
||||||
name = property("undefined"),
|
name = property("undefined"),
|
||||||
cursorTexture = property("the cursor's texture"),
|
keyFocusedGui = property("undefined"),
|
||||||
},
|
},
|
||||||
methods = {
|
methods = {
|
||||||
isKeyDown = method("returns if the key is pressed", {['enums.key'] = 'key'}, {'bool'}),
|
isKeyDown = method("returns if the key is pressed", {['key'] = 'enums.key'}, {'bool'}),
|
||||||
isMouseButtonDown = method("returns if the mouse is down", {['enums.mouseButton'] = 'mb'}, {'boo'}),
|
isMouseButtonDown = method("returns if the mouse is down", {['mb'] = 'enums.mouseButton'}, {'boo'}),
|
||||||
},
|
},
|
||||||
events = {
|
events = {
|
||||||
mouseLeftPressed = event("input event", {['inputObject'] = 'inputObject'}),
|
mouseLeftPressed = event("input event", {['inputObject'] = 'inputObject'}),
|
||||||
@ -292,13 +293,13 @@ addDocs("block", {
|
|||||||
opacity = property("A value of 1 indicates this object is not transparent."),
|
opacity = property("A value of 1 indicates this object is not transparent."),
|
||||||
},
|
},
|
||||||
methods = {
|
methods = {
|
||||||
applyImpulseAtPosition = method("Applies an impulse force at a relative position to this object", {['vector3'] = 'impulse', ['vector3'] = 'position'}, nil),
|
applyImpulseAtPosition = method("Applies an impulse force at a relative position to this object", {['position'] = 'vector3'}, nil),
|
||||||
applyImpulse = method("Applies an impulse force to this object", {['vector3'] = 'impulse'}, nil),
|
applyImpulse = method("Applies an impulse force to this object", {['impulse'] = 'vector3'}, nil),
|
||||||
applyForce = method("Applies a force to this object", {['vector3'] = 'force'}, nil),
|
applyForce = method("Applies a force to this object", {['force'] = 'vector3'}, nil),
|
||||||
applyTorque = method("Applies a force to this object", {['vector3'] = 'torque'}, nil),
|
applyTorque = method("Applies a force to this object", {['torque'] = 'vector3'}, nil),
|
||||||
applyForceAtPosition = method("Applies a force at a relative position to this object", {['vector3'] = 'position', ['vector3'] = 'force'}, nil),
|
applyForceAtPosition = method("Applies a force at a relative position to this object", {['force'] = 'vector3'}, nil),
|
||||||
lookAt = method("Changes the objects rotation so that it is looking towards the provided position.", {['vector3'] = 'position'}, nil),
|
lookAt = method("Changes the objects rotation so that it is looking towards the provided position.", {['position'] = 'vector3'}, nil),
|
||||||
applyTorqueImpulse = method("Applies a force to this object", {['vector3'] = 'torqueImpulse'}, nil),
|
applyTorqueImpulse = method("Applies a force to this object", {['torqueImpulse'] = 'vector3'}, nil),
|
||||||
},
|
},
|
||||||
events = {
|
events = {
|
||||||
mouseLeftPressed = event("undefined", {}),
|
mouseLeftPressed = event("undefined", {}),
|
||||||
@ -333,8 +334,8 @@ addDocs("camera", {
|
|||||||
},
|
},
|
||||||
methods = {
|
methods = {
|
||||||
screenToWorld = method("undefined", nil, nil),
|
screenToWorld = method("undefined", nil, nil),
|
||||||
worldToScreen = method("Converts a 3d cooridinate into screenspace. Returns a bool indicating if the point is infront of the camera, returns a vector2 with the screenspace coordinates,", {['vector3'] = 'position'}, {'boolean', 'vector2', 'number'}),
|
worldToScreen = method("Converts a 3d cooridinate into screenspace. Returns a bool indicating if the point is infront of the camera, returns a vector2 with the screenspace coordinates,", {['position'] = 'vector3'}, {'boolean', 'vector2', 'number'}),
|
||||||
lookAt = method("Changes the objects rotation so that it is looking towards the provided position.", {['vector3'] = 'position'}, nil),
|
lookAt = method("Changes the objects rotation so that it is looking towards the provided position.", {['position'] = 'vector3'}, nil),
|
||||||
},
|
},
|
||||||
events = {
|
events = {
|
||||||
},
|
},
|
||||||
@ -589,7 +590,7 @@ addDocs("guiBase", {
|
|||||||
borderWidth = property("undefined"),
|
borderWidth = property("undefined"),
|
||||||
},
|
},
|
||||||
methods = {
|
methods = {
|
||||||
bindSizeBreakpoint = method("", {['table'] = 'properties', ['enums.sizeBreakpoint'] = 'breakpoint'}, nil),
|
bindSizeBreakpoint = method("", {['breakpoint'] = 'enums.sizeBreakpoint', ['properties'] = 'table'}, nil),
|
||||||
},
|
},
|
||||||
events = {
|
events = {
|
||||||
keyUnfocused = event("undefined", {}),
|
keyUnfocused = event("undefined", {}),
|
||||||
@ -672,13 +673,13 @@ addDocs("baseClass", {
|
|||||||
methods = {
|
methods = {
|
||||||
getDescendants = method("Returns a table of all descended objects", nil, {'table'}),
|
getDescendants = method("Returns a table of all descended objects", nil, {'table'}),
|
||||||
isContainer = method("Returns true if this object can contain other objects.", nil, {'boolean'}),
|
isContainer = method("Returns true if this object can contain other objects.", nil, {'boolean'}),
|
||||||
isA = method("Returns true if this object is derived from the className given.", {['string'] = 'className'}, {'boolean'}),
|
isA = method("Returns true if this object is derived from the className given.", {['className'] = 'string'}, {'boolean'}),
|
||||||
destroy = method("Locks the object before removing it from the hierarchy. Children will also be destroyed.", nil, nil),
|
destroy = method("Locks the object before removing it from the hierarchy. Children will also be destroyed.", nil, nil),
|
||||||
getFullName = method("Returns a string including ancestor names", nil, {'string'}),
|
getFullName = method("Returns a string including ancestor names", nil, {'string'}),
|
||||||
constructor = method("undefined", nil, nil),
|
constructor = method("undefined", nil, nil),
|
||||||
destroyAllChildren = method("Invokes the destroy method on each child of this instance.", nil, nil),
|
destroyAllChildren = method("Invokes the destroy method on each child of this instance.", nil, nil),
|
||||||
hasChild = method("Returns true if this object has a child with the name given", {['string'] = 'name'}, {'boolean'}),
|
hasChild = method("Returns true if this object has a child with the name given", {['name'] = 'string'}, {'boolean'}),
|
||||||
isDescendantOf = method("Returns true if this object is a descendant of the ancestor object given", {['baseClass'] = 'ancestor'}, {'boolean'}),
|
isDescendantOf = method("Returns true if this object is a descendant of the ancestor object given", {['ancestor'] = 'baseClass'}, {'boolean'}),
|
||||||
describe = method("", nil, {'string'}),
|
describe = method("", nil, {'string'}),
|
||||||
clone = method("Creates and returns a copy of this object", nil, {'variant'}),
|
clone = method("Creates and returns a copy of this object", nil, {'variant'}),
|
||||||
},
|
},
|
||||||
@ -722,11 +723,12 @@ addDocs("engine", {
|
|||||||
line = property("The default constructor for line"),
|
line = property("The default constructor for line"),
|
||||||
},
|
},
|
||||||
methods = {
|
methods = {
|
||||||
openUrl = method("opens the default web browser", {['string'] = 'url'}, nil),
|
openUrl = method("opens the default web browser", {['url'] = 'string'}, nil),
|
||||||
construct = method("a generic constructor", {['string'] = 'className', ['variant'] = 'parent', ['table'] = 'properties'}, {'variant'}),
|
construct = method("a generic constructor", {['parent'] = 'variant', ['properties'] = 'table', ['className'] = 'string'}, {'variant'}),
|
||||||
isAuthenticated = method("undefined", nil, nil),
|
isAuthenticated = method("undefined", nil, nil),
|
||||||
},
|
},
|
||||||
events = {
|
events = {
|
||||||
|
stepped = event("undefined", {}),
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user