-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #24 from tcavenezuela/feat/new-simulator-offsets
chore: add new misc offsets (simulator related)
- Loading branch information
Showing
4 changed files
with
59 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
'@fsuipc.js/api': patch | ||
--- | ||
|
||
add offset 0x3308: sim version currently in use. | ||
add offset 0x3d00: aircraft name currently in use. | ||
add exclusive X-Plane offset 0x6fff: flag to indicate if the fsuipc version is currently running in X-Plane (XPUIPC). | ||
add exclusive X-Plane offset 0x6f03: XPUIPC version string. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
import { Type } from 'fsuipc.js'; | ||
|
||
import { OffsetCategory } from '@shared/offset-category'; | ||
import { OffsetList } from '@shared/offset-list'; | ||
import { Offset } from '@shared/offset'; | ||
|
||
export const simulator: OffsetList = { | ||
fsVersion: new Offset({ | ||
value: 0x3308, | ||
name: 'fsVersion', | ||
category: OffsetCategory.MISC, | ||
description: 'sim version currently in use', | ||
type: Type.UInt16, | ||
permission: 'r' | ||
}), | ||
aircraftTitle: new Offset({ | ||
value: 0x3d00, | ||
name: 'aircraftTitle', | ||
category: OffsetCategory.MISC, | ||
description: 'aircraft name currently in use', | ||
type: Type.String, | ||
length: 256, | ||
permission: 'r' | ||
}), | ||
/* XPUIPC offsets */ | ||
xplaneFlag: new Offset({ | ||
value: 0x6fff, | ||
name: 'xplaneFlag', | ||
category: OffsetCategory.MISC, | ||
description: 'flag to indicate if the fsuipc version is currently running in X-Plane (XPUIPC)', | ||
type: Type.Byte, | ||
permission: 'r' | ||
}), | ||
xpuipcVersion: new Offset({ | ||
value: 0x6f03, | ||
name: 'xpuipcVersion', | ||
category: OffsetCategory.MISC, | ||
description: 'XPUIPC version string', | ||
type: Type.String, | ||
length: 256, | ||
permission: 'r' | ||
}) | ||
}; |