2024-01-27 16:13:43 +02:00
|
|
|
extends StaticBody3D
|
|
|
|
|
2024-05-02 20:35:47 +03:00
|
|
|
@export var entity_id: String
|
2024-04-17 17:49:58 +03:00
|
|
|
var icon = R.state("question_mark")
|
|
|
|
var icon_color = R.state(Color(1, 1, 1, 1))
|
2024-01-27 16:13:43 +02:00
|
|
|
|
|
|
|
func _ready():
|
|
|
|
var movable = get_node("Movable")
|
|
|
|
|
|
|
|
if movable:
|
|
|
|
movable.on_moved.connect(func():
|
|
|
|
House.body.save_all_entities()
|
|
|
|
)
|