mirror of
https://github.com/evennia/evennia.git
synced 2026-03-25 09:16:32 +01:00
Moved Players over to the new proxy system, made the start-hook called by the save-signal system into at_first_save()
This commit is contained in:
parent
db512cbbf5
commit
9af9f94fa0
9 changed files with 465 additions and 584 deletions
|
|
@ -840,7 +840,7 @@ class DefaultObject(ObjectDB):
|
|||
except AttributeError:
|
||||
return False
|
||||
|
||||
def at_instance_creation(self):
|
||||
def at_first_save(self):
|
||||
"""
|
||||
This is called by the typeclass system whenever an instance of
|
||||
this class is saved for the first time. It is a generic hook
|
||||
|
|
@ -874,6 +874,7 @@ class DefaultObject(ObjectDB):
|
|||
updates.append("db_destination")
|
||||
if updates:
|
||||
self.save(update_fields=updates)
|
||||
|
||||
if cdict["permissions"]:
|
||||
self.permissions.add(cdict["permissions"])
|
||||
if cdict["locks"]:
|
||||
|
|
@ -883,6 +884,7 @@ class DefaultObject(ObjectDB):
|
|||
if cdict["location"]:
|
||||
cdict["location"].at_object_receive(self, None)
|
||||
self.at_after_move(None)
|
||||
del self._createdict
|
||||
|
||||
self.basetype_posthook_setup()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue