Wintermute Engine Forum
Wintermute Engine => Technical forum => Topic started by: rice on June 16, 2014, 12:36:35 AM
-
I'm reading the code for the included projects line by line. In wme_demo, there is an event called "QuitGame". I can't find this in the documentation or in the script files.
Where is it defined? In the, um, event I'm not overlooking something, what other events aren't documented?
-
Help.
QuitGame()
Quits the current game session.
-
That is Game.QuitGame();
I have searched the *.script files and the documentation, and I can't find where the QuitGame event is defined for Alt+F4.
-
Isn't it an event handled by the engine, just like the "keypress" event for example? What exactly do you want to do?
-
As far as I can tell, it's an undocumented low-level event. It's a good default, so I don't need to change it, but I wanted to make sure I wasn't overlooking something.
You wouldn't want to write code if you could do it so cleanly with the QuitGame event. But you wouldn't know you could do this without reading the engine or demo source.
-
look at the program help file :)
-
It's the first thing I did. If it's in there, then I'd really like to know where.