refactor: finish internal export cleanup
This commit is contained in:
@@ -31,8 +31,8 @@ import {
|
||||
withCanonicalArgumentAliases,
|
||||
} from '../aiUtils.js';
|
||||
import { searchAllDistanceByNationList } from '@sammo-ts/logic/world/distance.js';
|
||||
import { generalActionHandlers } from '../generalAiGeneralActions.js';
|
||||
import { nationActionHandlers } from '../generalAiNationActions.js';
|
||||
import { generalActionHandlers } from './general/index.js';
|
||||
import { nationActionHandlers } from './nation/index.js';
|
||||
import { resolveConstraintEnv, type ConstraintEnv } from './constraint.js';
|
||||
import { buildSeedBase } from './seed.js';
|
||||
import { WorldStateView } from './worldStateView.js';
|
||||
|
||||
@@ -7,8 +7,6 @@ import { do후방워프, do전방워프, do내정워프, do귀환, do집합 } fr
|
||||
import { doNPC헌납, doNPC사망대비 } from './npcActions.js';
|
||||
import { do국가선택, do중립, do거병, do건국, do해산, do선양, do방랑군이동 } from './politicsActions.js';
|
||||
|
||||
export { do징병 };
|
||||
|
||||
export const generalActionHandlers: Record<
|
||||
string,
|
||||
(ai: GeneralAI) => ReturnType<GeneralAI['buildGeneralCandidate']> | null
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
export * from './generalAi/general/index.js';
|
||||
@@ -1 +0,0 @@
|
||||
export * from './generalAi/nation/index.js';
|
||||
@@ -14,7 +14,7 @@ import { createNpcTaxHandler } from '../../src/turn/npcTaxHandler.js';
|
||||
import { createFrontStateHandler } from '../../src/turn/frontStateHandler.js';
|
||||
import { createNationTurnMonthlyHandler } from '../../src/turn/nationTurnMonthlyHandler.js';
|
||||
|
||||
export const createMockPrisma = (initialGeneralRows: any[] = []) => {
|
||||
const createMockPrisma = (initialGeneralRows: any[] = []) => {
|
||||
let generalRows = [...initialGeneralRows];
|
||||
return {
|
||||
generalTurn: {
|
||||
@@ -47,7 +47,7 @@ export const createMockPrisma = (initialGeneralRows: any[] = []) => {
|
||||
};
|
||||
};
|
||||
|
||||
export const addMinutes = (time: Date, minutes: number): Date => new Date(time.getTime() + minutes * 60_000);
|
||||
const addMinutes = (time: Date, minutes: number): Date => new Date(time.getTime() + minutes * 60_000);
|
||||
|
||||
export type TurnHarnessRunOptions = {
|
||||
minutes?: number;
|
||||
|
||||
@@ -12,7 +12,7 @@ import type { TurnGeneral, TurnWorldSnapshot, TurnWorldState } from '../src/turn
|
||||
import type { GeneralAiDebugState } from '../src/turn/ai/generalAi.js';
|
||||
import type { InMemoryTurnWorld } from '../src/turn/inMemoryWorld.js';
|
||||
import { GeneralAI } from '../src/turn/ai/generalAi.js';
|
||||
import { do징병 } from '../src/turn/ai/generalAiGeneralActions.js';
|
||||
import { do징병 } from '../src/turn/ai/generalAi/general/recruitActions.js';
|
||||
import { buildCommandEnv, buildReservedTurnDefinitions } from '../src/turn/reservedTurnCommands.js';
|
||||
import { LARGE_TEST_MAP, buildLargeTestCities } from './fixtures/largeTestMap.js';
|
||||
import { round } from 'es-toolkit';
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
export * from './nationIncome.js';
|
||||
@@ -7,9 +7,9 @@ export * from './auction/neutral.js';
|
||||
export * from './constraints/index.js';
|
||||
export * from './crewType/index.js';
|
||||
export * from './diplomacy/index.js';
|
||||
export * from './economy/index.js';
|
||||
export * from './economy/nationIncome.js';
|
||||
export * from './logging/index.js';
|
||||
export * from './messages/index.js';
|
||||
export * from './messages/message.js';
|
||||
export * from './items/index.js';
|
||||
export * from './rewards/uniqueLottery.js';
|
||||
export * from './inheritance/inheritBuff.js';
|
||||
@@ -19,7 +19,7 @@ export * from './ports/worldSnapshot.js';
|
||||
export * from './ports/trace.js';
|
||||
export * from './scenario/index.js';
|
||||
export * from './triggers/index.js';
|
||||
export * from './turn/index.js';
|
||||
export * from './turn/calendar.js';
|
||||
export * from './tournament/index.js';
|
||||
export * from './troop/management.js';
|
||||
export * from './world/index.js';
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
export * from './message.js';
|
||||
@@ -1 +0,0 @@
|
||||
export * from './calendar.js';
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
import { type MapDefinition, type MapCityDefinition } from '../../src/world/types.js';
|
||||
|
||||
export const MINIMAL_MAP_CITIES: MapCityDefinition[] = [
|
||||
const MINIMAL_MAP_CITIES: MapCityDefinition[] = [
|
||||
{
|
||||
id: 1,
|
||||
name: '소성A',
|
||||
|
||||
@@ -201,7 +201,7 @@ const migratePaged = async (
|
||||
}
|
||||
};
|
||||
|
||||
export const mapGeneral = (row: SourceRow, options: CurrentSeasonFixtureOptions): TargetRow => {
|
||||
const mapGeneral = (row: SourceRow, options: CurrentSeasonFixtureOptions): TargetRow => {
|
||||
const id = toNumber(row.no, 'general.no');
|
||||
const aux = jsonObjectOrLegacyEmpty(row.aux, `general.${id}.aux`);
|
||||
const meta: Record<string, JsonValue> = {
|
||||
@@ -281,7 +281,7 @@ export const mapGeneral = (row: SourceRow, options: CurrentSeasonFixtureOptions)
|
||||
};
|
||||
};
|
||||
|
||||
export const mapNation = (row: SourceRow, nationEnv: Record<string, JsonValue>): TargetRow => {
|
||||
const mapNation = (row: SourceRow, nationEnv: Record<string, JsonValue>): TargetRow => {
|
||||
const id = toNumber(row.nation, 'nation.nation');
|
||||
const aux = jsonObject(row.aux, `nation.${id}.aux`);
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user