private void OnMessage(GameEventMessage message) { if (ListenForAllGameEvents || GameEvent.Equals(message.EventName)) { InvokeEvent(message); } }
private void InvokeEvent(GameEventMessage message) { if (!message.HasGameEvent) { return; } if (Event == null) { return; } Event.Invoke(message.EventName); }
private static void SendEvent(GameEventMessage gameEventMessage) { Send(gameEventMessage.EventName, gameEventMessage); }
private void OnMessage(GameEventMessage message) { InvokeEvent(message); }