Removed at_before_traverse hook completely since it was not used and also makes no sense to use due to how exits works. Overload at_traverse if wanting to tweak how traversal happens. Resolves #902.
This commit is contained in:
parent
0ae1f9f171
commit
0bf05a8795
3 changed files with 9 additions and 20 deletions
|
|
@ -1159,21 +1159,6 @@ class DefaultObject(with_metaclass(TypeclassBase, ObjectDB)):
|
|||
"""
|
||||
pass
|
||||
|
||||
def at_before_traverse(self, traversing_object):
|
||||
"""
|
||||
Called just before an object uses this object to traverse to
|
||||
another object (i.e. this object is a type of Exit)
|
||||
|
||||
Args:
|
||||
traversing_object (Object): The object traversing us.
|
||||
|
||||
Notes:
|
||||
The target destination should normally be available as
|
||||
`self.destination`.
|
||||
|
||||
"""
|
||||
pass
|
||||
|
||||
def at_traverse(self, traversing_object, target_location):
|
||||
"""
|
||||
This hook is responsible for handling the actual traversal,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue