Fix bug in parentobject class inheritance. Update objects docs
This commit is contained in:
parent
919bf1a907
commit
efb5682449
7 changed files with 81 additions and 20 deletions
|
|
@ -11,7 +11,7 @@ from evennia.objects.objects import DefaultCharacter
|
|||
from .objects import ObjectParent
|
||||
|
||||
|
||||
class Character(DefaultCharacter, ObjectParent):
|
||||
class Character(ObjectParent, DefaultCharacter):
|
||||
"""
|
||||
The Character defaults to reimplementing some of base Object's hook methods with the
|
||||
following functionality:
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ from evennia.objects.objects import DefaultExit
|
|||
from .objects import ObjectParent
|
||||
|
||||
|
||||
class Exit(DefaultExit, ObjectParent):
|
||||
class Exit(ObjectParent, DefaultExit):
|
||||
"""
|
||||
Exits are connectors between rooms. Exits are normal Objects except
|
||||
they defines the `destination` property. It also does work in the
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ class ObjectParent:
|
|||
"""
|
||||
|
||||
|
||||
class Object(DefaultObject, ObjectParent):
|
||||
class Object(ObjectParent, DefaultObject):
|
||||
"""
|
||||
This is the root typeclass object, implementing an in-game Evennia
|
||||
game object, such as having a location, being able to be
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ from evennia.objects.objects import DefaultRoom
|
|||
from .objects import ObjectParent
|
||||
|
||||
|
||||
class Room(DefaultRoom, ObjectParent):
|
||||
class Room(ObjectParent, DefaultRoom):
|
||||
"""
|
||||
Rooms are like any Object, except their location is None
|
||||
(which is default). They also use basetype_setup() to
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue