private void RaiseMessage(Emotion emotion) { OnMessageRaised?.Invoke(this, new GameMessageEventArgs(emotion.Feeling, emotion.Message)); }
private void RaiseMessage(string message) { OnMessageRaised?.Invoke(this, new GameMessageEventArgs(message)); }
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)); }
private void RaiseMessage(Emote level, string message) { OnMessageRaised?.Invoke(this, new GameMessageEventArgs(level, message)); }
public void RaiseMessage(string message, bool addExtraNewLine = false) { OnMessageRaised?.Invoke(this, new GameMessageEventArgs(message, addExtraNewLine)); }
public void RaiseInfo(string message, bool addExtraNewLine = false) { Color color = Color.Blue; OnMessageRaised?.Invoke(this, new GameMessageEventArgs(message, color, addExtraNewLine)); }
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)); }
internal void RaiseMessage(string message) => OnMessageRaised?.Invoke(this, new GameMessageEventArgs(message));
private void RaiseMessage(string message) { // 如果有任何东西订阅OnMessageRaised,调用 OnMessageRaised?.Invoke(this, new GameMessageEventArgs(message)); }
private void RaiseMessage(string message) { OnMessageRaised?.Invoke(this, new ViewModelMessageArgs(message)); }
private void RaiseMessage(string message) { OnMessageRaised?.Invoke(this, new WiadomosciEventArgs(message)); }