Пример #1
0
        public void SendMessage(object SendTo, object Sender,
                                object Receiver, MessageType Type, string Key)
        {
            Message message = GetMessage(Type, Sender, Receiver, Key);

            RequestsManager.TrySendMessage(SendTo, message.ResultingMessage,
                                           (message.R ?? 255), (message.G ?? 255), (message.B ?? 255));
        }
Пример #2
0
 public void Annouce(object Player, bool Force = false)
 {
     if (!Force && !RepeatDecisionCommandMessage)
     {
         return;
     }
     RequestsManager.TrySendMessage(Player, AnnounceText.ResultingMessage, 255, 69, 0);
     RequestsManager.TrySendMessage(Player, DecisionCommandMessage.ResultingMessage, 255, 69, 0);
 }
Пример #3
0
 public void SendMessage(object Sender, object Receiver, Decision Decision,
                         string Key, string AnotherPlayerName = null)
 {
     foreach (var pair in GetMessages(Sender, Receiver, Decision, Key, AnotherPlayerName))
     {
         RequestsManager.TrySendMessage(pair.Key, pair.Value.ResultingMessage,
                                        (pair.Value.R ?? 255), (pair.Value.G ?? 255), (pair.Value.B ?? 255));
     }
 }