mirror of
https://github.com/motajs/template.git
synced 2026-12-02 20:24:31 +08:00
refactor(03-18): move event registration assembly out of the barrel
- Add event/registrations.ts as the sole direct-construction assembler for the eight class-based registrations in stable map/hero/control order - Reduce event/index.ts and data-state/src/index.ts to export-only barrels that re-export the four public registration creators - Point CoreState at event/registrations and record the ownership and public-export boundaries in the event contract
This commit is contained in:
1 parent
cb716f699e
commit
0dc30aace8
7 files changed
+92
-58
No files matched your search
@@ -81,7 +81,7 @@ import { ILoadProgressTotal, LoadProgressTotal } from '@motajs/loader';
|
||||
import { isNil } from 'lodash-es';
|
||||
import { DirectionMapper, IDirectionMapper, logger } from '@motajs/common';
|
||||
import { DefaultHeroMoveTopImpl } from './hero';
|
||||
import { createEventBuiltinRegistrations } from './event';
|
||||
import { createEventBuiltinRegistrations } from './event/registrations';
|
||||
import { createReplayCommandItems, registerReplayCommandItems } from './replay';
|
||||
|
||||
export class CoreState implements ICoreState {
|
||||
|
||||
Reference in new issue
Block a user