journal

package
v0.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 10, 2022 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const ApproachBodyEvent = approachbodyT("ApproachBody")
View Source
const ApproachSettlementEvent = approachsettlementT("ApproachSettlement")
View Source
const CargoEvent = cargoT("Cargo")
View Source
const CarrierJumpCancelledEvent = carrierjumpcancelledT("CarrierJumpCancelled")
View Source
const CarrierJumpEvent = carrierjumpT("CarrierJump")
View Source
const CarrierJumpRequestEvent = carrierjumprequestT("CarrierJumpRequest")
View Source
const CommanderEvent = commanderT("Commander")
View Source
const DockedEvent = dockedT("Docked")
View Source
const FSDJumpEvent = fsdjumpT("FSDJump")
View Source
const FSSDiscoveryScanEvent = fssdiscoveryscanT("FSSDiscoveryScan")
View Source
const FileheaderEvent = fileheaderT("Fileheader")
View Source
const LeaveBodyEvent = leavebodyT("LeaveBody")
View Source
const LoadGameEvent = loadgameT("LoadGame")
View Source
const LoadoutEvent = loadoutT("Loadout")
View Source
const LocationEvent = locationT("Location")
View Source
const MaterialCollectedEvent = materialcollectedT("MaterialCollected")
View Source
const MaterialsEvent = materialsT("Materials")
View Source
const ProgressEvent = progressT("Progress")
View Source
const RankEvent = rankT("Rank")
View Source
const ReputationEvent = reputationT("Reputation")
View Source
const ScanEvent = scanT("Scan")
View Source
const SellShipOnRebuyEvent = sellshiponrebuyT("SellShipOnRebuy")
View Source
const SetUserShipNameEvent = setusershipnameT("SetUserShipName")
View Source
const ShipLockerMaterialsEvent = shiplockermaterialsT("ShipLockerMaterials")
View Source
const ShipTargetedEvent = shiptargetedT("ShipTargeted")
View Source
const ShipyardBuyEvent = shipyardbuyT("ShipyardBuy")
View Source
const ShipyardNewEvent = shipyardnewT("ShipyardNew")
View Source
const ShipyardSellEvent = shipyardsellT("ShipyardSell")
View Source
const ShipyardSwapEvent = shipyardswapT("ShipyardSwap")
View Source
const ShutdownEvent = shutdownT("Shutdown")
View Source
const SupercruiseEntryEvent = supercruiseentryT("SupercruiseEntry")
View Source
const SupercruiseExitEvent = supercruiseexitT("SupercruiseExit")
View Source
const UndockedEvent = undockedT("Undocked")

Variables

This section is empty.

Functions

This section is empty.

Types

type ApproachBody

type ApproachBody struct {
	events.Common
	StarSystem    string
	SystemAddress uint64
	Body          string
	BodyID        int
}

func (*ApproachBody) EventType

func (_ *ApproachBody) EventType() events.Type

type ApproachSettlement

type ApproachSettlement struct {
	events.Common
	SystemAddress uint64
	Body          string
	BodyID        int
	Name          string
	Latitude      float32
	Longitude     float32
}

func (*ApproachSettlement) EventType

func (_ *ApproachSettlement) EventType() events.Type

type Cargo

type Cargo struct {
	events.Common
	Vessel    string
	Count     int16
	Inventory []CargoItem
}

func (*Cargo) EventType

func (_ *Cargo) EventType() events.Type

type CargoItem

type CargoItem struct {
	Name    string
	NameL7d string `json:"Name_Localised"`
	Count   int16
	Stolen  int16
}

type CarrierJump

type CarrierJump struct {
	events.Common
	StationName   string
	MarketID      int64 // Same as CarrierID
	StarSystem    string
	SystemAddress uint64
	StarPos       [3]float32
	Body          string
	BodyID        int
	BodyType      string
}

func (*CarrierJump) EventType

func (_ *CarrierJump) EventType() events.Type

type CarrierJumpCancelled

type CarrierJumpCancelled struct {
	events.Common
	CarrierID int64
}

func (*CarrierJumpCancelled) EventType

func (_ *CarrierJumpCancelled) EventType() events.Type

type CarrierJumpRequest

type CarrierJumpRequest struct {
	events.Common
	CarrierID     int64
	SystemName    string
	SystemAddress uint64
	Body          string
	BodyID        int
}

func (*CarrierJumpRequest) EventType

func (_ *CarrierJumpRequest) EventType() events.Type

