MCPcopy Create free account
hub / github.com/MiniMax-AI/OpenRoom / defaultState

Function defaultState

apps/webuiapps/src/lib/modManager.ts:171–178  ·  view source on GitHub ↗
(config: ModConfig)

Source from the content-addressed store, hash-verified

169};
170
171function defaultState(config: ModConfig): ModState {
172 return {
173 current_stage_index: 0,
174 total_stage_count: config.stage_count,
175 is_finished: false,
176 completed_targets: [],
177 };
178}
179
180export const DEFAULT_MOD_COLLECTION: ModCollection = {
181 activeId: DEFAULT_MOD_ID,

Callers 8

modManager.tsFile · 0.85
migrateOldFormatFunction · 0.85
getActiveModEntryFunction · 0.85
addModFunction · 0.85
removeModFunction · 0.85
saveModConfigFunction · 0.85
constructorMethod · 0.85
resetMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected