Skip to content

Commit

Permalink
Added some additional tracking
Browse files Browse the repository at this point in the history
  • Loading branch information
Strikeeaglechase committed Aug 28, 2024
1 parent 9a189fe commit 83d4f2b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ interface APIUserAircraft {

interface APIServerInfo {
onlineUsers: string[];
onlineUsersFull: APIUserAircraft[];
environment: RandomEnv;
missionId: string;
}
Expand Down Expand Up @@ -97,6 +98,7 @@ function parseAPIUserAircraft(apiUA: APIUserAircraft): UserAircraftInformation {
function parseAPIServerInfo(apiSI: APIServerInfo): CurrentServerInformation {
return {
onlineUsers: apiSI.onlineUsers,
onlineUsersFull: apiSI.onlineUsersFull.map(parseAPIUserAircraft),
environment: apiSI.environment,
missionId: apiSI.missionId
};
Expand Down
1 change: 1 addition & 0 deletions src/structures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,7 @@ export interface UserAircraftInformation {

export interface CurrentServerInformation {
onlineUsers: string[];
onlineUsersFull: UserAircraftInformation[];
environment: RandomEnv;
missionId: string;
}
Expand Down

0 comments on commit 83d4f2b

Please sign in to comment.