Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
31140b5df4 | ||
|
|
3857f5983f | ||
|
|
88f50218a4 |
@@ -233,7 +233,7 @@ func (sdk *BeamNGSDK) HasRightIndicatorLight() bool {
|
||||
return sdk.Data.DashLights&DL_SIGNAL_R != 0
|
||||
}
|
||||
|
||||
// AnyIndicator returns:
|
||||
// HasAnyIndicatorLight returns:
|
||||
// true if its available
|
||||
// false if its unavailable
|
||||
func (sdk *BeamNGSDK) HasAnyIndicatorLight() bool {
|
||||
@@ -262,3 +262,30 @@ func (sdk *BeamNGSDK) HasABSLight() bool {
|
||||
}
|
||||
|
||||
// DashLights - functions to check if a given dash light is provided [END]
|
||||
|
||||
// Flags - functions to check if a given flag is ON [START]
|
||||
|
||||
// HasTurbo returns:
|
||||
// true if the car has a turbo
|
||||
// false if it doesn't
|
||||
func (sdk *BeamNGSDK) HasTurbo() bool {
|
||||
return sdk.Data.Flags&OG_TURBO != 0
|
||||
}
|
||||
|
||||
// PrefersKm returns:
|
||||
// true if true
|
||||
// false if false
|
||||
// wow
|
||||
func (sdk *BeamNGSDK) PrefersKm() bool {
|
||||
return sdk.Data.Flags&OG_KM != 0
|
||||
}
|
||||
|
||||
// PrefersBAR returns:
|
||||
// true if true
|
||||
// false if false
|
||||
// wow
|
||||
func (sdk *BeamNGSDK) PrefersBAR() bool {
|
||||
return sdk.Data.Flags&OG_BAR != 0
|
||||
}
|
||||
|
||||
// Flags - functions to check if a given flag is ON [END]
|
||||
|
||||
Reference in New Issue
Block a user