feat: add gift zone city team and mashup mode

This commit is contained in:
manpengan
2026-03-29 00:49:03 +08:00
parent 5c2b4f40f9
commit 92bf1f5070
12 changed files with 862 additions and 60 deletions

View File

@@ -65,6 +65,7 @@ export function createGameSession({
seed,
contentSystem,
boardState,
restartFactory,
}) {
const resolvedBoard = boardState ? cloneBoardState(boardState) : generateBoard({ cityId, levelId, seed, contentSystem })
const state = {
@@ -160,6 +161,10 @@ export function createGameSession({
}
function restart(nextSeed = seed ?? resolvedBoard.seed) {
if (restartFactory) {
return restartFactory(nextSeed)
}
const freshSession = createGameSession({
cityId,
levelId,