//---msg readrs

        void FightQueueMessage_Reader(ReceivedMsg receivedMsg, FightQueueMessage msg)
        {
            // TODO проверку чтобы 2 раза в очередь нельзя было вставать
            UserFightQueue.Entry entry = new UserFightQueue.Entry(_controllersFactory, msg.KnifeName, msg.KnifeMode);
            _userFightQueue.Enqueue(entry);
        }
Exemple #2
0
 public void GoToFightQueue()
 {
     UserFightQueue.Entry entry = new UserFightQueue.Entry(_testBotControllerFactory, "knife00", KnifeMode.Medium);
     _userFightQueue.Enqueue(entry);
 }