mirror of
https://github.com/evennia/evennia.git
synced 2026-03-28 18:47:16 +01:00
First non-tested version of moving typeclasses to proxy models.
This commit is contained in:
parent
8e8d85a4fe
commit
236c0d17d3
9 changed files with 403 additions and 622 deletions
|
|
@ -16,7 +16,8 @@ they control by simply linking to a new object's user property.
|
|||
"""
|
||||
|
||||
from django.conf import settings
|
||||
from src.typeclasses.typeclass import TypeClass
|
||||
from src.objects.models import ObjectDB
|
||||
from src.typeclasses.models import TypeclassBase
|
||||
from src.commands import cmdset, command
|
||||
from src.utils.logger import log_depmsg
|
||||
|
||||
|
|
@ -31,11 +32,12 @@ _DA = object.__delattr__
|
|||
# Base class to inherit from.
|
||||
#
|
||||
|
||||
class Object(TypeClass):
|
||||
class Object(ObjectDB):
|
||||
"""
|
||||
This is the base class for all in-game objects. Inherit from this
|
||||
to create different types of objects in the game.
|
||||
"""
|
||||
__metaclass__ = TypeclassBase
|
||||
# __init__ is only defined here in order to present docstring to API.
|
||||
def __init__(self, dbobj):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue