20 lines
314 B
GDScript
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
|