feat: surface SCUM vehicle functional state

This commit is contained in:
npc0-hue
2026-09-18 16:56:36 +08:00
parent 156392df1e
commit 60d479db71
13 changed files with 62 additions and 17 deletions
+4
View File
@@ -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