예제 #1
0
 private void RaiseMessage(Emotion emotion)
 {
     OnMessageRaised?.Invoke(this, new GameMessageEventArgs(emotion.Feeling, emotion.Message));
 }
예제 #2
0
 private void RaiseMessage(string message)
 {
     OnMessageRaised?.Invoke(this, new GameMessageEventArgs(message));
 }
예제 #3
0
 private void RaiseMessage(string message)
 {
     //if there is anything subscribe to OnMessageRaised event, it will pass its instance and the new event with the message
     //so we pass the information we need along with the event
     OnMessageRaised?.Invoke(this, new GameMessageEventArgs(message));
 }
예제 #4
0
 private void RaiseMessage(Emote level, string message)
 {
     OnMessageRaised?.Invoke(this, new GameMessageEventArgs(level, message));
 }
예제 #5
0
 public void RaiseMessage(string message, bool addExtraNewLine = false)
 {
     OnMessageRaised?.Invoke(this, new GameMessageEventArgs(message, addExtraNewLine));
 }
예제 #6
0
        public void RaiseInfo(string message, bool addExtraNewLine = false)
        {
            Color color = Color.Blue;

            OnMessageRaised?.Invoke(this, new GameMessageEventArgs(message, color, addExtraNewLine));
        }
예제 #7
0
 private void RaiseMessage(string message)
 {
     //If there's anything subscribed to OnMessageRaised, call the function OnGameMessageReceived in
     //MainWindow.xaml.cs
     OnMessageRaised?.Invoke(this, new GameMessageEventArgs(message));
 }
예제 #8
0
 internal void RaiseMessage(string message)
 => OnMessageRaised?.Invoke(this, new GameMessageEventArgs(message));
예제 #9
0
 private void RaiseMessage(string message)
 {
     // 如果有任何东西订阅OnMessageRaised,调用
     OnMessageRaised?.Invoke(this, new GameMessageEventArgs(message));
 }
 private void RaiseMessage(string message)
 {
     OnMessageRaised?.Invoke(this, new ViewModelMessageArgs(message));
 }
예제 #11
0
 private void RaiseMessage(string message)
 {
     OnMessageRaised?.Invoke(this, new WiadomosciEventArgs(message));
 }