Please login or register.

Login with username, password and session length
Advanced search  

News:

IRC channel - server: waelisch.de  channel: #wme (read more)

Author Topic: QuitGame event handler  (Read 4825 times)

0 Members and 1 Guest are viewing this topic.

rice

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 12
    • View Profile
QuitGame event handler
« 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?
Logged

ciberspace

  • Regular poster
  • ***
  • Karma: 1
  • Offline Offline
  • Gender: Male
  • Posts: 116
    • View Profile
    • Tele Juego
Re: QuitGame event handler
« Reply #1 on: June 16, 2014, 06:54:54 AM »

Help.

QuitGame()
Quits the current game session.

rice

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 12
    • View Profile
Re: QuitGame event handler
« Reply #2 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.
Logged

shuin

  • Occasional poster
  • **
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 51
    • View Profile
Re: QuitGame event handler
« Reply #3 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?
Logged
Untitled project status: production

rice

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 12
    • View Profile
Re: QuitGame event handler
« Reply #4 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.
Logged

ciberspace

  • Regular poster
  • ***
  • Karma: 1
  • Offline Offline
  • Gender: Male
  • Posts: 116
    • View Profile
    • Tele Juego
Re: QuitGame event handler
« Reply #5 on: June 17, 2014, 06:27:00 AM »

look at the program help file  :)

rice

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 12
    • View Profile
Re: QuitGame event handler
« Reply #6 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.
Logged
 

Page created in 0.07 seconds with 24 queries.