diff --git a/cli/a2s/main.go b/cli/a2s/main.go index a2c5ce9..3a889bc 100644 --- a/cli/a2s/main.go +++ b/cli/a2s/main.go @@ -7,12 +7,12 @@ import ( // CLI options type Options struct { - JSON bool `short:"j" long:"json"` // Output in JSON format - Raw bool `short:"r" long:"raw"` // Disable parse A2S_RULES values to types Timeout int `short:"t" long:"deadline-timeout" default:"3"` // Set timeout in seconds Buffer int `short:"b" long:"buffer-size" default:"8096"` // Set buffer size PingCount int `short:"c" long:"ping-count" default:"0"` // Set the number of ping requests to send PingPeriod int `short:"p" long:"ping-period" default:"1"` // Set the period between pings in seconds + JSON bool `short:"j" long:"json"` // Output in JSON format + Raw bool `short:"r" long:"raw"` // Disable parse A2S_RULES values to types Help bool `short:"h" long:"help"` // Show this help message Version bool `short:"v" long:"version"` // Show version and build info } diff --git a/cli/a3sb/main.go b/cli/a3sb/main.go index ee9e3c6..3b4e30e 100644 --- a/cli/a3sb/main.go +++ b/cli/a3sb/main.go @@ -7,12 +7,12 @@ import ( // CLI options type Options struct { - JSON bool `short:"j" long:"json"` // Output in JSON format AppID uint64 `short:"i" long:"app-id"` // AppID for more accurate results Timeout int `short:"t" long:"deadline-timeout" default:"3"` // Set timeout in seconds Buffer int `short:"b" long:"buffer-size" default:"8096"` // Set buffer size PingCount int `short:"c" long:"ping-count" default:"0"` // Set the number of ping requests to send PingPeriod int `short:"p" long:"ping-period" default:"1"` // Set the period between pings in seconds + JSON bool `short:"j" long:"json"` // Output in JSON format Help bool `short:"h" long:"help"` // Show this help message Version bool `short:"v" long:"version"` // Show version and build info } diff --git a/pkg/keywords/arma3.go b/pkg/keywords/arma3.go index 73c0ce7..a07c23b 100644 --- a/pkg/keywords/arma3.go +++ b/pkg/keywords/arma3.go @@ -18,16 +18,16 @@ type Arma3 struct { TimeLeft time.Duration `json:"time_left,omitempty"` // Time left of mission RequiredVersion uint32 `json:"required_version,omitempty"` // Required game version RequiredBuildNo uint32 `json:"required_buildno,omitempty"` // Required game build number - ServerState types.ServerState `json:"server_state,omitempty"` // State of server Language types.ServerLang `json:"language,omitempty"` // Server Language + Longitude int32 `json:"longitude,omitempty"` // Coordinates: Longitude + Latitude int32 `json:"latitude,omitempty"` // Coordinates: Latitude + ServerState types.ServerState `json:"server_state,omitempty"` // State of server BattlEye bool `json:"battleye,omitempty"` // Protected with BattlEye Difficulty byte `json:"difficulty,omitempty"` // Difficulty on server EqualModRequired bool `json:"equal_mod_required,omitempty"` // Require all mods equal server Lock bool `json:"lock,omitempty"` // Locked state VerifySignatures bool `json:"verify_signatures,omitempty"` // Verify signatures Dedicated bool `json:"dedicated,omitempty"` // Is dedicated server - Longitude int32 `json:"longitude,omitempty"` // Coordinates: Longitude - Latitude int32 `json:"latitude,omitempty"` // Coordinates: Latitude Param1 byte `json:"param_1,omitempty"` // First params Param2 byte `json:"param_2,omitempty"` // Second params AllowedFilePatching bool `json:"allowed_filepatching,omitempty"` // Enabled fle patching