diff --git a/dissect/header.go b/dissect/header.go index 072a729..afdc15c 100644 --- a/dissect/header.go +++ b/dissect/header.go @@ -75,9 +75,9 @@ type Operator uint64 const ( QuickMatch MatchType = 1 Ranked MatchType = 2 - CustomGameLocal MatchType = 7 - CustomGameOnline MatchType = 8 - Standard MatchType = 12 + CustomGameLocal MatchType = 3 + CustomGameOnline MatchType = 4 + Standard MatchType = 8 Bomb GameMode = 327933806 SecureArea GameMode = 1983085217 diff --git a/dissect/matchtype_string.go b/dissect/matchtype_string.go index dbadfd2..b776e9d 100644 --- a/dissect/matchtype_string.go +++ b/dissect/matchtype_string.go @@ -10,32 +10,27 @@ func _() { var x [1]struct{} _ = x[QuickMatch-1] _ = x[Ranked-2] - _ = x[CustomGameLocal-7] - _ = x[CustomGameOnline-8] - _ = x[Standard-12] + _ = x[CustomGameLocal-3] + _ = x[CustomGameOnline-4] + _ = x[Standard-8] } const ( - _MatchType_name_0 = "QuickMatchRanked" - _MatchType_name_1 = "CustomGameLocalCustomGameOnline" - _MatchType_name_2 = "Standard" + _MatchType_name_0 = "QuickMatchRankedCustomGameLocalCustomGameOnline" + _MatchType_name_1 = "Standard" ) var ( - _MatchType_index_0 = [...]uint8{0, 10, 16} - _MatchType_index_1 = [...]uint8{0, 15, 31} + _MatchType_index_0 = [...]uint8{0, 10, 16, 31, 47} ) func (i MatchType) String() string { switch { - case 1 <= i && i <= 2: + case 1 <= i && i <= 4: i -= 1 return _MatchType_name_0[_MatchType_index_0[i]:_MatchType_index_0[i+1]] - case 7 <= i && i <= 8: - i -= 7 - return _MatchType_name_1[_MatchType_index_1[i]:_MatchType_index_1[i+1]] - case i == 12: - return _MatchType_name_2 + case i == 8: + return _MatchType_name_1 default: return "MatchType(" + strconv.FormatInt(int64(i), 10) + ")" }