feat: 일반 역할 및 슬롯 인터페이스 추가, 시나리오 파싱 및 부트스트랩 로직 개선

This commit is contained in:
2025-12-28 17:11:05 +00:00
parent 62c1c0f9c6
commit 8a2fc4fec5
10 changed files with 343 additions and 0 deletions
@@ -210,6 +210,11 @@ const parseGeneralRow = (
personality,
special,
text,
specialWar,
horse,
weapon,
book,
item,
] = values;
if (typeof name !== 'string') {
@@ -236,6 +241,11 @@ const parseGeneralRow = (
deathYear: asNumber(deathYear, 0),
personality: asNullableString(personality),
special: asNullableString(special),
specialWar: asNullableString(specialWar),
horse: asNullableString(horse),
weapon: asNullableString(weapon),
book: asNullableString(book),
item: asNullableString(item),
text: asNullableString(text),
};
};
+5
View File
@@ -61,6 +61,11 @@ export interface ScenarioGeneral {
deathYear: number;
personality: string | null;
special: string | null;
specialWar?: string | null;
horse?: string | null;
weapon?: string | null;
book?: string | null;
item?: string | null;
text: string | null;
}