mirror of
https://github.com/unanmed/HumanBreak.git
synced 2026-11-12 00:24:30 +08:00
refactor: 优化渲染缓存 & 添加每个元素的Transform
This commit is contained in:
1 parent
3f500e35ca
commit
fc05ddec9b
16 files changed
+317
-483
No files matched your search
@@ -10,6 +10,7 @@ import * as hero from './state/hero';
|
||||
import * as miscMechanism from './mechanism/misc';
|
||||
import * as study from './mechanism/study';
|
||||
import { registerPresetState } from './state/preset';
|
||||
import { ItemState } from './state/item';
|
||||
|
||||
// ----- 类注册
|
||||
Mota.register('class', 'DamageEnemy', damage.DamageEnemy);
|
||||
@@ -32,6 +33,9 @@ Mota.register('module', 'Mechanism', {
|
||||
BluePalace: miscMechanism.BluePalace,
|
||||
Study: study
|
||||
});
|
||||
Mota.register('module', 'State', {
|
||||
ItemState
|
||||
});
|
||||
|
||||
main.loading = loading;
|
||||
|
||||
|
||||
@@ -35,6 +35,7 @@ import type { Camera } from '@/core/render/camera';
|
||||
import type { Image, Text } from '@/core/render/preset/misc';
|
||||
import type { RenderItem } from '@/core/render/item';
|
||||
import type { RenderAdapter } from '@/core/render/adapter';
|
||||
import type { ItemState } from './state/item';
|
||||
|
||||
interface ClassInterface {
|
||||
// 渲染进程与游戏进程通用
|
||||
@@ -115,6 +116,9 @@ interface ModuleInterface {
|
||||
RenderItem: typeof RenderItem;
|
||||
RenderAdapter: typeof RenderAdapter;
|
||||
};
|
||||
State: {
|
||||
ItemState: typeof ItemState;
|
||||
};
|
||||
}
|
||||
|
||||
interface SystemInterfaceMap {
|
||||
|
||||
Reference in new issue
Block a user