Fixed hook method descriptions.

This commit is contained in:
Griatch 2011-10-01 22:36:55 +02:00
parent 23cd9e31b1
commit 6ae1123421
3 changed files with 15 additions and 15 deletions

View file

@ -77,12 +77,11 @@ class Object(TypeClass):
def at_init(self): def at_init(self):
""" """
This is always called whenever this This is always called whenever this object is initiated --
object initiated -- both when the object that is, whenever it its typeclass is cached from memory. This
is first created as well as after each restart. happens on-demand first time the object is used or activated
It is also called after each server reload, so in some way after being created but also after each server
if something should survive a warm-reboot (rebooting restart or reload.
the server without the players logging out), put it here.
""" """
pass pass

View file

@ -53,12 +53,13 @@ class Player(TypeClass):
def at_init(self): def at_init(self):
""" """
This is always called whenever this This is always called whenever this object is initiated --
object initiated -- both when the object that is, whenever it its typeclass is cached from memory. This
is first created as well as after each restart. happens on-demand first time the object is used or activated
It is also called after each server reload, so in some way after being created but also after each server
if something should survive a warm-reboot (rebooting restart or reload. In the case of player objects, this usually
the server without the players logging out), put it here. happens the moment the player logs in or reconnects after a
reload.
""" """
pass pass

View file

@ -221,9 +221,6 @@ class ScriptClass(TypeClass):
return True return True
# hooks # hooks
def at_init(self):
"called every typeclass initiation (reloads/restarts). not much use for scripts."
pass
def at_script_creation(self): def at_script_creation(self):
"placeholder" "placeholder"
pass pass
@ -239,6 +236,9 @@ class ScriptClass(TypeClass):
def at_repeat(self): def at_repeat(self):
"placeholder" "placeholder"
pass pass
def at_init(self):
"called when typeclass re-caches. Usually not used for scripts."
pass
# #