Files
core2026/app/game-engine/src/turn/tournamentAutoStart.ts
T

13 lines
601 B
TypeScript

import { createTournamentAutoStartHandler as createCommonTournamentAutoStartHandler } from '@sammo-ts/common';
import type { RedisConnector } from '@sammo-ts/infra';
import type { TurnCalendarHandler } from './inMemoryWorld.js';
export const createTournamentAutoStartHandler = (options: {
profileName: string;
getRedisClient: () => RedisConnector['client'] | null | undefined;
getWorldConfig: () => Record<string, unknown> | null | undefined;
getTickSeconds: () => number | null | undefined;
}): TurnCalendarHandler => {
return createCommonTournamentAutoStartHandler(options);
};