April 26, 2024, 04:16:54 AM
Welcome,
Guest
Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
IRC channel - server:
waelisch.de
channel:
#wme
(
read more
)
Home
Help
Search
Calendar
Login
Register
Wintermute Engine Forum
>
Wintermute Engine
>
Technical forum
>
Topic:
QuitGame event handler
« previous
next »
Pages: [
1
]
Print
Author
Topic: QuitGame event handler (Read 4839 times)
0 Members and 1 Guest are viewing this topic.
rice
Lurker
Karma: 0
Offline
Posts: 12
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
Gender:
Posts: 116
Re: QuitGame event handler
«
Reply #1 on:
June 16, 2014, 06:54:54 AM »
Help.
QuitGame()
Quits the current game session.
Logged
Personal site:
https://ciberspacedesigner.wordpress.com/juegos/
Personal site:
http://ciberspacedesigner.wordpress.com/
rice
Lurker
Karma: 0
Offline
Posts: 12
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
Gender:
Posts: 51
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
Posts: 12
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
Gender:
Posts: 116
Re: QuitGame event handler
«
Reply #5 on:
June 17, 2014, 06:27:00 AM »
look at the program help file
Logged
Personal site:
https://ciberspacedesigner.wordpress.com/juegos/
Personal site:
http://ciberspacedesigner.wordpress.com/
rice
Lurker
Karma: 0
Offline
Posts: 12
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
Print
Pages: [
1
]
« previous
next »
Wintermute Engine Forum
>
Wintermute Engine
>
Technical forum
>
Topic:
QuitGame event handler