immersive-home/lib/stores/house.gd
2024-01-25 16:29:33 +01:00

30 lines
462 B
GDScript

extends StoreClass
const StoreClass = preload("./store.gd")
# Type Room
# name: String
# corners: Vec2[]
# height: float
var rooms = []
# Type Entity
# id: String
# position: Vec3
# rotation: Vec3
# room: String
var entities = []
var align_position1: Vector3
var align_position2: Vector3
func _init():
_save_path = "user://house.json"
func clear():
pass
func get_room(name):
for room in rooms:
if room.name == name:
return room
return null