mirror of
https://github.com/evennia/evennia.git
synced 2026-04-01 05:27:17 +02:00
Fixed hook method descriptions.
This commit is contained in:
parent
23cd9e31b1
commit
6ae1123421
3 changed files with 15 additions and 15 deletions
|
|
@ -77,12 +77,11 @@ class Object(TypeClass):
|
|||
|
||||
def at_init(self):
|
||||
"""
|
||||
This is always called whenever this
|
||||
object initiated -- both when the object
|
||||
is first created as well as after each restart.
|
||||
It is also called after each server reload, so
|
||||
if something should survive a warm-reboot (rebooting
|
||||
the server without the players logging out), put it here.
|
||||
This is always called whenever this object is initiated --
|
||||
that is, whenever it its typeclass is cached from memory. This
|
||||
happens on-demand first time the object is used or activated
|
||||
in some way after being created but also after each server
|
||||
restart or reload.
|
||||
"""
|
||||
pass
|
||||
|
||||
|
|
|
|||
|
|
@ -53,12 +53,13 @@ class Player(TypeClass):
|
|||
|
||||
def at_init(self):
|
||||
"""
|
||||
This is always called whenever this
|
||||
object initiated -- both when the object
|
||||
is first created as well as after each restart.
|
||||
It is also called after each server reload, so
|
||||
if something should survive a warm-reboot (rebooting
|
||||
the server without the players logging out), put it here.
|
||||
This is always called whenever this object is initiated --
|
||||
that is, whenever it its typeclass is cached from memory. This
|
||||
happens on-demand first time the object is used or activated
|
||||
in some way after being created but also after each server
|
||||
restart or reload. In the case of player objects, this usually
|
||||
happens the moment the player logs in or reconnects after a
|
||||
reload.
|
||||
"""
|
||||
pass
|
||||
|
||||
|
|
|
|||
|
|
@ -221,9 +221,6 @@ class ScriptClass(TypeClass):
|
|||
return True
|
||||
|
||||
# hooks
|
||||
def at_init(self):
|
||||
"called every typeclass initiation (reloads/restarts). not much use for scripts."
|
||||
pass
|
||||
def at_script_creation(self):
|
||||
"placeholder"
|
||||
pass
|
||||
|
|
@ -239,6 +236,9 @@ class ScriptClass(TypeClass):
|
|||
def at_repeat(self):
|
||||
"placeholder"
|
||||
pass
|
||||
def at_init(self):
|
||||
"called when typeclass re-caches. Usually not used for scripts."
|
||||
pass
|
||||
|
||||
|
||||
#
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue