hanafuda/CardValue.gd

13 lines
263 B
GDScript
Raw Permalink Normal View History

2021-12-14 21:53:45 +01:00
class_name CardValue
extends Node
var month: int
var type: int
func _init(month: int, type: int):
self.month = month
self.type = type
2022-01-25 00:13:13 +01:00
func desc() -> String:
return "CardValue({m}, {t})".format({"m": Enums.Month.keys()[month], "t": Enums.Type.keys()[type]})