feat: integrate room framework and isolated subgame bundles
Complete room UI and protocol integration, move game definitions and resources behind bundle entries, publish authoritative version XML, and document single-game builds. Include all current resource changes and experiment artifacts.
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
import {GAME_DEFINITIONS as template} from '../../YouleNexus/assets/games/template/game-definition.ts';
|
||||
import {GAME_DEFINITIONS as erqiwang} from '../../YouleNexus/assets/games/erqiwang/game-definition.ts';
|
||||
import type {GameDefinition} from '../../YouleNexus/assets/framework/sdk/contracts/game-definition.ts';
|
||||
/** Test-only inventory, excluded from Cocos assets. */
|
||||
export const GAME_DEFINITIONS={...template,...erqiwang};
|
||||
export function getGameDefinition(key:string):GameDefinition {
|
||||
if(!Object.prototype.hasOwnProperty.call(GAME_DEFINITIONS,key))throw Error('Unknown game: '+key);
|
||||
return GAME_DEFINITIONS[key as keyof typeof GAME_DEFINITIONS];
|
||||
}
|
||||
Reference in New Issue
Block a user