mirror of
https://github.com/evennia/evennia.git
synced 2026-03-27 02:06:32 +01:00
Cleaned up typeclasses, removing a lot of extranenous and ineffective code from the setattr/getattr methods that are called most often.
This commit is contained in:
parent
f306c5a6a2
commit
7b2a4e4467
5 changed files with 186 additions and 192 deletions
|
|
@ -264,9 +264,10 @@ class PlayerDB(TypedObject):
|
|||
default_typeclass_path = "src.players.player.Player"
|
||||
|
||||
# this is required to properly handle attributes and typeclass loading
|
||||
attribute_model_path = "src.players.models"
|
||||
attribute_model_name = "PlayerAttribute"
|
||||
#attribute_model_path = "src.players.models"
|
||||
#attribute_model_name = "PlayerAttribute"
|
||||
typeclass_paths = settings.PLAYER_TYPECLASS_PATHS
|
||||
attribute_class = PlayerAttribute
|
||||
|
||||
# name property (wraps self.user.username)
|
||||
#@property
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue