/** Typed content of tuning/limits.jsonc: limits the offline version sets where the original server would. */ import type { TuningReader } from './tuning-reader.ts'; export interface LimitsTuning { readonly itemPiecesPerPurchase: number; readonly userLogsKept: number; readonly battleSessionsKept: number; } export function readLimitsTuning(file: TuningReader): LimitsTuning { return { itemPiecesPerPurchase: file.int('itemPiecesPerPurchase', { min: 1 }), userLogsKept: file.int('userLogsKept', { min: 1 }), battleSessionsKept: file.int('battleSessionsKept', { min: 1 }), }; }