C# Класс Eddi.EDDI

Eddi is the controller for all EDDI operations. Its job is to retain the state of the objects such as the commander, the current system, etc. and keep them up-to-date with changes that occur. It also passes on messages to responders to handle as required.
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
monitors List
responders List

Открытые методы

Метод Описание
Reload ( ) : void

Reload all monitors and responders

Reload ( string name ) : void

Reload a specific monitor or responder

Start ( ) : void
Stop ( ) : void
eventHandler ( Event journalEvent ) : void
refreshProfile ( ) : void

Obtain information from the companion API and use it to refresh our own data

Приватные методы

Метод Описание
EDDI ( ) : EddiCompanionAppService
OnEvent ( Event @event ) : void
SetShip ( Ship ship ) : void
eventCommanderContinuedEvent ( CommanderContinuedEvent theEvent ) : bool
eventDocked ( DockedEvent theEvent ) : bool
eventEnteredNormalSpace ( EnteredNormalSpaceEvent theEvent ) : bool
eventEnteredSupercruise ( EnteredSupercruiseEvent theEvent ) : bool
eventJumped ( JumpedEvent theEvent ) : bool
eventJumping ( JumpingEvent theEvent ) : bool
eventLocation ( LocationEvent theEvent ) : bool
eventShipDeliveredEvent ( ShipDeliveredEvent theEvent ) : bool
eventShipSoldEvent ( ShipSoldEvent theEvent ) : bool
eventShipSwappedEvent ( ShipSwappedEvent theEvent ) : bool
eventUndocked ( UndockedEvent theEvent ) : bool
findMonitors ( ) : List

Find all monitors

findResponders ( ) : List

Find all responders

keepAlive ( string name, System.Action start ) : void

Keep a thread alive, restarting it as required

setCommanderTitle ( ) : void
setSystemDistanceFromHome ( StarSystem system ) : void
updateCurrentSystem ( string name ) : void

Описание методов

Reload() публичный Метод

Reload all monitors and responders
public Reload ( ) : void
Результат void

Reload() публичный Метод

Reload a specific monitor or responder
public Reload ( string name ) : void
name string
Результат void

Start() публичный Метод

public Start ( ) : void
Результат void

Stop() публичный Метод

public Stop ( ) : void
Результат void

eventHandler() публичный Метод

public eventHandler ( Event journalEvent ) : void
journalEvent Event
Результат void

refreshProfile() публичный Метод

Obtain information from the companion API and use it to refresh our own data
public refreshProfile ( ) : void
Результат void

Описание свойств

monitors публичное свойство

public List monitors
Результат List

responders публичное свойство

public List responders
Результат List