-
Notifications
You must be signed in to change notification settings - Fork 1
preliminary byond tick based timers #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Hmm yeah it probably makes sense to have maybe a core timer file and then a real time and a byond one with the args and extra bits. |
d07653d to
b202bd3
Compare
|
the rand dependency is basically what v4 uuids use if you use |
|
We're not actually limited to UUID ids, the helpers just come out of the box, so maybe our own ID type might be worth considering |
This implements timers that are ticked from byond via /world/Tick(), there being roughly 5 ticks a decisecond. Dividing the input by
tick_lagmight provide better "deciseconds as expected by byond" api.Might make sense to throw this stuff in the same file with real-time timers because they share a lot of code, and just make real-time vs. byond-time an argument for the timer functions (or macros).