mirror of
https://github.com/evennia/evennia.git
synced 2026-03-26 01:36:32 +01:00
Add get_component_slot helper method
This commit is contained in:
parent
191be0365c
commit
47be47c009
1 changed files with 4 additions and 0 deletions
|
|
@ -173,3 +173,7 @@ class Component(metaclass=BaseComponent):
|
|||
@classmethod
|
||||
def get_fields(cls):
|
||||
return tuple(cls._fields.values())
|
||||
|
||||
@classmethod
|
||||
def get_component_slot(cls):
|
||||
return cls.slot or cls.name
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue