TrackManiaControl/application/core/FML/Script/Parts/Main.txt

30 lines
565 B
Plaintext
Raw Normal View History

2013-11-28 07:30:00 +01:00
Void Dummy() {}
main() {
2013-12-31 02:55:19 +01:00
declare FML_ScriptStart = Now;
+++OnInit+++
2013-12-31 02:55:19 +01:00
declare FML_LoopCounter = 0;
while (True) {
yield;
foreach (Event in PendingEvents) {
switch (Event.Type) {
case CMlEvent::Type::EntrySubmit: {
+++EntrySubmit+++
}
case CMlEvent::Type::KeyPress: {
+++KeyPress+++
}
case CMlEvent::Type::MouseClick: {
+++MouseClick+++
}
case CMlEvent::Type::MouseOut: {
+++MouseOut+++
}
case CMlEvent::Type::MouseOver: {
+++MouseOver+++
}
}
}
+++Loop+++
2013-12-31 02:55:19 +01:00
FML_LoopCounter += 1;
}
2013-12-31 02:55:19 +01:00
}