mirror of
https://github.com/motajs/template.git
synced 2026-11-21 20:44:30 +08:00
refactor: 插件系统结构
This commit is contained in:
1 parent
3cc97e5ed3
commit
e6f4346924
30 files changed
+260
-169
No files matched your search
@@ -16,7 +16,7 @@ import { initializeHooks } from './hook';
|
||||
|
||||
export class MainDataPlugin implements IDataMainPlugin {
|
||||
readonly id: string = 'main-data-plugin';
|
||||
readonly dependencies: string[] = [];
|
||||
readonly dataDeps: string[] = [];
|
||||
|
||||
weak!: ICombatWeakHandler;
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ import { ShopSystem } from './system';
|
||||
|
||||
export class DataShopPlugin implements IShopPlugin {
|
||||
id: string = 'data-shop-plugin';
|
||||
dependencies: string[] = [];
|
||||
dataDeps: string[] = [];
|
||||
|
||||
shop!: IShopSystem;
|
||||
manager!: IShopManager;
|
||||
|
||||
Reference in new issue
Block a user