feat: add relationship types to shared
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user