public NavigationModel(JournalEventService eventservice) { eventservice.Subscribe <LocationEvent>(LocationCallback); eventservice.Subscribe <FSDJumpEvent>(FSDJumpCallback); eventservice.Subscribe <StartJumpEvent>(FSDStartJumpCallback); eventservice.Subscribe <FSDTargetEvent>(FSDTargetCallback); }
public GameModel(JournalEventService eventservice) { MaxChatMessages = 50; eventservice.Subscribe <StatusEvent>(GameStatusCallback); eventservice.Subscribe <FileheaderEvent>(FileheaderCallback); eventservice.Subscribe <ReceiveTextEvent>(ReceiveTextCallback); }
public StarSystemModel(JournalEventService eventservice) { eventservice.Subscribe <FSDJumpEvent>(FSDJumpCallback); eventservice.Subscribe <FSSDiscoveryScanEvent>(FSSDiscoveryScanCallback); eventservice.Subscribe <FSSSignalDiscoveredEvent>(FSSSignalDiscoveryCallback); eventservice.Subscribe <FSSAllBodiesFoundEvent>(FSSAllBodiesFoundCallback); eventservice.Subscribe <ScanEvent>(FSSScanCallback); }
public MissionsModel(JournalEventService eventservice) { eventservice.Subscribe <MissionAbandonedEvent>(MissionAbandonedCallback); eventservice.Subscribe <MissionAcceptedEvent>(MissionAcceptedCallback); eventservice.Subscribe <MissionCompletedEvent>(MissionCompletedCallback); eventservice.Subscribe <MissionFailedEvent>(MissionFailedCallback); eventservice.Subscribe <MissionsEvent>(MissionsCallback); }
public StationModel(JournalEventService eventservice) { eventservice.Subscribe <LocationEvent>(LocationCallback); eventservice.Subscribe <DockedEvent>(DockedCallback); eventservice.Subscribe <UndockedEvent>(UndockedCallback); eventservice.Subscribe <DockingGrantedEvent>(DockingGrantedCallback); eventservice.Subscribe <DockingRequestedEvent>(DockingRequestedCallback); eventservice.Subscribe <DockingDeniedEvent>(DockingDeniedCallback); eventservice.Subscribe <DockingCancelledEvent>(DockingCancelledCallback); eventservice.Subscribe <DockingTimeoutEvent>(DockingTimeoutCallback); SetValue(() => DockingState, DockingStates.Undocked); SetValue(() => DockLandingPad, null); }
public StorageService() { eventService = ServiceController.GetService <JournalEventService>(); eventService.PreEventCall += EventService_PreEventCall; eventService.Subscribe <StatusEvent>(GameStatusCallback); Game = new GameModel(eventService); Commander = new CommanderModel(eventService); Navigation = new NavigationModel(eventService); StarSystem = new StarSystemModel(eventService); Ship = new ShipModel(eventService); Station = new StationModel(eventService); //Missions = new MissionsModel(eventService); }
public CommanderModel(JournalEventService eventservice) { eventservice.Subscribe <CommanderEvent>(CallbackCommanderEvent); eventservice.Subscribe <RankEvent>(CallbackRankEvent); eventservice.Subscribe <ProgressEvent>(CallbackProgressEvent); }