feat: 自适应支线插入引擎(WIP:scoring/branching 抽取、挂点重定向、10 条支线 JSON、决策落库)
This commit is contained in:
+2
-1
@@ -1,6 +1,7 @@
|
||||
import { useEffect, useMemo, useState } from 'react';
|
||||
import './App.css';
|
||||
import { StoryEngine } from './engine/engine';
|
||||
import { BRANCHES } from './engine/branches';
|
||||
import { LocalStorageEventStore } from './engine/eventStore';
|
||||
import { LocalStorageProgressStore } from './engine/progress';
|
||||
import { SqliteEventStore, isTauriRuntime } from './engine/sqliteEventStore';
|
||||
@@ -25,7 +26,7 @@ export default function App() {
|
||||
const store = isTauriRuntime() ? new SqliteEventStore() : new LocalStorageEventStore();
|
||||
const jev = getJevClient();
|
||||
const progress = new LocalStorageProgressStore();
|
||||
return { engine: new StoryEngine(chapters, store, jev, undefined, progress), store, jev, progress };
|
||||
return { engine: new StoryEngine(chapters, store, jev, undefined, progress, BRANCHES), store, jev, progress };
|
||||
}, []);
|
||||
|
||||
useEffect(() => {
|
||||
|
||||
Reference in New Issue
Block a user