mirror of
https://github.com/evennia/evennia.git
synced 2026-04-02 14:07:16 +02:00
22 lines
535 B
Python
22 lines
535 B
Python
|
|
"""
|
||
|
|
Default Typeclass for Comms.
|
||
|
|
|
||
|
|
See objects.objects for more information on Typeclassing.
|
||
|
|
"""
|
||
|
|
from src.typeclasses.typeclass import TypeClass
|
||
|
|
|
||
|
|
|
||
|
|
class Comm(TypeClass):
|
||
|
|
"""
|
||
|
|
This is the base class for all Comms. Inherit from this to create different
|
||
|
|
types of communication channels.
|
||
|
|
"""
|
||
|
|
def __init__(self, dbobj):
|
||
|
|
super(Comm, self).__init__(dbobj)
|
||
|
|
|
||
|
|
def format_message(self, msg):
|
||
|
|
"""
|
||
|
|
Takes a Msg (see models.Msg), and derives the output display for it on
|
||
|
|
the channel.
|
||
|
|
"""
|