api return restriction
This commit is contained in:
parent
a020b92824
commit
85e47dd677
@ -73,6 +73,7 @@
|
|||||||
<li>Procedure can't have more than 8 parameters.
|
<li>Procedure can't have more than 8 parameters.
|
||||||
<li>Decimal portions of floating points are lossy both due to rounding errors and text representation,
|
<li>Decimal portions of floating points are lossy both due to rounding errors and text representation,
|
||||||
thus they cannot be relied to hold for equality. Integer parts of floats are good up to 2^24.
|
thus they cannot be relied to hold for equality. Integer parts of floats are good up to 2^24.
|
||||||
|
<li>Returns must be restricted/closed on being constant over frame, parameters or asset frame.
|
||||||
</ul>
|
</ul>
|
||||||
</blockquote>
|
</blockquote>
|
||||||
</body>
|
</body>
|
||||||
|
@ -19,7 +19,8 @@
|
|||||||
"params": [
|
"params": [
|
||||||
{ "name": "name", "type": "char *" }
|
{ "name": "name", "type": "char *" }
|
||||||
],
|
],
|
||||||
"return": "bool"
|
"return": "bool",
|
||||||
|
"restriction": "frame"
|
||||||
},
|
},
|
||||||
|
|
||||||
"input_action_just_pressed": {
|
"input_action_just_pressed": {
|
||||||
@ -29,7 +30,8 @@
|
|||||||
"params": [
|
"params": [
|
||||||
{ "name": "name", "type": "char *" }
|
{ "name": "name", "type": "char *" }
|
||||||
],
|
],
|
||||||
"return": "bool"
|
"return": "bool",
|
||||||
|
"restriction": "frame"
|
||||||
},
|
},
|
||||||
|
|
||||||
"input_action_just_released": {
|
"input_action_just_released": {
|
||||||
@ -39,7 +41,8 @@
|
|||||||
"params": [
|
"params": [
|
||||||
{ "name": "name", "type": "char *" }
|
{ "name": "name", "type": "char *" }
|
||||||
],
|
],
|
||||||
"return": "bool"
|
"return": "bool",
|
||||||
|
"restriction": "frame"
|
||||||
},
|
},
|
||||||
|
|
||||||
"input_action_position": {
|
"input_action_position": {
|
||||||
@ -49,7 +52,8 @@
|
|||||||
"params": [
|
"params": [
|
||||||
{ "name": "name", "type": "char *" }
|
{ "name": "name", "type": "char *" }
|
||||||
],
|
],
|
||||||
"return": "Vec2"
|
"return": "Vec2",
|
||||||
|
"restriction": "frame"
|
||||||
},
|
},
|
||||||
|
|
||||||
"draw_sprite": {
|
"draw_sprite": {
|
||||||
@ -111,7 +115,8 @@
|
|||||||
{ "name": "height", "type": "float", "default": 22 },
|
{ "name": "height", "type": "float", "default": 22 },
|
||||||
{ "name": "font", "type": "char *", "default": {} }
|
{ "name": "font", "type": "char *", "default": {} }
|
||||||
],
|
],
|
||||||
"return": "float"
|
"return": "float",
|
||||||
|
"restriction": "asset"
|
||||||
},
|
},
|
||||||
|
|
||||||
"draw_nine_slice": {
|
"draw_nine_slice": {
|
||||||
@ -228,7 +233,8 @@
|
|||||||
{ "name": "up", "type": "Vec3" }
|
{ "name": "up", "type": "Vec3" }
|
||||||
],
|
],
|
||||||
"c_type": "DrawCameraFromPrincipalAxesResult"
|
"c_type": "DrawCameraFromPrincipalAxesResult"
|
||||||
}
|
},
|
||||||
|
"restriction": "parameters"
|
||||||
},
|
},
|
||||||
|
|
||||||
"draw_skybox": {
|
"draw_skybox": {
|
||||||
@ -271,7 +277,8 @@
|
|||||||
"params": [
|
"params": [
|
||||||
{ "name": "file", "type": "char *" }
|
{ "name": "file", "type": "char *" }
|
||||||
],
|
],
|
||||||
"return": "char *"
|
"return": "char *",
|
||||||
|
"restriction": "asset"
|
||||||
},
|
},
|
||||||
|
|
||||||
"timer_tick_seconds": {
|
"timer_tick_seconds": {
|
||||||
@ -281,7 +288,8 @@
|
|||||||
"params": [
|
"params": [
|
||||||
{ "name": "seconds_left", "type": "float" }
|
{ "name": "seconds_left", "type": "float" }
|
||||||
],
|
],
|
||||||
"return": "float"
|
"return": "float",
|
||||||
|
"restriction": "parameters"
|
||||||
},
|
},
|
||||||
|
|
||||||
"timer_elapse_seconds": {
|
"timer_elapse_seconds": {
|
||||||
@ -299,7 +307,8 @@
|
|||||||
{ "name": "elapsed", "type": "bool" }
|
{ "name": "elapsed", "type": "bool" }
|
||||||
],
|
],
|
||||||
"c_type": "TimerElapseSecondsResult"
|
"c_type": "TimerElapseSecondsResult"
|
||||||
}
|
},
|
||||||
|
"restriction": "parameters"
|
||||||
},
|
},
|
||||||
|
|
||||||
"log_vec2": {
|
"log_vec2": {
|
||||||
|
Loading…
Reference in New Issue
Block a user