mirror of
https://github.com/unanmed/HumanBreak.git
synced 2025-06-28 21:27:59 +08:00
14 lines
430 B
TypeScript
14 lines
430 B
TypeScript
import { gameKey } from '@motajs/system-action';
|
|
import { MAIN_WIDTH, MAIN_HEIGHT } from './shared';
|
|
import { saveSave, mainUIController, openStatistics } from './ui';
|
|
|
|
export function createAction() {
|
|
gameKey
|
|
.realize('save', () => {
|
|
saveSave(mainUIController, [0, 0, MAIN_WIDTH, MAIN_HEIGHT]);
|
|
})
|
|
.realize('statistics', () => {
|
|
openStatistics(mainUIController);
|
|
});
|
|
}
|