1 Commits
Author SHA1 Message Date
esilva 31140b5df4 API fix. Copied something without looking twice and broke it. Fixed
Docstring fixes
2026-06-30 23:52:14 +01:00
+5 -7
View File
@@ -7,8 +7,6 @@ import (
"encoding/binary" "encoding/binary"
"fmt" "fmt"
"net" "net"
bngsdk "github.com/ESilva15/gobngsdk"
) )
const ( const (
@@ -271,23 +269,23 @@ func (sdk *BeamNGSDK) HasABSLight() bool {
// true if the car has a turbo // true if the car has a turbo
// false if it doesn't // false if it doesn't
func (sdk *BeamNGSDK) HasTurbo() bool { func (sdk *BeamNGSDK) HasTurbo() bool {
return sdk.Data.Flags&bngsdk.OG_TURBO != 0 return sdk.Data.Flags&OG_TURBO != 0
} }
// Prefers km: // PrefersKm returns:
// true if true // true if true
// false if false // false if false
// wow // wow
func (sdk *BeamNGSDK) PrefersKm() bool { func (sdk *BeamNGSDK) PrefersKm() bool {
return sdk.Data.Flags&bngsdk.OG_KM != 0 return sdk.Data.Flags&OG_KM != 0
} }
// Prefers BAR: // PrefersBAR returns:
// true if true // true if true
// false if false // false if false
// wow // wow
func (sdk *BeamNGSDK) PrefersBAR() bool { func (sdk *BeamNGSDK) PrefersBAR() bool {
return sdk.Data.Flags&bngsdk.OG_BAR != 0 return sdk.Data.Flags&OG_BAR != 0
} }
// Flags - functions to check if a given flag is ON [END] // Flags - functions to check if a given flag is ON [END]