feat(accounts): add explicit local account registration

This commit is contained in:
N0VAN0M4LY committed 2026-11-29 15:30:34 +08:00
1 parent ef3648cb13
commit 2b1da24263
8 files changed
+242 -6

No files matched your search

+2
View File
@@ -4,6 +4,7 @@
*/
import type { Server } from 'node:net';
import { AccountStore } from './accounts/account-store.ts';
import { RegistrationService } from './accounts/registration-service.ts';
import { BattleEconomy } from './battle/battle-economy.ts';
import { BattleMatchmaker } from './battle/battle-matchmaker.ts';
import { BattleSessionStore } from './battle/battle-session-store.ts';
@@ -118,6 +119,7 @@ export async function startServer(options: ServerOptions): Promise<RunningServer
const router = new Router([
webUi,
new RegistrationService(accounts),
new StoreService(accounts, profiles, catalogues.store, tuning.redeemCodes, options.port),
new MarketplaceService(accounts, profiles, catalogues.inventory, notifyInventoryChanged, tuning.marketplace),
new InventoryService(accounts, profiles, catalogues.inventory),