2019-06-17 18:17:59 +02:00
|
|
|
import chat.response as response
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class ActorManager:
|
|
|
|
|
def __init__(self):
|
|
|
|
|
self.actors = dict()
|
|
|
|
|
|
|
|
|
|
def add_character(self, char_dict):
|
|
|
|
|
name = char_dict['name']
|
|
|
|
|
self.actors[name] = char_dict
|
|
|
|
|
|
2019-06-20 16:10:16 +02:00
|
|
|
def remove_character(self, name):
|
2019-06-17 18:17:59 +02:00
|
|
|
self.actors.pop(name)
|
|
|
|
|
|
2019-06-20 16:10:16 +02:00
|
|
|
def get_actors(self):
|
|
|
|
|
return self.actors.values()
|
2019-06-17 18:17:59 +02:00
|
|
|
|