class_name OpportunityHelperResult extends RefCounted var opportunity_id: int var helper_npc_id: int var action_id: StringName var source_id: StringName var resource_id: StringName var trigger_event_id: int var trust: float var familiarity: float var uses_inventory: bool var available_source_count: int var profession_match: bool var reason: String func _init(result: Dictionary) -> void: opportunity_id = int(result["opportunity_id"]) helper_npc_id = int(result["helper_npc_id"]) action_id = StringName(result["action_id"]) source_id = StringName(result["source_id"]) resource_id = StringName(result["resource_id"]) trigger_event_id = int(result["trigger_event_id"]) trust = float(result["trust"]) familiarity = float(result["familiarity"]) uses_inventory = bool(result["uses_inventory"]) available_source_count = int(result["available_source_count"]) profession_match = bool(result["profession_match"]) reason = String(result["reason"])