public CommFacility(AppWorker appWorker, ConversationFactory factory) { myAppWorker = appWorker; this.factory = factory; factory.ManagingCommFacility = this; convDictionary = new ConversationDictionary(); udpCommunicator = new UdpCommunicator(); }
public void CreateConversation(Envelope e) { Conversation conversation; if (e.message.MessageType == 1) { conversation = new UAJoinGameConversation(e); ConversationDictionary.TryAdd(e.message.convId, conversation); } // TODO: Add the rest of the conversations; }