Files
Corupture/scripts/cell_data.gd
Eric 7c81a2229e refactored cell world building
#8 included resources into cell data
2024-02-06 07:39:44 -06:00

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]