evennia/src/comms/comms.py

22 lines
535 B
Python
Raw Normal View History

2013-09-28 22:23:30 -05:00
"""
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.
"""