add interval from timer_elapse_seconds() result, add timers to twn_api.json
This commit is contained in:
@ -264,6 +264,34 @@
|
||||
]
|
||||
},
|
||||
|
||||
"timer_tick_seconds": {
|
||||
"module": "util",
|
||||
"symbol": "tick_seconds",
|
||||
"header": "twn_util.h",
|
||||
"params": [
|
||||
{ "name": "seconds_left", "type": "float" }
|
||||
],
|
||||
"return": "float"
|
||||
},
|
||||
|
||||
"timer_elapse_seconds": {
|
||||
"module": "util",
|
||||
"symbol": "elapse_seconds",
|
||||
"header": "twn_util.h",
|
||||
"params": [
|
||||
{ "name": "seconds_left", "type": "float" },
|
||||
{ "name": "interval", "type": "float" }
|
||||
],
|
||||
"return": {
|
||||
"fields": [
|
||||
{ "name": "seconds_left", "type": "float" },
|
||||
{ "name": "interval", "type": "float" },
|
||||
{ "name": "elapsed", "type": "bool" }
|
||||
],
|
||||
"c_type": "TimerElapseSecondsResult"
|
||||
}
|
||||
},
|
||||
|
||||
"log_vec2": {
|
||||
"module": "util",
|
||||
"symbol": "log_vec2",
|
||||
|
Reference in New Issue
Block a user