feat: complete general turn lifecycle

This commit is contained in:
2026-07-25 08:42:57 +00:00
parent 88afcb5465
commit 45ba960474
13 changed files with 1412 additions and 30 deletions
+1
View File
@@ -6,6 +6,7 @@ export interface DatabaseClient {
$executeRaw: GamePrismaClient['$executeRaw'];
worldState: GamePrisma.WorldStateDelegate;
general: GamePrisma.GeneralDelegate;
generalAccessLog: GamePrisma.GeneralAccessLogDelegate;
city: GamePrisma.CityDelegate;
nation: GamePrisma.NationDelegate;
diplomacy: GamePrisma.DiplomacyDelegate;
+6
View File
@@ -16,6 +16,7 @@ export interface TurnEngineWorldStateRow {
export interface TurnEngineGeneralRow {
id: number;
userId: string | null;
name: string;
nationId: number;
cityId: number;
@@ -42,6 +43,9 @@ export interface TurnEngineGeneralRow {
atmos: number;
age: number;
npcState: number;
bornYear: number;
deadYear: number;
affinity: number | null;
meta: JsonValue;
turnTime: Date;
recentWarTime: Date | null;
@@ -140,6 +144,7 @@ export interface TurnEngineWorldStateCreateInput {
}
export interface TurnEngineGeneralUpdateInput {
userId: string | null;
name: string;
nationId: number;
cityId: number;
@@ -264,6 +269,7 @@ export interface TurnEngineNationUpdateInput {
name: string;
color: string;
capitalCityId: number | null;
chiefGeneralId: number | null;
gold: number;
rice: number;
level: number;