FML Update

This commit is contained in:
Steffen Schröder
2014-02-16 13:59:28 +01:00
parent c935cf9cac
commit ac1ea81b94
6 changed files with 80 additions and 11 deletions

View File

@ -3,6 +3,7 @@ main() {
declare FML_ScriptStart = Now;
+++OnInit+++
declare FML_LoopCounter = 0;
declare FML_LastTick = 0;
while (True) {
yield;
foreach (Event in PendingEvents) {
@ -24,7 +25,10 @@ main() {
}
}
}
+++Loop+++
FML_LoopCounter += 1;
+++Loop+++
if (FML_LastTick + 250 > Now) continue;
FML_LastTick = Now;
+++Tick+++
}
}