Wintermute Engine Forum

Wintermute Engine => Technical forum => Topic started by: rice on June 16, 2014, 12:36:35 AM

Title: QuitGame event handler
Post 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?
Title: Re: QuitGame event handler
Post by: ciberspace on June 16, 2014, 06:54:54 AM
Help.

QuitGame()
Quits the current game session.

Title: Re: QuitGame event handler
Post by: rice on June 16, 2014, 12:07:05 PM
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.
Title: Re: QuitGame event handler
Post by: shuin on June 16, 2014, 03:09:11 PM
Isn't it an event handled by the engine, just like the "keypress" event for example? What exactly do you want to do?
Title: Re: QuitGame event handler
Post by: rice on June 16, 2014, 03:36:36 PM
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.
Title: Re: QuitGame event handler
Post by: ciberspace on June 17, 2014, 06:27:00 AM
look at the program help file  :)
Title: Re: QuitGame event handler
Post by: rice on June 17, 2014, 09:23:54 AM
It's the first thing I did.  If it's in there, then I'd really like to know where.