Files
mmo/resources/effects/element.gd
Marek Le 2d4002bd3f refactor
2026-05-09 23:37:26 +02:00

20 lines
314 B
GDScript

class_name Element
extends RefCounted
const NONE: int = 0
const FIRE: int = 1
static func name_of(e: int) -> String:
match e:
FIRE:
return "Fire"
_:
return "None"
static func color_of(e: int) -> Color:
match e:
FIRE:
return Color(1.0, 0.4, 0.1)
_:
return Color.WHITE