16
scripts/cell_data.gd
Normal file
16
scripts/cell_data.gd
Normal file
@@ -0,0 +1,16 @@
|
||||
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]
|
||||
Reference in New Issue
Block a user