feat: rng & commands impl & tests
This commit is contained in:
+7
-2
@@ -26,7 +26,7 @@ export const GameContext = createModel((root: Context) => {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
return {
|
||||
parts,
|
||||
regions,
|
||||
@@ -35,4 +35,9 @@ export const GameContext = createModel((root: Context) => {
|
||||
popContext,
|
||||
latestContext,
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
/** 创建游戏上下文实例 */
|
||||
export function createGameContext(root: Context = { type: 'game' }) {
|
||||
return new GameContext(root);
|
||||
}
|
||||
Reference in New Issue
Block a user