mirror of
https://github.com/motajs/template.git
synced 2026-11-02 23:14:34 +08:00
refactor: 删除 legacy-plugin-data
This commit is contained in:
1 parent
7e4418362b
commit
10755475a4
21 files changed
+30
-1371
No files matched your search
@@ -163,7 +163,7 @@ export const ReplaySettings = defineComponent<MainSettingsProps>(props => {
|
||||
props.controller.closeAll();
|
||||
core.ui.closePanel();
|
||||
const route = core.status.route.slice();
|
||||
const flags = client.data.flags;
|
||||
const flags = client.flags;
|
||||
const seed = flags.getFieldValue<number>('__seed__');
|
||||
core.startGame(core.status.hard, seed, route);
|
||||
break;
|
||||
@@ -218,7 +218,7 @@ export const ReplaySettings = defineComponent<MainSettingsProps>(props => {
|
||||
break;
|
||||
}
|
||||
case ReplayChoice.Download: {
|
||||
const flags = client.data.flags;
|
||||
const flags = client.flags;
|
||||
const seed = flags.getFieldValue<number>('__seed__');
|
||||
core.download(
|
||||
core.firstData.name + '_' + core.formatDate2() + '.h5route',
|
||||
|
||||
@@ -1,40 +1,20 @@
|
||||
import { IRenderTreeRoot } from '@motajs/render';
|
||||
import { IMapExtensionManager, IMapRenderer } from './render/map';
|
||||
import { IBGMPlayer, IMotaAudioContext, ISoundPlayer } from '@motajs/audio';
|
||||
import {
|
||||
IAutotileProcessor,
|
||||
IMaterialManager,
|
||||
IMotaAssetsLoader,
|
||||
IClientBase
|
||||
} from '@user/client-base';
|
||||
import { IMotaAssetsLoader, IClientBase } from '@user/client-base';
|
||||
import { IExcitation, IExcitationDivider } from '@motajs/animate';
|
||||
|
||||
export interface IClientCore extends IClientBase {
|
||||
/** 渲染端加载对象 */
|
||||
readonly loader: IMotaAssetsLoader;
|
||||
|
||||
/** 素材管理器 */
|
||||
readonly materials: IMaterialManager;
|
||||
/** 自动元件处理器 */
|
||||
readonly autotile: IAutotileProcessor;
|
||||
|
||||
/** 用于渲染系统的 Raf 激励源 */
|
||||
readonly rafExcitation: IExcitation<number>;
|
||||
/** 用于渲染系统的激励源分频器 */
|
||||
readonly excitationDivider: IExcitationDivider<number>;
|
||||
/** 渲染画面的根元素 */
|
||||
readonly renderer: IRenderTreeRoot;
|
||||
|
||||
/** 主地图渲染器,主要用于渲染游戏画面中的地图 */
|
||||
readonly mainMapRenderer: IMapRenderer;
|
||||
/** 副地图渲染器,主要用于渲染缩略图、浏览地图等内容 */
|
||||
// readonly expandMapRenderer: IMapRenderer;
|
||||
/** 主地图渲染器的拓展管理对象 */
|
||||
readonly mainMapExtension: IMapExtensionManager;
|
||||
|
||||
/** 音频上下文 */
|
||||
readonly audioContext: IMotaAudioContext;
|
||||
/** 音效播放器 */
|
||||
readonly soundPlayer: ISoundPlayer<SoundIds>;
|
||||
/** BGM 播放器 */
|
||||
readonly bgmPlayer: IBGMPlayer<BgmIds>;
|
||||
}
|
||||
Reference in new issue
Block a user