Updated the game/gamesrc/ examples with the new hook names.

This commit is contained in:
Griatch 2013-04-09 22:22:17 +02:00
parent 9a187b48ff
commit be2d0086a3
5 changed files with 123 additions and 39 deletions

View file

@ -29,12 +29,13 @@ class ExampleCharacter(Character):
and its commands only be called by itself, not anyone else.
(to change things, use at_object_creation() instead)
at_after_move - launches the "look" command
at_disconnect - stores the current location, so the "unconnected" character
at_post_puppet(player) - when Player disconnects from the Character, we
store the current location, so the "unconnected" character
object does not need to stay on grid but can be given a
None-location while offline.
at_post_login - retrieves the character's old location and puts it back
on the grid with a "charname has connected" message echoed
to the room
at_pre_puppet - just before Player re-connects, retrieves the character's old
location and puts it back on the grid with a "charname has
connected" message echoed to the room
"""
pass