17 lines
351 B
GDScript
17 lines
351 B
GDScript
class_name CellData
|
|
extends Node
|
|
|
|
@export var layer_info: Dictionary = {
|
|
Constants.TilemapLayers.CORRUPTION: false
|
|
}
|
|
var _pos: Vector2i
|
|
|
|
func _init(pos: Vector2i) -> void:
|
|
_pos = pos
|
|
|
|
func change_layer(layer: int, data: Variant) -> void:
|
|
layer_info[layer] = data
|
|
|
|
func is_corrupted() -> bool:
|
|
return layer_info[Constants.TilemapLayers.CORRUPTION]
|