feat: add relationship types to shared

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
root
2026-03-07 15:28:47 +00:00
parent 458fd99495
commit 2ae3326b09
+23
View File
@@ -83,6 +83,22 @@ export interface SocialState {
outcome: InteractionOutcome | null;
globalCooldown: number;
pairCooldowns: Map<EntityId, number>;
lastOutcome: LastOutcome | null;
}
export interface RelationshipData {
value: number; // -100 to 100
interactions: number; // total interaction count
lastInteractionTick: number;
status: 'active' | 'memory';
}
export type Relationships = Map<EntityId, RelationshipData>;
export interface LastOutcome {
partnerId: EntityId;
outcome: InteractionOutcome;
tick: number;
}
// Network protocol messages
@@ -101,6 +117,13 @@ export interface EntityState {
partnerId: EntityId | null;
outcome: InteractionOutcome | null;
};
relationships?: Array<{
entityId: EntityId;
name: string;
value: number;
classification: string;
status: 'active' | 'memory';
}>;
}
export interface WorldState {