diff --git a/engine/types.go b/engine/types.go index 447ef0d..c2ae4c0 100644 --- a/engine/types.go +++ b/engine/types.go @@ -143,6 +143,7 @@ type Config struct { SpawnCost int `json:"spawn_cost"` // energy cost to spawn a bot EnergyInterval int `json:"energy_interval"` // turns between energy spawns CoresPerPlayer int `json:"cores_per_player"` // starting cores per player + MapID string `json:"map_id,omitempty"` SeasonID string `json:"season_id,omitempty"` RulesVersion string `json:"rules_version,omitempty"` } diff --git a/web/src/pages/replay.ts b/web/src/pages/replay.ts index 5790b7d..e63bef9 100644 --- a/web/src/pages/replay.ts +++ b/web/src/pages/replay.ts @@ -1,6 +1,6 @@ // Standalone replay viewer page - lazy loaded from app.ts import type { Replay, GameEvent, DebugInfo, Position, ViewMode } from '../types'; -import { fetchCommentary } from '../api-types'; +import { fetchCommentary, submitMapVote, fetchMapVotes } from '../api-types'; import { AnnotationOverlay, createAnnotationForm, @@ -233,6 +233,41 @@ function initReplayViewerWithClass(ReplayViewerClass: any, initialUrl?: string): +
+ + +