14 lines
269 B
GDScript
14 lines
269 B
GDScript
extends StaticBody3D
|
|
|
|
@export var entity_id: String
|
|
var icon = R.state("question_mark")
|
|
var icon_color = R.state(Color(1, 1, 1, 1))
|
|
|
|
func _ready():
|
|
var movable = get_node("Movable")
|
|
|
|
if movable:
|
|
movable.on_moved.connect(func():
|
|
App.house.save_all_entities()
|
|
)
|