feat(config): unify startup mode and server selection
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { STARTUP_CONFIG } from '../../YouleNexus/assets/framework/config/profiles.ts';
|
||||
import { remoteFixture } from '../fixtures/remote-config.ts';
|
||||
import assert from 'node:assert/strict';
|
||||
import { readFileSync } from 'node:fs';
|
||||
@@ -11,7 +12,7 @@ import {
|
||||
} from '../../YouleNexus/assets/framework/protocol/contracts/index.ts';
|
||||
|
||||
const RUNTIME_CONFIG: RuntimeConfig = Object.freeze({
|
||||
mode: 'release',
|
||||
startupConfig: {...STARTUP_CONFIG,mode:'release' as const,useLocalServer:false}, mode: 'release',
|
||||
isDebugger: false,
|
||||
identity: Object.freeze({
|
||||
agentid: 'agent-from-config',
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import { STARTUP_CONFIG } from '../../YouleNexus/assets/framework/config/profiles.ts';
|
||||
import { remoteFixture } from '../fixtures/remote-config.ts';
|
||||
import assert from 'node:assert/strict';
|
||||
import { readFileSync } from 'node:fs';
|
||||
@@ -30,7 +31,7 @@ import {
|
||||
} from '../../YouleNexus/assets/framework/sdk/runtime/game-session-host.ts';
|
||||
|
||||
const RUNTIME_CONFIG: RuntimeConfig = Object.freeze({
|
||||
mode: 'release',
|
||||
startupConfig: {...STARTUP_CONFIG,mode:'release' as const,useLocalServer:false}, mode: 'release',
|
||||
isDebugger: false,
|
||||
identity: Object.freeze({
|
||||
agentid: 17,
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import { STARTUP_CONFIG } from '../../YouleNexus/assets/framework/config/profiles.ts';
|
||||
import { remoteFixture } from '../fixtures/remote-config.ts';
|
||||
import { readFileSync } from 'node:fs';
|
||||
import assert from 'node:assert/strict';
|
||||
@@ -48,7 +49,7 @@ const DEVICE = Object.freeze({
|
||||
|
||||
function runtimeConfig(gameid: string | number = '41'): RuntimeConfig {
|
||||
return Object.freeze({
|
||||
mode: 'debug',
|
||||
startupConfig: STARTUP_CONFIG, mode: 'debug',
|
||||
isDebugger: true,
|
||||
identity: Object.freeze({
|
||||
agentid: 'veRa0qrBf',
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import { STARTUP_CONFIG } from '../../YouleNexus/assets/framework/config/profiles.ts';
|
||||
import { remoteFixture } from '../fixtures/remote-config.ts';
|
||||
import { test } from 'node:test';
|
||||
import assert from 'node:assert/strict';
|
||||
@@ -11,11 +12,11 @@ const IDENTITY = { agentid: 'A', channelid: 'C', gameid: 'G', marketid: 4, versi
|
||||
|
||||
function bootstrapOf(): BootstrapResult {
|
||||
return {
|
||||
mode: 'debug', isDebugger: true,
|
||||
startupConfig: STARTUP_CONFIG, mode: 'debug', isDebugger: true,
|
||||
identity: IDENTITY,
|
||||
servers: ['ws://test'],
|
||||
...remoteFixture(),
|
||||
profile: { name: 'debug' },
|
||||
profile: { name: 'local' },
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user