private SystemRecycledListener bootstrap() { var listener = new SystemRecycledListener(Messaging); Messaging.AddListener(listener); _launcher.Start(this); return(listener); }
public RemoteController(Project project, ISystemLauncher launcher) { _launcher = launcher; Project = project; Messaging = EventAggregator.Messaging; _socket = new SocketConnection(Project.Port, true, (s, json) => { Messaging.SendJson(json); }); Messaging.AddListener(this); Messaging.AddListener(launcher); }
public void AddListener(object listener) { Messaging.AddListener(listener); }
void SubscribeToEvents() { Messaging.AddListener(GameEvent.AsteroidFallen, OnAsteroidFallen, Messaging.Filter.All); Messaging.AddListener(GameEvent.AsteroidHittedByPlayer, OnAsteroidHittedByPlayer, Messaging.Filter.All); Messaging.AddListener(GameEvent.EndStage, OnEndStage, Messaging.Filter.All); }
void SubscribeToEvents() { Messaging.AddListener(GameEvent.StartStage, OnStartStage, Messaging.Filter.All); Messaging.AddListener(GameEvent.EndStage, OnEndStage, Messaging.Filter.All); }