vantaMOO/typeclasses/objects.py

33 lines
943 B
Python

"""
Object
The Object is the "naked" base class for things in the game world.
Note that the default Character, Room and Exit does not inherit from
this Object, but from their respective default implementations in the
evennia library. If you want to use this class as a parent to change
the other types, you can do so by adding this as a multiple
inheritance.
"""
from lib.rpsystem import ContribRPObject
from evennia.contrib.game_systems.clothing import ContribClothing as Clothes
class ObjectParent:
"""
This is a mixin that can be used to override *all* entities inheriting at
some distance from DefaultObject (Objects, Exits, Characters and Rooms).
Just add any method that exists on `DefaultObject` to this class. If one
of the derived classes has itself defined that same hook already, that will
take precedence.
"""
# rpsystem
class Object(ContribRPObject):
pass
class Clothing(Clothes):
pass