Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cargo ¶
type Cargo struct {
Event
Vessel string `json:"Vessel"`
Count int `json:"Count"`
Inventory []CargoItem `json:"Inventory"`
}
Cargo Cargo
type CargoItem ¶
type CargoItem struct {
MissionID int `json:"MissionID,omitempty"`
LocalizedValue
Stolen int `json:"Stolen"`
}
CargoItem represents a type of Commodity in Cargo
type ClearSavedGame ¶
ClearSavedGame ClearSavedGame
type FileHeader ¶
type FileHeader struct {
Event
Part int `json:"part"`
Language string `json:"language"`
Odyssey bool `json:"Odyssey,omitempty"`
GameVersion string `json:"gameversion"`
Build string `json:"build"`
}
FileHeader fileheader
type GenericEvent ¶
GenericEvent is a generic event for all unimplemented Events
func (*GenericEvent) UnmarshalJSON ¶
func (e *GenericEvent) UnmarshalJSON(bs []byte) (err error)
UnmarshalJSON unmarshalls a journal event into a GenericEvent, putting Event-specific fields into KeyValue
type LoadGame ¶
type LoadGame struct {
Event
FID string `json:"FID"`
Commander string `json:"Commander"`
Horizons bool `json:"Horizons"`
Ship string `json:"Ship"`
ShipLocalised string `json:"Ship_Localised"`
ShipID int `json:"ShipID"`
ShipName string `json:"ShipName"`
ShipIdent string `json:"ShipIdent"`
FuelLevel float64 `json:"FuelLevel"`
FuelCapacity float64 `json:"FuelCapacity"`
GameMode string `json:"GameMode"`
Group string `json:"Group"`
Credits Cost `json:"Credits"`
Loan Cost `json:"Loan"`
}
LoadGame LoadGame
type Loadout ¶
type Loadout struct {
Event
Ship string `json:"Ship"`
ShipID int `json:"ShipID"`
ShipName string `json:"ShipName"`
ShipIdent string `json:"ShipIdent"`
HullValue Cost `json:"HullValue"`
ModulesValue Cost `json:"ModulesValue"`
HullHealth float64 `json:"HullHealth"`
UnladenMass float64 `json:"UnladenMass"`
CargoCapacity int `json:"CargoCapacity"`
MaxJumpRange float64 `json:"MaxJumpRange"`
FuelCapacity struct {
Main float64 `json:"Main"`
Reserve float64 `json:"Reserve"`
} `json:"FuelCapacity"`
Rebuy Cost `json:"Rebuy"`
Modules []struct {
Slot string `json:"Slot"`
Item string `json:"Item"`
On bool `json:"On"`
Priority int `json:"Priority"`
Health float64 `json:"Health"`
Value Cost `json:"Value,omitempty"`
AmmoInClip int `json:"AmmoInClip,omitempty"`
AmmoInHopper int `json:"AmmoInHopper,omitempty"`
Engineering struct {
BlueprintName string `json:"BlueprintName"`
Level int `json:"Level"`
Quality float64 `json:"Quality"`
EngineerID int `json:"EngineerID"`
BlueprintID int `json:"blueprintID"`
Engineer string `json:"Engineer"`
ExperimentalEffect string `json:"ExperimentalEffect,omitempty"`
Modifiers []struct {
Label string `json:"Label"`
Value float64 `json:"Value,omitempty"`
OriginalValue float64 `json:"OriginalValue"`
LessIsGood int `json:"LessIsGood,omitempty"`
} `json:"Modifiers"`
} `json:"Engineering,omitempty"`
} `json:"Modules"`
}
Loadout Loadout
type LocalizedValue ¶
type LocalizedValue struct {
Name string `json:"Name"`
NameLocalised string `json:"Name_Localised,omitempty"`
Count int `json:"Count"`
}
LocalizedValue represents a Value with Localization in a Journal Event
type Materials ¶
type Materials struct {
Event
Raw []LocalizedValue `json:"Raw"`
Manufactured []LocalizedValue `json:"Manufactured"`
Encoded []LocalizedValue `json:"Encoded"`
}
Materials Materials
type MissionData ¶
type MissionData struct {
MissionID int `json:"MissionID"`
Name string `json:"Name"`
PassengerMission bool `json:"PassengerMission"`
Expires int `json:"Expires"`
}
MissionData is the Data of a Mission in a Journal Event
type Missions ¶
type Missions struct {
Event
Active []MissionData `json:"Active"`
Failed []MissionData `json:"Failed"`
Complete []MissionData `json:"Complete"`
}
Missions Missions
type NewCommander ¶
type NewCommander struct {
Event
Name string `json:"Name"`
FID string `json:"FID"`
Package string `json:"Package"`
}
NewCommander NewCommander
type Statistics ¶
type Statistics struct {
Event
BankAccount struct {
CurrentWealth Cost `json:"Current_Wealth"`
SpentOnShips Cost `json:"Spent_On_Ships"`
SpentOnOutfitting Cost `json:"Spent_On_Outfitting"`
SpentOnRepairs Cost `json:"Spent_On_Repairs"`
SpentOnFuel Cost `json:"Spent_On_Fuel"`
SpentOnAmmoConsumables Cost `json:"Spent_On_Ammo_Consumables"`
InsuranceClaims int `json:"Insurance_Claims"`
SpentOnInsurance Cost `json:"Spent_On_Insurance"`
OwnedShipCount int `json:"Owned_Ship_Count"`
} `json:"Bank_Account"`
Combat struct {
BountiesClaimed int `json:"Bounties_Claimed"`
BountyHuntingProfit int `json:"Bounty_Hunting_Profit"`
CombatBonds int `json:"Combat_Bonds"`
CombatBondProfits int `json:"Combat_Bond_Profits"`
Assassinations int `json:"Assassinations"`
AssassinationProfits int `json:"Assassination_Profits"`
HighestSingleReward int `json:"Highest_Single_Reward"`
SkimmersKilled int `json:"Skimmers_Killed"`
} `json:"Combat"`
Crime struct {
Notoriety int `json:"Notoriety"`
Fines int `json:"Fines"`
TotalFines Cost `json:"Total_Fines"`
BountiesReceived int `json:"Bounties_Received"`
TotalBounties Cost `json:"Total_Bounties"`
HighestBounty Cost `json:"Highest_Bounty"`
} `json:"Crime"`
Smuggling struct {
BlackMarketsTradedWith int `json:"Black_Markets_Traded_With"`
BlackMarketsProfits Cost `json:"Black_Markets_Profits"`
ResourcesSmuggled int `json:"Resources_Smuggled"`
AverageProfit Cost `json:"Average_Profit"`
HighestSingleTransaction Cost `json:"Highest_Single_Transaction"`
} `json:"Smuggling"`
Trading struct {
MarketsTradedWith int `json:"Markets_Traded_With"`
MarketProfits Cost `json:"Market_Profits"`
ResourcesTraded int `json:"Resources_Traded"`
AverageProfit Cost `json:"Average_Profit"`
HighestSingleTransaction Cost `json:"Highest_Single_Transaction"`
} `json:"Trading"`
Mining struct {
MiningProfits Cost `json:"Mining_Profits"`
QuantityMined int `json:"Quantity_Mined"`
MaterialsCollected int `json:"Materials_Collected"`
} `json:"Mining"`
Exploration struct {
SystemsVisited int `json:"Systems_Visited"`
ExplorationProfits Cost `json:"Exploration_Profits"`
PlanetsScannedToLevel2 int `json:"Planets_Scanned_To_Level_2"`
PlanetsScannedToLevel3 int `json:"Planets_Scanned_To_Level_3"`
EfficientScans int `json:"Efficient_Scans"`
HighestPayout Cost `json:"Highest_Payout"`
TotalHyperspaceDistance int `json:"Total_Hyperspace_Distance"`
TotalHyperspaceJumps int `json:"Total_Hyperspace_Jumps"`
GreatestDistanceFromStart float64 `json:"Greatest_Distance_From_Start"`
TimePlayed int `json:"Time_Played"`
} `json:"Exploration"`
Passengers struct {
PassengersMissionsAccepted int `json:"Passengers_Missions_Accepted"`
PassengersMissionsDisgruntled int `json:"Passengers_Missions_Disgruntled"`
PassengersMissionsBulk int `json:"Passengers_Missions_Bulk"`
PassengersMissionsVIP int `json:"Passengers_Missions_VIP"`
PassengersMissionsDelivered int `json:"Passengers_Missions_Delivered"`
PassengersMissionsEjected int `json:"Passengers_Missions_Ejected"`
} `json:"Passengers"`
SearchAndRescue struct {
SearchRescueTraded int `json:"SearchRescue_Traded"`
SearchRescueProfit Cost `json:"SearchRescue_Profit"`
SearchRescueCount int `json:"SearchRescue_Count"`
} `json:"Search_And_Rescue"`
Crafting struct {
CountOfUsedEngineers int `json:"Count_Of_Used_Engineers"`
RecipesGenerated int `json:"Recipes_Generated"`
RecipesGeneratedRank1 int `json:"Recipes_Generated_Rank_1"`
RecipesGeneratedRank2 int `json:"Recipes_Generated_Rank_2"`
RecipesGeneratedRank3 int `json:"Recipes_Generated_Rank_3"`
RecipesGeneratedRank4 int `json:"Recipes_Generated_Rank_4"`
RecipesGeneratedRank5 int `json:"Recipes_Generated_Rank_5"`
RecipesApplied int `json:"Recipes_Applied"`
RecipesAppliedRank1 int `json:"Recipes_Applied_Rank_1"`
RecipesAppliedRank2 int `json:"Recipes_Applied_Rank_2"`
RecipesAppliedRank3 int `json:"Recipes_Applied_Rank_3"`
RecipesAppliedRank4 int `json:"Recipes_Applied_Rank_4"`
RecipesAppliedRank5 int `json:"Recipes_Applied_Rank_5"`
SpentOnCrafting Cost `json:"Spent_On_Crafting"`
RecipesAppliedOnPreviouslyModifiedModules int `json:"Recipes_Applied_On_Previously_Modified_Modules"`
} `json:"Crafting"`
Crew struct {
NpcCrewTotalWages Cost `json:"NpcCrew_TotalWages"`
NpcCrewHired int `json:"NpcCrew_Hired"`
NpcCrewFired int `json:"NpcCrew_Fired"`
NpcCrewDied int `json:"NpcCrew_Died"`
} `json:"Crew"`
Multicrew struct {
MulticrewTimeTotal int `json:"Multicrew_Time_Total"`
MulticrewGunnerTimeTotal int `json:"Multicrew_Gunner_Time_Total"`
MulticrewFighterTimeTotal int `json:"Multicrew_Fighter_Time_Total"`
MulticrewCreditsTotal Cost `json:"Multicrew_Credits_Total"`
MulticrewFinesTotal Cost `json:"Multicrew_Fines_Total"`
} `json:"Multicrew"`
MaterialTraderStats struct {
TradesCompleted int `json:"Trades_Completed"`
MaterialsTraded int `json:"Materials_Traded"`
} `json:"Material_Trader_Stats"`
CQC struct {
CQCCreditsEarned Cost `json:"CQC_Credits_Earned"`
CQCTimePlayed int `json:"CQC_Time_Played"`
CQCKD float64 `json:"CQC_KD"`
CQCKills int `json:"CQC_Kills"`
CQCWL float64 `json:"CQC_WL"`
} `json:"CQC"`
}
Statistics Statistics
Click to show internal directories.
Click to hide internal directories.