added machine item slots so ican start building gameplay
This commit is contained in:
19
WorldObjects/base/resourceIron.tscn
Normal file
19
WorldObjects/base/resourceIron.tscn
Normal file
@@ -0,0 +1,19 @@
|
||||
[gd_scene format=3 uid="uid://dx2lffh4sifhj"]
|
||||
|
||||
[ext_resource type="ArrayMesh" uid="uid://ccpw60ggypi3g" path="res://Assets/Models/resourceIron.obj" id="1_c7ias"]
|
||||
[ext_resource type="Script" uid="uid://f83dw8obaiji" path="res://WorldObjects/base/scripts/ResourceNodeIron.gd" id="2_34olp"]
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_qpah5"]
|
||||
size = Vector3(1, 0.2617798, 1)
|
||||
|
||||
[node name="ResourceIron" type="Node3D" unique_id=1631313617]
|
||||
|
||||
[node name="ResourceIron" type="MeshInstance3D" parent="." unique_id=555273188]
|
||||
mesh = ExtResource("1_c7ias")
|
||||
|
||||
[node name="StaticBody3D" type="StaticBody3D" parent="." unique_id=581716591]
|
||||
script = ExtResource("2_34olp")
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="StaticBody3D" unique_id=2024088036]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.050872803, 0)
|
||||
shape = SubResource("BoxShape3D_qpah5")
|
||||
5
WorldObjects/base/scripts/ResourceNodeIron.gd
Normal file
5
WorldObjects/base/scripts/ResourceNodeIron.gd
Normal file
@@ -0,0 +1,5 @@
|
||||
extends StaticBody3D
|
||||
|
||||
|
||||
func _interact_press(isRight):
|
||||
InventoryBus.givePlayerItem.emit("base:raw_iron")
|
||||
1
WorldObjects/base/scripts/ResourceNodeIron.gd.uid
Normal file
1
WorldObjects/base/scripts/ResourceNodeIron.gd.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://f83dw8obaiji
|
||||
@@ -1,4 +1,4 @@
|
||||
[orchestration type="OScript" load_steps=30 format=3 uid="uid://lnl2novjwc5x"]
|
||||
[orchestration type="OScript" load_steps=35 format=3 uid="uid://lnl2novjwc5x"]
|
||||
|
||||
[obj type="OScriptFunction" id="OScriptFunction_e42so"]
|
||||
guid = "E414D8B5-B4F8-4B88-80FF-E489EA3EA7BC"
|
||||
@@ -38,7 +38,7 @@ id = 19
|
||||
[obj type="OScriptGraph" id="OScriptGraph_orolp"]
|
||||
graph_name = &"EventGraph"
|
||||
flags = 8
|
||||
nodes = Array[int]([0, 1, 2, 3, 4, 7, 9, 14, 15, 16, 17, 18, 23, 24, 25, 26])
|
||||
nodes = Array[int]([0, 1, 2, 3, 4, 7, 9, 14, 15, 16, 17, 18, 23, 24, 25, 26, 27, 28, 30, 31, 32])
|
||||
functions = Array[int]([0])
|
||||
|
||||
[obj type="OScriptGraph" id="OScriptGraph_xt617"]
|
||||
@@ -660,10 +660,132 @@ pin_data = Array[Dictionary]([{
|
||||
"flags": 2
|
||||
}])
|
||||
|
||||
[obj type="OScriptNodeSceneNode" id="OScriptNodeSceneNode_2lqy0"]
|
||||
node_path = NodePath("IItemSlot")
|
||||
target_class_name = "Node3D"
|
||||
id = 27
|
||||
position = Vector2(2500, 740)
|
||||
pin_data = Array[Dictionary]([{
|
||||
"pin_name": &"IItemSlot",
|
||||
"type": 24,
|
||||
"dir": 1,
|
||||
"flags": 2050,
|
||||
"target_class": "Node3D"
|
||||
}])
|
||||
metadata/__base_node_relative = Object(Node3D,"unique_name_in_owner":false,"process_mode":0,"process_priority":0,"process_physics_priority":0,"process_thread_group":0,"physics_interpolation_mode":0,"auto_translate_mode":0,"editor_description":"","transform":Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0),"rotation_edit_mode":0,"rotation_order":2,"top_level":false,"visible":true,"visibility_parent":NodePath(""),"script":null)
|
||||
|
||||
|
||||
[obj type="OScriptNodePropertyGet" id="OScriptNodePropertyGet_xt617"]
|
||||
mode = 1
|
||||
target_class = &"Node3D"
|
||||
property_name = &"ItemID"
|
||||
property = {
|
||||
"name": &"ItemID",
|
||||
"type": 4,
|
||||
"class_name": &"",
|
||||
"hint": 0,
|
||||
"hint_string": "",
|
||||
"usage": 4096
|
||||
}
|
||||
id = 28
|
||||
size = Vector2(199, 66)
|
||||
position = Vector2(2820, 740)
|
||||
pin_data = Array[Dictionary]([{
|
||||
"pin_name": &"target",
|
||||
"type": 24,
|
||||
"flags": 2050,
|
||||
"label": "Node3D",
|
||||
"target_class": "Node3D"
|
||||
}, {
|
||||
"pin_name": &"ItemID",
|
||||
"type": 4,
|
||||
"dir": 1,
|
||||
"flags": 2,
|
||||
"dv": "",
|
||||
"usage": 4096
|
||||
}])
|
||||
|
||||
[obj type="OScriptNodeOperator" id="OScriptNodeOperator_jp7l8"]
|
||||
code = &"=="
|
||||
name = &"Equal"
|
||||
left_type = 4
|
||||
left_type_name = &"String"
|
||||
right_type = 4
|
||||
right_type_name = &"String"
|
||||
return_type = 1
|
||||
id = 30
|
||||
position = Vector2(3214.473388671875, 713.8279418945313)
|
||||
pin_data = Array[Dictionary]([{
|
||||
"pin_name": &"a",
|
||||
"type": 4,
|
||||
"flags": 2
|
||||
}, {
|
||||
"pin_name": &"b",
|
||||
"type": 4,
|
||||
"flags": 2,
|
||||
"dv": "base:interact"
|
||||
}, {
|
||||
"pin_name": &"result",
|
||||
"type": 1,
|
||||
"dir": 1,
|
||||
"flags": 2
|
||||
}])
|
||||
|
||||
[obj type="OScriptNodeSceneNode" id="OScriptNodeSceneNode_ihyxi"]
|
||||
node_path = NodePath("ILed2")
|
||||
target_class_name = "Node3D"
|
||||
id = 31
|
||||
position = Vector2(3300, 600)
|
||||
pin_data = Array[Dictionary]([{
|
||||
"pin_name": &"ILed2",
|
||||
"type": 24,
|
||||
"dir": 1,
|
||||
"flags": 2050,
|
||||
"target_class": "Node3D"
|
||||
}])
|
||||
metadata/__base_node_relative = Object(Node3D,"unique_name_in_owner":false,"process_mode":0,"process_priority":0,"process_physics_priority":0,"process_thread_group":0,"physics_interpolation_mode":0,"auto_translate_mode":0,"editor_description":"","transform":Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0),"rotation_edit_mode":0,"rotation_order":2,"top_level":false,"visible":true,"visibility_parent":NodePath(""),"script":null)
|
||||
|
||||
|
||||
[obj type="OScriptNodePropertySet" id="OScriptNodePropertySet_gae2e"]
|
||||
mode = 1
|
||||
target_class = &"Node3D"
|
||||
property_name = &"isLampOn"
|
||||
property = {
|
||||
"name": &"isLampOn",
|
||||
"type": 1,
|
||||
"class_name": &"",
|
||||
"hint": 0,
|
||||
"hint_string": "",
|
||||
"usage": 4102
|
||||
}
|
||||
id = 32
|
||||
size = Vector2(185, 126)
|
||||
position = Vector2(3660, 560)
|
||||
pin_data = Array[Dictionary]([{
|
||||
"pin_name": &"ExecIn",
|
||||
"flags": 4
|
||||
}, {
|
||||
"pin_name": &"target",
|
||||
"type": 24,
|
||||
"flags": 2050,
|
||||
"label": "Node3D",
|
||||
"target_class": "Node3D"
|
||||
}, {
|
||||
"pin_name": &"isLampOn",
|
||||
"type": 1,
|
||||
"flags": 2,
|
||||
"dv": false,
|
||||
"usage": 4102
|
||||
}, {
|
||||
"pin_name": &"ExecOut",
|
||||
"dir": 1,
|
||||
"flags": 4
|
||||
}])
|
||||
|
||||
[resource]
|
||||
base_type = &"Node3D"
|
||||
brief_description = "Empty template suitable for all Objects"
|
||||
functions = Array[OScriptFunction]([SubResource("OScriptFunction_e42so"), SubResource("OScriptFunction_2lqy0"), SubResource("OScriptFunction_xt617")])
|
||||
connections = Array[int]([1, 0, 4, 0, 2, 0, 7, 0, 3, 0, 9, 0, 12, 0, 11, 0, 10, 0, 12, 0, 12, 1, 13, 0, 0, 0, 14, 0, 14, 0, 15, 0, 15, 0, 16, 0, 23, 0, 18, 0, 22, 0, 20, 0, 19, 0, 22, 0, 16, 0, 23, 0, 16, 1, 26, 0, 10, 1, 12, 1, 4, 0, 14, 1, 7, 0, 15, 1, 9, 0, 16, 1, 17, 0, 18, 1, 22, 1, 20, 1, 24, 0, 23, 1, 14, 1, 24, 1, 15, 1, 25, 1, 23, 1, 18, 2, 25, 0, 23, 2, 26, 0, 23, 3])
|
||||
nodes = Array[OScriptNode]([SubResource("OScriptNodeEvent_2lqy0"), SubResource("OScriptNodeSceneNode_jp7l8"), SubResource("OScriptNodeSceneNode_uiexf"), SubResource("OScriptNodeSceneNode_1dpyt"), SubResource("OScriptNodePropertyGet_ihyxi"), SubResource("OScriptNodePropertyGet_gae2e"), SubResource("OScriptNodePropertyGet_uhhe4"), SubResource("OScriptNodeFunctionEntry_fmxgp"), SubResource("OScriptNodeFunctionResult_4xix8"), SubResource("OScriptNodeBranch_e42so"), SubResource("OScriptNodeFunctionResult_2lqy0"), SubResource("OScriptNodeCallScriptFunction_uiexf"), SubResource("OScriptNodeCallScriptFunction_1dpyt"), SubResource("OScriptNodeCallScriptFunction_ihyxi"), SubResource("OScriptNodeSceneNode_gae2e"), SubResource("OScriptNodePropertySet_uhhe4"), SubResource("OScriptNodeFunctionEntry_4xix8"), SubResource("OScriptNodeFunctionResult_varh6"), SubResource("OScriptNodeCallStaticFunction_1h4y3"), SubResource("OScriptNodeCallStaticFunction_w42kr"), SubResource("OScriptNodeOperator_njitf"), SubResource("OScriptNodeOperator_jm74n"), SubResource("OScriptNodeOperator_pk6h3")])
|
||||
connections = Array[int]([1, 0, 4, 0, 2, 0, 7, 0, 3, 0, 9, 0, 12, 0, 11, 0, 10, 0, 12, 0, 12, 1, 13, 0, 0, 0, 14, 0, 14, 0, 15, 0, 15, 0, 16, 0, 23, 0, 18, 0, 22, 0, 20, 0, 19, 0, 22, 0, 16, 0, 23, 0, 16, 1, 26, 0, 27, 0, 28, 0, 28, 0, 30, 0, 18, 0, 32, 0, 10, 1, 12, 1, 4, 0, 14, 1, 7, 0, 15, 1, 9, 0, 16, 1, 17, 0, 18, 1, 22, 1, 20, 1, 24, 0, 23, 1, 14, 1, 24, 1, 15, 1, 25, 1, 31, 0, 32, 1, 23, 1, 18, 2, 25, 0, 23, 2, 30, 0, 32, 2, 26, 0, 23, 3])
|
||||
nodes = Array[OScriptNode]([SubResource("OScriptNodeEvent_2lqy0"), SubResource("OScriptNodeSceneNode_jp7l8"), SubResource("OScriptNodeSceneNode_uiexf"), SubResource("OScriptNodeSceneNode_1dpyt"), SubResource("OScriptNodePropertyGet_ihyxi"), SubResource("OScriptNodePropertyGet_gae2e"), SubResource("OScriptNodePropertyGet_uhhe4"), SubResource("OScriptNodeFunctionEntry_fmxgp"), SubResource("OScriptNodeFunctionResult_4xix8"), SubResource("OScriptNodeBranch_e42so"), SubResource("OScriptNodeFunctionResult_2lqy0"), SubResource("OScriptNodeCallScriptFunction_uiexf"), SubResource("OScriptNodeCallScriptFunction_1dpyt"), SubResource("OScriptNodeCallScriptFunction_ihyxi"), SubResource("OScriptNodeSceneNode_gae2e"), SubResource("OScriptNodePropertySet_uhhe4"), SubResource("OScriptNodeFunctionEntry_4xix8"), SubResource("OScriptNodeFunctionResult_varh6"), SubResource("OScriptNodeCallStaticFunction_1h4y3"), SubResource("OScriptNodeCallStaticFunction_w42kr"), SubResource("OScriptNodeOperator_njitf"), SubResource("OScriptNodeOperator_jm74n"), SubResource("OScriptNodeOperator_pk6h3"), SubResource("OScriptNodeSceneNode_2lqy0"), SubResource("OScriptNodePropertyGet_xt617"), SubResource("OScriptNodeOperator_jp7l8"), SubResource("OScriptNodeSceneNode_ihyxi"), SubResource("OScriptNodePropertySet_gae2e")])
|
||||
graphs = Array[OScriptGraph]([SubResource("OScriptGraph_orolp"), SubResource("OScriptGraph_xt617"), SubResource("OScriptGraph_jp7l8")])
|
||||
|
||||
44
WorldObjects/base/smeltingMachine.tscn
Normal file
44
WorldObjects/base/smeltingMachine.tscn
Normal file
@@ -0,0 +1,44 @@
|
||||
[gd_scene format=3 uid="uid://bgendwfqkeal3"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://be46bc6046sub" path="res://WorldObjects/base/smelting_machine.torch" id="1_so0bk"]
|
||||
[ext_resource type="Script" uid="uid://c3tgp5r2kwpdp" path="res://WorldObjects/base/scripts/MachineBuiltins.gd" id="2_ujalm"]
|
||||
[ext_resource type="PackedScene" uid="uid://qu5r32m0u141" path="res://Objects/IItemSlot.tscn" id="3_akcuh"]
|
||||
[ext_resource type="PackedScene" uid="uid://covkw4kvf310f" path="res://Objects/SGauge.tscn" id="4_ujalm"]
|
||||
[ext_resource type="PackedScene" uid="uid://dsf43ptd66s8u" path="res://Objects/SUpdate.tscn" id="5_akcuh"]
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_mdtmd"]
|
||||
|
||||
[sub_resource type="BoxMesh" id="BoxMesh_xu0wa"]
|
||||
|
||||
[node name="SmeltingMachine" type="Node3D" unique_id=1372568543]
|
||||
script = ExtResource("1_so0bk")
|
||||
|
||||
[node name="Collider" type="StaticBody3D" parent="." unique_id=35862805 groups=["saveable"]]
|
||||
script = ExtResource("2_ujalm")
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="Collider" unique_id=426222303 groups=["saveable"]]
|
||||
shape = SubResource("BoxShape3D_mdtmd")
|
||||
|
||||
[node name="MeshInstance3D" type="MeshInstance3D" parent="." unique_id=1488241436 groups=["saveable"]]
|
||||
mesh = SubResource("BoxMesh_xu0wa")
|
||||
|
||||
[node name="Material" parent="." unique_id=2108535834 instance=ExtResource("3_akcuh")]
|
||||
transform = Transform3D(0.25, 0, 0, 0, 0.25, 0, 0, 0, 0.25, -0.28519744, 0.27990797, 0.5205065)
|
||||
|
||||
[node name="Fuel" parent="." unique_id=1878138679 instance=ExtResource("3_akcuh")]
|
||||
transform = Transform3D(0.25, 0, 0, 0, 0.25, 0, 0, 0, 0.25, -0.28519744, -0.105529904, 0.5205065)
|
||||
|
||||
[node name="Out" parent="." unique_id=710098531 instance=ExtResource("3_akcuh")]
|
||||
transform = Transform3D(0.25, 0, 0, 0, 0.25, 0, 0, 0, 0.25, 0.3325163, 0.2799618, 0.5205065)
|
||||
|
||||
[node name="SGauge" parent="." unique_id=1241352669 instance=ExtResource("4_ujalm")]
|
||||
transform = Transform3D(0.3, 0, 0, 0, -1.3113417e-08, -0.3, 0, 0.3, -1.3113417e-08, 0.017541423, 0.2826062, 0.49384654)
|
||||
|
||||
[node name="IronHandler" parent="." unique_id=2038046630 instance=ExtResource("5_akcuh")]
|
||||
isActive = true
|
||||
|
||||
[node name="MasterUpdate" parent="." unique_id=1726423703 instance=ExtResource("5_akcuh")]
|
||||
isActive = true
|
||||
|
||||
[connection signal="castUpdate" from="IronHandler" to="." method="_on_iron_handler_cast_update"]
|
||||
[connection signal="castUpdate" from="MasterUpdate" to="." method="_on_master_update_cast_update"]
|
||||
156
WorldObjects/base/smelting_machine.torch
Normal file
156
WorldObjects/base/smelting_machine.torch
Normal file
@@ -0,0 +1,156 @@
|
||||
[orchestration type="OScript" load_steps=12 format=3 uid="uid://be46bc6046sub"]
|
||||
|
||||
[obj type="OScriptFunction" id="OScriptFunction_ge8hl"]
|
||||
guid = "890745DF-1A98-48D6-B8AC-DE6447427CF0"
|
||||
method = {
|
||||
"name": &"_on_iron_handler_cast_update"
|
||||
}
|
||||
id = 4
|
||||
|
||||
[obj type="OScriptFunction" id="OScriptFunction_hlbp6"]
|
||||
guid = "F7E42D92-C59C-4996-B4F0-A86892309736"
|
||||
method = {
|
||||
"name": &"_on_master_update_cast_update"
|
||||
}
|
||||
id = 5
|
||||
|
||||
[obj type="OScriptGraph" id="OScriptGraph_orolp"]
|
||||
graph_name = &"EventGraph"
|
||||
flags = 8
|
||||
nodes = Array[int]([4, 5, 6, 7, 8, 9])
|
||||
functions = Array[int]([4, 5])
|
||||
|
||||
[obj type="OScriptNodeEvent" id="OScriptNodeEvent_6o2m5"]
|
||||
function_id = "890745DF-1A98-48D6-B8AC-DE6447427CF0"
|
||||
id = 4
|
||||
position = Vector2(240, 60)
|
||||
pin_data = Array[Dictionary]([{
|
||||
"pin_name": &"ExecOut",
|
||||
"dir": 1,
|
||||
"flags": 4
|
||||
}])
|
||||
|
||||
[obj type="OScriptNodeEvent" id="OScriptNodeEvent_mhcgy"]
|
||||
function_id = "F7E42D92-C59C-4996-B4F0-A86892309736"
|
||||
id = 5
|
||||
position = Vector2(240, -160)
|
||||
pin_data = Array[Dictionary]([{
|
||||
"pin_name": &"ExecOut",
|
||||
"dir": 1,
|
||||
"flags": 4
|
||||
}])
|
||||
|
||||
[obj type="OScriptNodeSceneNode" id="OScriptNodeSceneNode_akcuh"]
|
||||
node_path = NodePath("Material")
|
||||
target_class_name = "Node3D"
|
||||
id = 6
|
||||
position = Vector2(240, 180)
|
||||
pin_data = Array[Dictionary]([{
|
||||
"pin_name": &"Material",
|
||||
"type": 24,
|
||||
"dir": 1,
|
||||
"flags": 2050,
|
||||
"target_class": "Node3D",
|
||||
"dv": null
|
||||
}])
|
||||
metadata/__base_node_relative = Object(Node3D,"unique_name_in_owner":false,"process_mode":0,"process_priority":0,"process_physics_priority":0,"process_thread_group":0,"physics_interpolation_mode":0,"auto_translate_mode":0,"editor_description":"","transform":Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0),"rotation_edit_mode":0,"rotation_order":2,"top_level":false,"visible":true,"visibility_parent":NodePath(""),"script":null)
|
||||
|
||||
|
||||
[obj type="OScriptNodeSceneNode" id="OScriptNodeSceneNode_mdtmd"]
|
||||
node_path = NodePath("Fuel")
|
||||
target_class_name = "Node3D"
|
||||
id = 7
|
||||
position = Vector2(240, 280)
|
||||
pin_data = Array[Dictionary]([{
|
||||
"pin_name": &"Fuel",
|
||||
"type": 24,
|
||||
"dir": 1,
|
||||
"flags": 2050,
|
||||
"target_class": "Node3D",
|
||||
"dv": null
|
||||
}])
|
||||
metadata/__base_node_relative = Object(Node3D,"unique_name_in_owner":false,"process_mode":0,"process_priority":0,"process_physics_priority":0,"process_thread_group":0,"physics_interpolation_mode":0,"auto_translate_mode":0,"editor_description":"","transform":Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0),"rotation_edit_mode":0,"rotation_order":2,"top_level":false,"visible":true,"visibility_parent":NodePath(""),"script":null)
|
||||
|
||||
|
||||
[obj type="OScriptNodePropertyGet" id="OScriptNodePropertyGet_xu0wa"]
|
||||
mode = 1
|
||||
target_class = &"Node3D"
|
||||
property_name = &"ItemID"
|
||||
property = {
|
||||
"name": &"ItemID",
|
||||
"type": 4,
|
||||
"class_name": &"",
|
||||
"hint": 0,
|
||||
"hint_string": "",
|
||||
"usage": 4096
|
||||
}
|
||||
id = 8
|
||||
size = Vector2(199, 66)
|
||||
position = Vector2(520, 180)
|
||||
pin_data = Array[Dictionary]([{
|
||||
"pin_name": &"target",
|
||||
"type": 24,
|
||||
"flags": 2050,
|
||||
"label": "Node3D",
|
||||
"target_class": "Node3D",
|
||||
"dv": null
|
||||
}, {
|
||||
"pin_name": &"ItemID",
|
||||
"type": 4,
|
||||
"dir": 1,
|
||||
"flags": 2,
|
||||
"usage": 4096
|
||||
}])
|
||||
|
||||
[obj type="OScriptNodePropertyGet" id="OScriptNodePropertyGet_884l8"]
|
||||
mode = 1
|
||||
target_class = &"Node3D"
|
||||
property_name = &"ItemID"
|
||||
property = {
|
||||
"name": &"ItemID",
|
||||
"type": 4,
|
||||
"class_name": &"",
|
||||
"hint": 0,
|
||||
"hint_string": "",
|
||||
"usage": 4096
|
||||
}
|
||||
id = 9
|
||||
size = Vector2(199, 66)
|
||||
position = Vector2(520, 280)
|
||||
pin_data = Array[Dictionary]([{
|
||||
"pin_name": &"target",
|
||||
"type": 24,
|
||||
"flags": 2050,
|
||||
"label": "Node3D",
|
||||
"target_class": "Node3D",
|
||||
"dv": null
|
||||
}, {
|
||||
"pin_name": &"ItemID",
|
||||
"type": 4,
|
||||
"dir": 1,
|
||||
"flags": 2,
|
||||
"usage": 4096
|
||||
}])
|
||||
|
||||
[obj type="OScriptVariable" id="OScriptVariable_m26ko"]
|
||||
name = "delayIron"
|
||||
category = "Default"
|
||||
classification = "type:int"
|
||||
type = 2
|
||||
default_value = 0
|
||||
|
||||
[obj type="OScriptVariable" id="OScriptVariable_d6djj"]
|
||||
name = "iron"
|
||||
category = "Default"
|
||||
classification = "type:String"
|
||||
type = 4
|
||||
default_value = "base:iron_ingot"
|
||||
|
||||
[resource]
|
||||
base_type = &"Node3D"
|
||||
brief_description = "Empty template suitable for all Objects"
|
||||
variables = Array[OScriptVariable]([SubResource("OScriptVariable_m26ko"), SubResource("OScriptVariable_d6djj")])
|
||||
functions = Array[OScriptFunction]([SubResource("OScriptFunction_ge8hl"), SubResource("OScriptFunction_hlbp6")])
|
||||
connections = Array[int]([6, 0, 8, 0, 7, 0, 9, 0])
|
||||
nodes = Array[OScriptNode]([SubResource("OScriptNodeEvent_6o2m5"), SubResource("OScriptNodeEvent_mhcgy"), SubResource("OScriptNodeSceneNode_akcuh"), SubResource("OScriptNodeSceneNode_mdtmd"), SubResource("OScriptNodePropertyGet_xu0wa"), SubResource("OScriptNodePropertyGet_884l8")])
|
||||
graphs = Array[OScriptGraph]([SubResource("OScriptGraph_orolp")])
|
||||
@@ -5,6 +5,7 @@
|
||||
[ext_resource type="PackedScene" uid="uid://c4skbeito3suj" path="res://Objects/ISwitch.tscn" id="3_2f3vd"]
|
||||
[ext_resource type="PackedScene" uid="uid://dsf43ptd66s8u" path="res://Objects/SUpdate.tscn" id="4_2lqy0"]
|
||||
[ext_resource type="Script" uid="uid://c3tgp5r2kwpdp" path="res://WorldObjects/base/scripts/MachineBuiltins.gd" id="5_e42so"]
|
||||
[ext_resource type="PackedScene" uid="uid://qu5r32m0u141" path="res://Objects/IItemSlot.tscn" id="6_2lqy0"]
|
||||
|
||||
[sub_resource type="BoxMesh" id="BoxMesh_i18b1"]
|
||||
|
||||
@@ -38,4 +39,11 @@ script = ExtResource("5_e42so")
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="Collider" unique_id=505912246 groups=["saveable"]]
|
||||
shape = SubResource("BoxShape3D_e1b2x")
|
||||
|
||||
[node name="IItemSlot" parent="." unique_id=2108535834 instance=ExtResource("6_2lqy0")]
|
||||
transform = Transform3D(0.5, 0, 0, 0, 0.5, 0, 0, 0, 0.5, 0.19894007, 0.1565814, -0.5124974)
|
||||
|
||||
[node name="ILed2" parent="." unique_id=2140620593 groups=["saveable"] instance=ExtResource("2_q3u4y")]
|
||||
transform = Transform3D(1, 0, 0, 0, 0.11264832, 0.99363494, 0, -0.99363494, 0.11264832, -0.3300061, 0.06657314, -0.07550442)
|
||||
isLampOn = true
|
||||
|
||||
[connection signal="castUpdate" from="SUpdate" to="." method="_on_s_update_cast_update"]
|
||||
|
||||
Reference in New Issue
Block a user