ObjectiveInfo beta
Interface of @v12-engine/client
ts
export interface ObjectiveInfoAn objective of the player, the way the HUD shows it: in words, with how far along it is (QuestLog)
Members
detail
ts
detail?: string;More about it, in words (ObjectiveDef.detail): shown under it as the player opens it
id
ts
id: string;The objective's id (ObjectiveDef.id)
progress
ts
progress?: number;0..1, for the ones that count
reason
ts
reason?: string;Why it failed, in words, for a failed one that says
required
ts
required: boolean;Whether the mission cannot be won without it
status
ts
status: 'open' | 'done' | 'failed';Where it stands: still open, done or failed
text
ts
text: string;The objective, in words