Files
youle_cocos/cocoscreator_projects/framework-tests/fixtures/remote-config.ts
T
joywayer 35216f75e7 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.
2026-09-09 03:13:18 +08:00

10 lines
566 B
TypeScript

import { BUILD_IDENTITY } from './build-identity.ts';
import { createRemoteConfig } from '../../YouleNexus/assets/framework/config/remote-config.ts';
import type { ChannelIdentity } from '../../YouleNexus/assets/framework/config/identity.ts';
/** Test-only memory configuration shared by typed RuntimeConfig fixtures. */
export function remoteFixture(identity: Readonly<ChannelIdentity> = BUILD_IDENTITY) {
const remoteConfig = createRemoteConfig({ player_server_tcp: 'fixture.example:3088' }, identity);
return { remoteConfig, rawConfig: remoteConfig.raw };
}