restructure files
This commit is contained in:
parent
29cbaf67b5
commit
ab1ff4d8b1
|
@ -1,3 +1,4 @@
|
||||||
version https://git-lfs.github.com/spec/v1
|
[gd_resource type="StandardMaterial3D" format=3 uid="uid://bertj8bp8b5l1"]
|
||||||
oid sha256:55d5f30db336a8f8f7633743c23e41077d5c1a1b900c475a6d3811746eba3d1b
|
|
||||||
size 141
|
[resource]
|
||||||
|
albedo_color = Color(0.286275, 0.309804, 0.439216, 1)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[gd_scene load_steps=6 format=3 uid="uid://cw86rc42dv2d8"]
|
[gd_scene load_steps=6 format=3 uid="uid://cw86rc42dv2d8"]
|
||||||
|
|
||||||
[ext_resource type="Script" path="res://src/entities/light.gd" id="1_ykxy3"]
|
[ext_resource type="Script" path="res://content/entities/light/light.gd" id="1_ykxy3"]
|
||||||
[ext_resource type="Texture2D" uid="uid://b72vsbcvqqxg7" path="res://assets/materials/swich_on.png" id="2_6gn2e"]
|
[ext_resource type="Texture2D" uid="uid://b72vsbcvqqxg7" path="res://assets/materials/swich_on.png" id="2_6gn2e"]
|
||||||
[ext_resource type="Texture2D" uid="uid://cvc0o6dsktnvl" path="res://assets/materials/switch_off.png" id="3_qlm62"]
|
[ext_resource type="Texture2D" uid="uid://cvc0o6dsktnvl" path="res://assets/materials/switch_off.png" id="3_qlm62"]
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[gd_scene load_steps=3 format=3 uid="uid://xsiy71rsqulj"]
|
[gd_scene load_steps=3 format=3 uid="uid://xsiy71rsqulj"]
|
||||||
|
|
||||||
[ext_resource type="Script" path="res://src/entities/sensor.gd" id="1_57ac8"]
|
[ext_resource type="Script" path="res://content/entities/sensor/sensor.gd" id="1_57ac8"]
|
||||||
|
|
||||||
[sub_resource type="SphereShape3D" id="SphereShape3D_r20gc"]
|
[sub_resource type="SphereShape3D" id="SphereShape3D_r20gc"]
|
||||||
radius = 0.1
|
radius = 0.1
|
|
@ -1,6 +1,6 @@
|
||||||
[gd_scene load_steps=6 format=3 uid="uid://cscl5k7lhopj5"]
|
[gd_scene load_steps=6 format=3 uid="uid://cscl5k7lhopj5"]
|
||||||
|
|
||||||
[ext_resource type="Script" path="res://src/entities/switch.gd" id="1_8ffhi"]
|
[ext_resource type="Script" path="res://content/entities/switch/switch.gd" id="1_8ffhi"]
|
||||||
[ext_resource type="Texture2D" uid="uid://b72vsbcvqqxg7" path="res://assets/materials/swich_on.png" id="1_w68gw"]
|
[ext_resource type="Texture2D" uid="uid://b72vsbcvqqxg7" path="res://assets/materials/swich_on.png" id="1_w68gw"]
|
||||||
[ext_resource type="Texture2D" uid="uid://cvc0o6dsktnvl" path="res://assets/materials/switch_off.png" id="2_86ba1"]
|
[ext_resource type="Texture2D" uid="uid://cvc0o6dsktnvl" path="res://assets/materials/switch_off.png" id="2_86ba1"]
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
[gd_scene load_steps=13 format=3 uid="uid://eecv28y6jxk4"]
|
[gd_scene load_steps=13 format=3 uid="uid://eecv28y6jxk4"]
|
||||||
|
|
||||||
[ext_resource type="PackedScene" uid="uid://clc5dre31iskm" path="res://addons/godot-xr-tools/xr/start_xr.tscn" id="1_i4c04"]
|
[ext_resource type="PackedScene" uid="uid://clc5dre31iskm" path="res://addons/godot-xr-tools/xr/start_xr.tscn" id="1_i4c04"]
|
||||||
[ext_resource type="Script" path="res://src/raycast.gd" id="1_tsqxc"]
|
[ext_resource type="Script" path="res://content/raycast.gd" id="1_tsqxc"]
|
||||||
[ext_resource type="Script" path="res://main.gd" id="1_uvrd4"]
|
[ext_resource type="Script" path="res://content/main.gd" id="1_uvrd4"]
|
||||||
[ext_resource type="Script" path="res://src/model.gd" id="2_7f1x4"]
|
[ext_resource type="Script" path="res://content/model.gd" id="2_7f1x4"]
|
||||||
[ext_resource type="PackedScene" uid="uid://c3kdssrmv84kv" path="res://scenes/menu.tscn" id="3_1tbp3"]
|
[ext_resource type="PackedScene" uid="uid://c3kdssrmv84kv" path="res://content/ui/menu/menu.tscn" id="3_1tbp3"]
|
||||||
[ext_resource type="PackedScene" uid="uid://ctltchlf2j2r4" path="res://addons/xr-simulator/XRSimulator.tscn" id="5_3qc8g"]
|
[ext_resource type="PackedScene" uid="uid://ctltchlf2j2r4" path="res://addons/xr-simulator/XRSimulator.tscn" id="5_3qc8g"]
|
||||||
[ext_resource type="Material" uid="uid://bf5ina366dwm6" path="res://assets/materials/sky.material" id="5_wgwf8"]
|
[ext_resource type="Material" uid="uid://bf5ina366dwm6" path="res://assets/materials/sky.material" id="5_wgwf8"]
|
||||||
[ext_resource type="PackedScene" uid="uid://cscl5k7lhopj5" path="res://scenes/entities/switch.tscn" id="8_uxmrb"]
|
[ext_resource type="PackedScene" uid="uid://cscl5k7lhopj5" path="res://content/entities/switch/switch.tscn" id="8_uxmrb"]
|
||||||
|
|
||||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_m58yb"]
|
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_m58yb"]
|
||||||
ao_enabled = true
|
ao_enabled = true
|
|
@ -1,6 +1,6 @@
|
||||||
[gd_scene load_steps=4 format=3 uid="uid://dbe8slnyhro2n"]
|
[gd_scene load_steps=4 format=3 uid="uid://dbe8slnyhro2n"]
|
||||||
|
|
||||||
[ext_resource type="Script" path="res://src/ui/device.gd" id="1_rbo86"]
|
[ext_resource type="Script" path="res://content/ui/device/device.gd" id="1_rbo86"]
|
||||||
|
|
||||||
[sub_resource type="BoxMesh" id="BoxMesh_aa3i4"]
|
[sub_resource type="BoxMesh" id="BoxMesh_aa3i4"]
|
||||||
size = Vector3(0.05, 0.01, 0.05)
|
size = Vector3(0.05, 0.01, 0.05)
|
|
@ -1,6 +1,6 @@
|
||||||
[gd_scene load_steps=4 format=3 uid="uid://xo0o5nrfjl23"]
|
[gd_scene load_steps=4 format=3 uid="uid://xo0o5nrfjl23"]
|
||||||
|
|
||||||
[ext_resource type="Script" path="res://src/ui/entity.gd" id="1_825oj"]
|
[ext_resource type="Script" path="res://content/ui/entity/entity.gd" id="1_825oj"]
|
||||||
|
|
||||||
[sub_resource type="BoxMesh" id="BoxMesh_aa3i4"]
|
[sub_resource type="BoxMesh" id="BoxMesh_aa3i4"]
|
||||||
size = Vector3(0.05, 0.01, 0.05)
|
size = Vector3(0.05, 0.01, 0.05)
|
|
@ -1,10 +1,10 @@
|
||||||
extends Node3D
|
extends Node3D
|
||||||
|
|
||||||
const Device = preload("res://scenes/device.tscn")
|
const Device = preload("res://content/ui/device/device.tscn")
|
||||||
const Entity = preload("res://scenes/entity.tscn")
|
const Entity = preload("res://content/ui/entity/entity.tscn")
|
||||||
const Switch = preload("res://scenes/entities/switch.tscn")
|
const Switch = preload("res://content/entities/switch/switch.tscn")
|
||||||
const Light = preload("res://scenes/entities/light.tscn")
|
const Light = preload("res://content/entities/light/light.tscn")
|
||||||
const Sensor = preload("res://scenes/entities/sensor.tscn")
|
const Sensor = preload("res://content/entities/sensor/sensor.tscn")
|
||||||
|
|
||||||
@onready var devices_node = $Devices
|
@onready var devices_node = $Devices
|
||||||
var devices
|
var devices
|
|
@ -1,6 +1,6 @@
|
||||||
[gd_scene load_steps=4 format=3 uid="uid://c3kdssrmv84kv"]
|
[gd_scene load_steps=4 format=3 uid="uid://c3kdssrmv84kv"]
|
||||||
|
|
||||||
[ext_resource type="Script" path="res://src/menu.gd" id="1_ng4u3"]
|
[ext_resource type="Script" path="res://content/ui/menu/menu.gd" id="1_ng4u3"]
|
||||||
[ext_resource type="Material" uid="uid://bertj8bp8b5l1" path="res://assets/materials/interface.tres" id="2_nsukb"]
|
[ext_resource type="Material" uid="uid://bertj8bp8b5l1" path="res://assets/materials/interface.tres" id="2_nsukb"]
|
||||||
|
|
||||||
[sub_resource type="PlaneMesh" id="PlaneMesh_6t3dn"]
|
[sub_resource type="PlaneMesh" id="PlaneMesh_6t3dn"]
|
|
@ -1,6 +1,6 @@
|
||||||
extends Node
|
extends Node
|
||||||
|
|
||||||
var Adapter = preload("res://src/home_adapters/adapter.gd")
|
var Adapter = preload("res://lib/home_adapters/adapter.gd")
|
||||||
|
|
||||||
var adapter = Adapter.new(Adapter.ADAPTER_TYPES.HASS)
|
var adapter = Adapter.new(Adapter.ADAPTER_TYPES.HASS)
|
||||||
var adapter_ws = Adapter.new(Adapter.ADAPTER_TYPES.HASS_WS)
|
var adapter_ws = Adapter.new(Adapter.ADAPTER_TYPES.HASS_WS)
|
|
@ -1,7 +1,7 @@
|
||||||
extends Node
|
extends Node
|
||||||
|
|
||||||
const hass = preload("res://src/home_adapters/hass/hass.gd")
|
const hass = preload("res://lib/home_adapters/hass/hass.gd")
|
||||||
const hass_ws = preload("res://src/home_adapters/hass_ws/hass.gd")
|
const hass_ws = preload("res://lib/home_adapters/hass_ws/hass.gd")
|
||||||
|
|
||||||
enum ADAPTER_TYPES {
|
enum ADAPTER_TYPES {
|
||||||
HASS,
|
HASS,
|
|
@ -4,7 +4,7 @@ var url: String = "http://192.168.33.33:8123"
|
||||||
var token: String = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiIzZjQ0ZGM2N2Y3YzY0MDc1OGZlMWI2ZjJlNmIxZjRkNSIsImlhdCI6MTY5ODAxMDcyOCwiZXhwIjoyMDEzMzcwNzI4fQ.K6ydLUC-4Q7BNIRCU1nWlI2s6sg9UCiOu-Lpedw2zJc"
|
var token: String = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiIzZjQ0ZGM2N2Y3YzY0MDc1OGZlMWI2ZjJlNmIxZjRkNSIsImlhdCI6MTY5ODAxMDcyOCwiZXhwIjoyMDEzMzcwNzI4fQ.K6ydLUC-4Q7BNIRCU1nWlI2s6sg9UCiOu-Lpedw2zJc"
|
||||||
var headers: PackedStringArray = PackedStringArray([])
|
var headers: PackedStringArray = PackedStringArray([])
|
||||||
|
|
||||||
var devices_template = FileAccess.get_file_as_string("res://src/home_adapters/hass/templates/devices.j2")
|
var devices_template = FileAccess.get_file_as_string("res://lib/home_adapters/hass/templates/devices.j2")
|
||||||
|
|
||||||
func _init(url := self.url, token := self.token):
|
func _init(url := self.url, token := self.token):
|
||||||
self.url = url
|
self.url = url
|
|
@ -1,6 +1,6 @@
|
||||||
extends Node
|
extends Node
|
||||||
|
|
||||||
var devices_template := FileAccess.get_file_as_string("res://src/home_adapters/hass/templates/devices.j2")
|
var devices_template := FileAccess.get_file_as_string("res://lib/home_adapters/hass/templates/devices.j2")
|
||||||
var socket := WebSocketPeer.new()
|
var socket := WebSocketPeer.new()
|
||||||
# in seconds
|
# in seconds
|
||||||
var request_timeout := 10.0
|
var request_timeout := 10.0
|
|
@ -11,15 +11,15 @@ config_version=5
|
||||||
[application]
|
[application]
|
||||||
|
|
||||||
config/name="ImmersiveHome"
|
config/name="ImmersiveHome"
|
||||||
run/main_scene="res://main.tscn"
|
run/main_scene="res://content/main.tscn"
|
||||||
config/features=PackedStringArray("4.1", "Mobile")
|
config/features=PackedStringArray("4.1", "Mobile")
|
||||||
config/icon="res://assets/logo.png"
|
config/icon="res://assets/logo.png"
|
||||||
|
|
||||||
[autoload]
|
[autoload]
|
||||||
|
|
||||||
XRToolsUserSettings="*res://addons/godot-xr-tools/user_settings/user_settings.gd"
|
XRToolsUserSettings="*res://addons/godot-xr-tools/user_settings/user_settings.gd"
|
||||||
Request="*res://src/globals/request.gd"
|
Request="*res://lib/globals/request.gd"
|
||||||
HomeAdapters="*res://src/globals/home_adapters.gd"
|
HomeAdapters="*res://lib/globals/home_adapters.gd"
|
||||||
|
|
||||||
[editor_plugins]
|
[editor_plugins]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user