type Commander

type Commander struct {
	events.Common
	FID  string
	Name string
}

func (*Commander) EventType

func (_ *Commander) EventType() events.Type

type Docked

type Docked struct {
	events.Common
	SystemAddress  uint64
	StarSystem     string
	MarketID       int64
	StationName    string
	StationType    string
	DistFromStarLS float64
}

func (*Docked) EventType

func (_ *Docked) EventType() events.Type

type FSDJump

type FSDJump struct {
	events.Common
	JumpDist float32
	Body     string
	BodyID   int
	SSysInfo
}

func (*FSDJump) EventType

func (_ *FSDJump) EventType() events.Type

type FSSDiscoveryScan

type FSSDiscoveryScan struct {
	events.Common
	SystemAddress uint64
	SystemName    string
	BodyCount     int
	NonBodyCount  int
}

func (*FSSDiscoveryScan) EventType

func (_ *FSSDiscoveryScan) EventType() events.Type

type Faction

type Faction struct {
	Name         string
	FactionState string
	Government   string
	Influence    float32
	Allegiance   string
	Happiness    string
	HappinessL7d string `json:"Happiness_Localised"`
	MyReputation float32
}

type Fileheader

type Fileheader struct {
	events.Common
	GameVersion string `json:"gameversion"`
	Odyssey     bool
	Language    string `json:"language"`
}

func (*Fileheader) EventType

func (_ *Fileheader) EventType() events.Type

type LeaveBody

type LeaveBody struct {
	events.Common
	StarSystem    string
	SystemAddress uint64
	Body          string
	BodyID        int
}

func (*LeaveBody) EventType

func (_ *LeaveBody) EventType() events.Type

type LoadGame

type LoadGame struct {
	events.Common
	FID       string
	Commander string
	Horizons  bool
	Odyssey   bool
	Ship      string
	ShipL7d   string `json:"Ship_Localised"`
	ShipID    int
	ShipName  string
	ShipIdent string
}

func (*LoadGame) EventType

func (_ *LoadGame) EventType() events.Type

type Loadout

type Loadout struct {
	events.Common
	Ship          string
	ShipID        int
	ShipName      string
	ShipIdent     string
	MaxJumpRange  float32
	CargoCapacity int
	Modules       []ShipModule
}

func (*Loadout) EventType

func (_ *Loadout) EventType() events.Type

func (*Loadout) Slot

func (l *Loadout) Slot(named string) *ShipModule

type Location

type Location struct {
	events.Common
	SSysInfo
	DistFromStarLS  float32
	StationType     string
	StationName     string
	MarketID        int64
	StationServices []string
	Docked          bool
	Factions        []*Faction
}

func (*Location) EventType

func (_ *Location) EventType() events.Type

type Material

type Material struct {
	Name    string
	NameL7d string `json:"Name_Localised,omitempty"`
	Count   int
}

type MaterialCollected added in v0.2.0

type MaterialCollected struct {
	events.Common
	Category string
	Name     string
	Count    int
}

func (*MaterialCollected) EventType added in v0.2.0

func (_ *MaterialCollected) EventType() events.Type

type Materials

type Materials struct {
	events.Common
	Raw          []Material
	Manufactured []Material
	Encoded      []Material
}

func (*Materials) EventType

func (_ *Materials) EventType() events.Type

type Progress

type Progress struct {
	events.Common
	Combat     int
	Trade      int
	Explore    int
	CQC        int
	Federation int
	Empire     int
}

func (*Progress) EventType

func (_ *Progress) EventType() events.Type

type Rank

type Rank struct {
	events.Common
	Combat     int
	Trade      int
	Explore    int
	CQC        int
	Federation int
	Empire     int
}

func (*Rank) EventType

func (_ *Rank) EventType() events.Type

type Reputation

type Reputation struct {
	events.Common
	Alliance    float32
	Empire      float32
	Federation  float32
	Independent float32
}

func (*Reputation) EventType

func (_ *Reputation) EventType() events.Type

type SLMaterial

type SLMaterial struct {
	Name    string
	NameL7d string `json:"Name_Localised"`
	OwnerID int
	Count   int
}

type SSysInfo

