feat: surface SCUM vehicle functional state
This commit is contained in:
@@ -83,6 +83,7 @@ type SCUMVehicle struct {
|
||||
DisplayName string
|
||||
Exists bool
|
||||
Locked bool
|
||||
Functional *bool
|
||||
X *float64
|
||||
Y *float64
|
||||
Z *float64
|
||||
@@ -178,6 +179,7 @@ type SCUMVehicleFact struct {
|
||||
DisplayName string
|
||||
Exists *bool
|
||||
Locked *bool
|
||||
Functional *bool
|
||||
LockedBySteamID string
|
||||
LockedAt time.Time
|
||||
ObservedAt time.Time
|
||||
@@ -223,6 +225,7 @@ func CopySCUMUserTrajectories(values []SCUMUserTrajectory) []SCUMUserTrajectory
|
||||
}
|
||||
|
||||
func CopySCUMVehicle(value SCUMVehicle) SCUMVehicle {
|
||||
value.Functional = copyBoolPtr(value.Functional)
|
||||
value.X = copyFloatPtr(value.X)
|
||||
value.Y = copyFloatPtr(value.Y)
|
||||
value.Z = copyFloatPtr(value.Z)
|
||||
@@ -293,6 +296,7 @@ func CopySCUMVehicleFacts(values []SCUMVehicleFact) []SCUMVehicleFact {
|
||||
out[i] = value
|
||||
out[i].Exists = copyBoolPtr(value.Exists)
|
||||
out[i].Locked = copyBoolPtr(value.Locked)
|
||||
out[i].Functional = copyBoolPtr(value.Functional)
|
||||
if value.Position != nil {
|
||||
position := *value.Position
|
||||
out[i].Position = &position
|
||||
|
||||
Reference in New Issue
Block a user