31 lines
2.0 KiB
GDScript
31 lines
2.0 KiB
GDScript
extends Resource
|
|
class_name MissionData
|
|
|
|
@export var id: String = ""
|
|
@export var title: String = ""
|
|
@export var description: String = ""
|
|
@export var objectives: Array[MissionObjective] = []
|
|
@export var rewards: Dictionary = {"cash": 0}
|
|
@export var next_mission_id: String = ""
|
|
@export var graph_path: String = "" # Path to graph resource if one exists
|
|
@export var full_screen_path: String = "" # Path to a full-screen image containing all mission information
|
|
@export var intro_text: String = "" # Introduction text shown in the learning panel
|
|
@export var question_text: String = "" # Question displayed to the player
|
|
@export var correct_answer: String = "" # The expected correct answer
|
|
@export var feedback_text: String = "" # Feedback text shown when answer is correct
|
|
@export var incorrect_feedback: String = "" # Feedback text shown when answer is incorrect
|
|
@export var company_data: String = "" # Company data for mission 2
|
|
@export var power_math_content: String = "" # Power math content for mission 4
|
|
@export var num_of_user_inputs: int = 1 # Number of user input fields to display
|
|
@export var input_labels: Array[String] = [] # Labels for each input field
|
|
@export var companion_dialog: Dictionary = {} # Map of event keys to dialog entries for the learning companion
|
|
@export var unlocked_items: Array[String] = [] # Array of structure resource paths that get unlocked after mission completion
|
|
@export var starting_structures: Array[String] = [] # Array of structure resource paths that are unlocked when this mission starts
|
|
@export var open_react_graph: bool = false # Whether to display the React graph component
|
|
@export var open_react_table: bool = false # Whether to display the React table component
|
|
@export var react_data: Dictionary
|
|
@export var react_table_data: Dictionary = {
|
|
"headers": [], # Array of header text strings
|
|
"rows": [] # 2D array of cell values: [[row1cell1, row1cell2...], [row2cell1, row2cell2...], ...]
|
|
} # Data structure for React table component
|