1
0
mirror of https://github.com/teverse/teverse synced 2025-08-25 15:44:46 +02:00

Compare commits

...

2 Commits

Author SHA1 Message Date
Jay
7acaed288c updated dump 2020-01-19 11:07:03 +00:00
Jay
3961034c00 flip bug 2020-01-19 10:58:52 +00:00
2 changed files with 87 additions and 81 deletions

View File

@ -49,7 +49,7 @@
"table"
],
"parameters": {
"string": "json"
"json": "string"
}
},
"encodeWithTypes": {
@ -93,8 +93,8 @@
"toServer": {
"desc": "Sends a message to the connected server",
"parameters": {
"...": "...",
"string": "eventName"
"eventName": "string",
"...": "..."
}
},
"bind": {
@ -103,23 +103,23 @@
"table"
],
"parameters": {
"function": "callback",
"string": "eventName"
"callback": "function",
"eventName": "string"
}
},
"toAllClients": {
"desc": "Broadcasts a message to all connected clients (server only)",
"parameters": {
"...": "...",
"string": "eventName"
"eventName": "string",
"...": "..."
}
},
"toClient": {
"desc": "Broadcasts a message to the connected client (server only)",
"parameters": {
"...": "...",
"eventName": "string",
"client": "client",
"string": "eventName"
"...": "..."
}
}
},
@ -202,7 +202,7 @@
"client"
],
"parameters": {
"string": "id"
"id": "string"
}
}
},
@ -256,8 +256,8 @@
"table"
],
"parameters": {
"number": "y",
"table": "exclusion"
"y": "number",
"exclusion": "table"
}
},
"rayTestAllHits": {
@ -266,8 +266,8 @@
"table"
],
"parameters": {
"vector3": "end",
"table": "exclusion"
"end": "vector3",
"exclusion": "table"
}
},
"pause": {
@ -279,7 +279,7 @@
"table"
],
"parameters": {
"vector3": "end"
"end": "vector3"
}
},
"rayTestScreen": {
@ -288,7 +288,7 @@
"table"
],
"parameters": {
"number": "y"
"y": "number"
}
}
},
@ -363,8 +363,8 @@
"httpResult"
],
"parameters": {
"function": "callback",
"string": "body"
"callback": "function",
"body": "string"
}
},
"request": {
@ -373,9 +373,9 @@
"httpResult"
],
"parameters": {
"function": "callback",
"string": "body",
"table": "headers"
"callback": "function",
"body": "string",
"headers": "table"
}
},
"urlEncode": {
@ -384,7 +384,7 @@
"string"
],
"parameters": {
"string": "url"
"url": "string"
}
},
"urlDecode": {
@ -393,7 +393,7 @@
"string"
],
"parameters": {
"string": "url"
"url": "string"
}
},
"get": {
@ -402,8 +402,8 @@
"httpResult"
],
"parameters": {
"function": "callback",
"string": "url"
"callback": "function",
"url": "string"
}
}
},
@ -432,7 +432,7 @@
"bool"
],
"parameters": {
"enums.key": "key"
"key": "enums.key"
}
},
"isMouseButtonDown": {
@ -441,7 +441,7 @@
"boo"
],
"parameters": {
"enums.mouseButton": "mb"
"mb": "enums.mouseButton"
}
}
},
@ -542,6 +542,7 @@
"writable": false
},
"keyFocusedGui": {
"desc": "undefined",
"defaultType": "boolean",
"writable": false
}
@ -707,43 +708,43 @@
"applyImpulseAtPosition": {
"desc": "Applies an impulse force at a relative position to this object",
"parameters": {
"vector3": "position"
"position": "vector3"
}
},
"applyImpulse": {
"desc": "Applies an impulse force to this object",
"parameters": {
"vector3": "impulse"
"impulse": "vector3"
}
},
"applyForce": {
"desc": "Applies a force to this object",
"parameters": {
"vector3": "force"
"force": "vector3"
}
},
"applyTorque": {
"desc": "Applies a force to this object",
"parameters": {
"vector3": "torque"
"torque": "vector3"
}
},
"applyForceAtPosition": {
"desc": "Applies a force at a relative position to this object",
"parameters": {
"vector3": "force"
"force": "vector3"
}
},
"lookAt": {
"desc": "Changes the objects rotation so that it is looking towards the provided position.",
"parameters": {
"vector3": "position"
"position": "vector3"
}
},
"applyTorqueImpulse": {
"desc": "Applies a force to this object",
"parameters": {
"vector3": "torqueImpulse"
"torqueImpulse": "vector3"
}
}
},
@ -954,13 +955,13 @@
"number"
],
"parameters": {
"vector3": "position"
"position": "vector3"
}
},
"lookAt": {
"desc": "Changes the objects rotation so that it is looking towards the provided position.",
"parameters": {
"vector3": "position"
"position": "vector3"
}
}
},
@ -1621,8 +1622,8 @@
"bindSizeBreakpoint": {
"desc": "",
"parameters": {
"enums.sizeBreakpoint": "breakpoint",
"table": "properties"
"properties": "table",
"breakpoint": "enums.sizeBreakpoint"
}
}
},
@ -1943,7 +1944,7 @@
"boolean"
],
"parameters": {
"string": "className"
"className": "string"
}
},
"destroy": {
@ -1967,7 +1968,7 @@
"boolean"
],
"parameters": {
"string": "name"
"name": "string"
}
},
"isDescendantOf": {
@ -1976,7 +1977,7 @@
"boolean"
],
"parameters": {
"baseClass": "ancestor"
"ancestor": "baseClass"
}
},
"describe": {
@ -2068,7 +2069,7 @@
"openUrl": {
"desc": "opens the default web browser",
"parameters": {
"string": "url"
"url": "string"
}
},
"construct": {
@ -2077,9 +2078,9 @@
"variant"
],
"parameters": {
"variant": "parent",
"table": "properties",
"string": "className"
"className": "string",
"parent": "variant",
"properties": "table"
}
},
"isAuthenticated": {
@ -2088,7 +2089,10 @@
},
"derivedFrom": "baseClass",
"events": {
"stepped": []
"stepped": {
"desc": "undefined",
"parameters": []
}
},
"subclasses": [],
"class": "engine",
@ -2236,7 +2240,7 @@
}
}
],
"_generatedAt": "19/01/2020 00:22:00",
"_generatedAt": "19/01/2020 11:05:52",
"enums": {
"serverLocation": {
"london": 0

View File

@ -46,7 +46,7 @@ addDocs("json", {
className = property("undefined"),
},
methods = {
decode = method("undefined", {['string'] = 'json'}, {'table'}),
decode = method("undefined", {['json'] = 'string'}, {'table'}),
encodeWithTypes = method("undefined", {['table'] = 'table'}, {'string'}),
encode = method("undefined", {['table'] = 'table'}, {'stripe'}),
},
@ -64,10 +64,10 @@ addDocs("networking", {
serverId = property("the id of the connected server"),
},
methods = {
toServer = method("Sends a message to the connected server", {['string'] = 'eventName', ['...'] = '...'}, nil),
bind = method("binds the provide callback to the eventname. Returns a table with a disconnect method.", {['string'] = 'eventName', ['function'] = 'callback'}, {'table'}),
toAllClients = method("Broadcasts a message to all connected clients (server only)", {['string'] = 'eventName', ['...'] = '...'}, nil),
toClient = method("Broadcasts a message to the connected client (server only)", {['client'] = 'client', ['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.", {['callback'] = 'function', ['eventName'] = 'string'}, {'table'}),
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', ['eventName'] = 'string'}, nil),
},
events = {
connected = event("undefined", {}),
@ -93,7 +93,7 @@ addDocs("clients", {
className = property("undefined"),
},
methods = {
getClientFromId = method("undefined", {['string'] = 'id'}, {'client'}),
getClientFromId = method("undefined", {['id'] = 'string'}, {'client'}),
},
events = {
clientDisconnected = event("undefined", {['client'] = 'client'}),
@ -111,11 +111,11 @@ addDocs("physics", {
methods = {
getContacts = method("unimplemented", {['block'] = 'block'}, {'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'}),
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'}),
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", {['end'] = 'vector3', ['exclusion'] = 'table'}, {'table'}),
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'}),
rayTestScreen = method("runs a ray test query with our physics engine from the x,y screen position", {['number'] = 'x', ['number'] = 'y'}, {'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", {['y'] = 'number'}, {'table'}),
},
events = {
},
@ -142,11 +142,11 @@ addDocs("http", {
className = property("undefined"),
},
methods = {
post = method("Is callback is nil, this function yields and returns the httpResult", {['string'] = 'url', ['string'] = 'body', ['function'] = 'callback'}, {'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'}),
urlEncode = method("url encodes the string", {['string'] = 'url'}, {'string'}),
urlDecode = method("decodes the url", {['string'] = 'url'}, {'string'}),
get = method("Is callback is nil, this function yields and returns the httpResult", {['string'] = 'url', ['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. ", {['callback'] = 'function', ['body'] = 'string', ['headers'] = 'table'}, {'httpResult'}),
urlEncode = method("url encodes the string", {['url'] = 'string'}, {'string'}),
urlDecode = method("decodes the url", {['url'] = 'string'}, {'string'}),
get = method("Is callback is nil, this function yields and returns the httpResult", {['callback'] = 'function', ['url'] = 'string'}, {'httpResult'}),
},
events = {
},
@ -155,15 +155,16 @@ addDocs("http", {
addDocs("input", {
properties = {
screenSize = property("The size of the screen"),
mousePosition = property("The position of the mouse"),
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"),
name = property("undefined"),
cursorTexture = property("the cursor's texture"),
keyFocusedGui = property("undefined"),
},
methods = {
isKeyDown = method("returns if the key is pressed", {['enums.key'] = 'key'}, {'bool'}),
isMouseButtonDown = method("returns if the mouse is down", {['enums.mouseButton'] = 'mb'}, {'boo'}),
isKeyDown = method("returns if the key is pressed", {['key'] = 'enums.key'}, {'bool'}),
isMouseButtonDown = method("returns if the mouse is down", {['mb'] = 'enums.mouseButton'}, {'boo'}),
},
events = {
mouseLeftPressed = event("input event", {['inputObject'] = 'inputObject'}),
@ -292,13 +293,13 @@ addDocs("block", {
opacity = property("A value of 1 indicates this object is not transparent."),
},
methods = {
applyImpulseAtPosition = method("Applies an impulse force at a relative position to this object", {['vector3'] = 'impulse', ['vector3'] = 'position'}, nil),
applyImpulse = method("Applies an impulse force to this object", {['vector3'] = 'impulse'}, nil),
applyForce = method("Applies a force to this object", {['vector3'] = 'force'}, nil),
applyTorque = method("Applies a force to this object", {['vector3'] = 'torque'}, nil),
applyForceAtPosition = method("Applies a force at a relative position to this object", {['vector3'] = 'position', ['vector3'] = 'force'}, nil),
lookAt = method("Changes the objects rotation so that it is looking towards the provided position.", {['vector3'] = 'position'}, nil),
applyTorqueImpulse = method("Applies a force to this object", {['vector3'] = 'torqueImpulse'}, 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", {['impulse'] = 'vector3'}, nil),
applyForce = method("Applies a force to this object", {['force'] = 'vector3'}, nil),
applyTorque = method("Applies a force to this object", {['torque'] = 'vector3'}, 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.", {['position'] = 'vector3'}, nil),
applyTorqueImpulse = method("Applies a force to this object", {['torqueImpulse'] = 'vector3'}, nil),
},
events = {
mouseLeftPressed = event("undefined", {}),
@ -333,8 +334,8 @@ addDocs("camera", {
},
methods = {
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'}),
lookAt = method("Changes the objects rotation so that it is looking towards the provided position.", {['vector3'] = 'position'}, 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,", {['position'] = 'vector3'}, {'boolean', 'vector2', 'number'}),
lookAt = method("Changes the objects rotation so that it is looking towards the provided position.", {['position'] = 'vector3'}, nil),
},
events = {
},
@ -589,7 +590,7 @@ addDocs("guiBase", {
borderWidth = property("undefined"),
},
methods = {
bindSizeBreakpoint = method("", {['table'] = 'properties', ['enums.sizeBreakpoint'] = 'breakpoint'}, nil),
bindSizeBreakpoint = method("", {['breakpoint'] = 'enums.sizeBreakpoint', ['properties'] = 'table'}, nil),
},
events = {
keyUnfocused = event("undefined", {}),
@ -672,13 +673,13 @@ addDocs("baseClass", {
methods = {
getDescendants = method("Returns a table of all descended objects", nil, {'table'}),
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),
getFullName = method("Returns a string including ancestor names", nil, {'string'}),
constructor = method("undefined", 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'}),
isDescendantOf = method("Returns true if this object is a descendant of the ancestor object given", {['baseClass'] = 'ancestor'}, {'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", {['ancestor'] = 'baseClass'}, {'boolean'}),
describe = method("", nil, {'string'}),
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"),
},
methods = {
openUrl = method("opens the default web browser", {['string'] = 'url'}, nil),
construct = method("a generic constructor", {['string'] = 'className', ['variant'] = 'parent', ['table'] = 'properties'}, {'variant'}),
openUrl = method("opens the default web browser", {['url'] = 'string'}, nil),
construct = method("a generic constructor", {['parent'] = 'variant', ['properties'] = 'table', ['className'] = 'string'}, {'variant'}),
isAuthenticated = method("undefined", nil, nil),
},
events = {
stepped = event("undefined", {}),
},
})