From abda827a9405a1fc0d1915b7c8a894bf7b72987b Mon Sep 17 00:00:00 2001 From: Quaternions Date: Tue, 8 Jul 2025 21:35:00 -0700 Subject: [PATCH 1/2] submissions: create extended map struct --- pkg/model/map.go | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 pkg/model/map.go diff --git a/pkg/model/map.go b/pkg/model/map.go new file mode 100644 index 0000000..9cd60a5 --- /dev/null +++ b/pkg/model/map.go @@ -0,0 +1,17 @@ +package model + +import "time" + +type Map struct { + ID int64 + DisplayName string + Creator string + GameID int32 + Date time.Time // Release date + CreatedAt time.Time + UpdatedAt time.Time + Submitter int64 // UserID of submitter + Thumbnail int64 // AssetID of thumbnail + AssetVersion int64 // Version number for LoadAssetVersion + LoadCount uint32 // How many times the map has been loaded +} -- 2.49.1 From bd698232b99336dbef270ccd9c4b58970e674f8c Mon Sep 17 00:00:00 2001 From: Quaternions Date: Tue, 8 Jul 2025 21:51:20 -0700 Subject: [PATCH 2/2] submissions: add Modes to map struct --- pkg/model/map.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/model/map.go b/pkg/model/map.go index 9cd60a5..314b678 100644 --- a/pkg/model/map.go +++ b/pkg/model/map.go @@ -14,4 +14,5 @@ type Map struct { Thumbnail int64 // AssetID of thumbnail AssetVersion int64 // Version number for LoadAssetVersion LoadCount uint32 // How many times the map has been loaded + Modes uint32 // Number of modes (always at least one) } -- 2.49.1