20 lines
502 B
GDScript
20 lines
502 B
GDScript
extends Resource
|
|
class_name CardInfo
|
|
|
|
@export var title : String
|
|
@export var subtitle : String
|
|
@export var type_icon : Texture = preload("res://common/icons/cube-3d-sphere.svg")
|
|
@export var texture : Texture
|
|
|
|
@export var important_stat_text : String
|
|
@export var important_stat_icon : Texture
|
|
|
|
@export var stats : Array[CardStatInfo] = []
|
|
@export var sections : Array[CardSectionInfo] = []
|
|
|
|
func _init(
|
|
_title : String = "",
|
|
_subtitle : String = ""
|
|
):
|
|
title = _title
|
|
subtitle = _subtitle |