type SSysInfo struct {
	SystemAddress       uint64
	StarSystem          string
	StarPos             [3]float32
	SystemAllegiance    string
	SystemEconomy1      string `json:"SystemEconomy"`
	SystemEconomy1L7d   string `json:"SystemEconomy_Localised"`
	SystemEconomy2      string `json:"SystemSecondEconomy"`
	SystemEconomy2L7d   string `json:"SystemSecondEconomy_Localised"`
	SystemGovernment    string
	SystemGovernmentL7d string `json:"SystemGovernment_Localised"`
	SystemSecurity      string
	SystemSecurityL7d   string `json:"SystemSecurity_Localised"`
	Population          int64
}

type Scan

type Scan struct {
	events.Common
	SystemAddress         uint64
	StarSystem            string
	ScanType              string
	StarType              string
	PlanetClass           string
	BodyID                int
	BodyName              string
	Parents               []ggja.BareObj
	DistanceFromArrivalLS float64
	Landable              bool
	Materials             []ScanMaterial
	ReserveLevel          string
	Rings                 []ScanRing
	WasDiscovered         bool
	WasMapped             bool
}

func (*Scan) EventType

func (_ *Scan) EventType() events.Type

type ScanMaterial

type ScanMaterial struct {
	Name    string
	Percent float32
}

type ScanRing

type ScanRing struct {
	Name      string
	RingClass string
	MassMT    float64
	InnerRad  float64
	OuterRad  float64
}

type SellShipOnRebuy

type SellShipOnRebuy struct {
	events.Common
	SellShipID int
	ShipPrice  int64
}

func (*SellShipOnRebuy) EventType

func (_ *SellShipOnRebuy) EventType() events.Type

type SetUserShipName

type SetUserShipName struct {
	events.Common
	Ship         string
	ShipID       int
	UserShipId   string
	UserShipName string
}

func (*SetUserShipName) EventType

func (_ *SetUserShipName) EventType() events.Type

type ShipLockerMaterials

type ShipLockerMaterials struct {
	events.Common
	Items       []SLMaterial
	Components  []SLMaterial
	Consumables []SLMaterial
	Data        []SLMaterial
}

func (*ShipLockerMaterials) EventType

func (_ *ShipLockerMaterials) EventType() events.Type

type ShipModule

type ShipModule struct {
	Slot string
	Item string
	Bare ggja.BareObj
}

func (*ShipModule) UnmarshalJSON

func (m *ShipModule) UnmarshalJSON(data []byte) (err error)

type ShipTargeted

type ShipTargeted struct {
	events.Common
	Ship    string
	ShipL7d string `json:"Ship_Localised"`
}

func (*ShipTargeted) EventType

func (_ *ShipTargeted) EventType() events.Type

type ShipyardBuy

type ShipyardBuy struct {
	events.Common
	ShipType    string
	ShipPrice   int64
	StoreShipID int
	SellShipID  int
}

func (*ShipyardBuy) EventType

func (_ *ShipyardBuy) EventType() events.Type

type ShipyardNew

type ShipyardNew struct {
	events.Common
	ShipType    string
	ShipTypeL7d string `json:"ShipType_Localised"`
	NewShipID   int
}

func (*ShipyardNew) EventType

func (_ *ShipyardNew) EventType() events.Type

type ShipyardSell

type ShipyardSell struct {
	events.Common
	SellShipID int
	ShipType   string
	ShipPrice  int64
}

func (*ShipyardSell) EventType

func (_ *ShipyardSell) EventType() events.Type

type ShipyardSwap

type ShipyardSwap struct {
	events.Common
	MarketID    int64
	ShipType    string
	ShipTypeL7d string `json:"ShipType_Localised"`
	ShipID      int
	StoreShipID int
}

func (*ShipyardSwap) EventType

func (_ *ShipyardSwap) EventType() events.Type

type Shutdown

type Shutdown struct{ events.Common }

func (*Shutdown) EventType

func (_ *Shutdown) EventType() events.Type

type SupercruiseEntry

type SupercruiseEntry struct {
	events.Common
	StarSystem    string
	SystemAddress uint64
}

func (*SupercruiseEntry) EventType

func (_ *SupercruiseEntry) EventType() events.Type

type SupercruiseExit

type SupercruiseExit struct {
	events.Common
	StarSystem    string
	SystemAddress uint64
	Body          string
	BodyID        int
	BodyType      string
}

func (*SupercruiseExit) EventType

func (_ *SupercruiseExit) EventType() events.Type

type Undocked

type Undocked struct {
	events.Common
	StationName string
	StationType string
}

func (*Undocked) EventType

func (_ *Undocked) EventType() events.Type

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL