Add at_object_creation() to basicobject.py. I'll be adding at_object_destruction() later, ran out of time right now to do so. Also added some elaboration on the purpose of __init__ to basicobject.py.

This commit is contained in:
Greg Taylor 2009-04-16 14:37:58 +00:00
parent 36e23bfd4a
commit 4bcbfd855a
3 changed files with 23 additions and 2 deletions

View file

@ -280,6 +280,9 @@ def cmd_create(command):
new_object = Object.objects.create_object(odat)
source_object.emit_to("You create a new thing: %s" % (new_object,))
# Trigger stuff to happen after said object is created.
new_object.scriptlink.at_object_creation()
GLOBAL_CMD_TABLE.add_command("@create", cmd_create,
priv_tuple=("genperms.builder"))