TrackManiaControl/application/core/FML/Script/Templates/Main.txt
Steffen Schröder 7f1646f25d - Moved FML into core folder
- Endurance plugin
- map class nbCheckpoints
- added script callbacks registration
2013-11-25 19:46:29 +01:00

28 lines
465 B
Plaintext

main() {
+++OnInit+++
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+++
}
}