Add weapon database and equipment component resources with associated services

This commit is contained in:
2025-10-29 01:26:45 +01:00
parent 87169b17ae
commit 626f81cd85
16 changed files with 245 additions and 11 deletions

View File

@@ -1,14 +1,17 @@
[gd_scene load_steps=22 format=4 uid="uid://bkvgcsb8d3v7p"]
[gd_scene load_steps=25 format=4 uid="uid://bkvgcsb8d3v7p"]
[ext_resource type="Script" uid="uid://cfpm5p102f65x" path="res://Code/Presenters/GamePresenter.cs" id="1_qvgq0"]
[ext_resource type="Resource" uid="uid://biev6ri5s8kyf" path="res://Resources/Entities/player.tres" id="2_alii3"]
[ext_resource type="Resource" uid="uid://cr4nf1g4w3xye" path="res://Resources/entity_database.tres" id="2_hy2kt"]
[ext_resource type="Resource" uid="uid://xlqhsfy0v634" path="res://Resources/weapon_database.tres" id="3_xqdar"]
[ext_resource type="Script" uid="uid://cb7vaw6xqjs1i" path="res://Code/Presenters/EntityPresenter.cs" id="5_d0bjv"]
[ext_resource type="Script" uid="uid://b6x8llipvutqs" path="res://Code/Presenters/SceneEntity.cs" id="5_f1ejf"]
[ext_resource type="Script" uid="uid://dc7wq2ij5kwj5" path="res://Code/Resources/AttributeComponentResource.cs" id="6_d0bjv"]
[ext_resource type="PackedScene" uid="uid://wafx73yokhg4" path="res://Objects/pistol_ammo.tscn" id="8_rr1si"]
[ext_resource type="PackedScene" uid="uid://ceo2sg2077t4c" path="res://Objects/health_pack.tscn" id="9_xqdar"]
[ext_resource type="PackedScene" uid="uid://bqdgw5gimh5ug" path="res://Objects/knife_pickup.tscn" id="11_l855d"]
[ext_resource type="Script" uid="uid://uearpvfk21ym" path="res://Code/Resources/SimulationConfigResource.cs" id="11_xnm3i"]
[ext_resource type="PackedScene" uid="uid://bfnu4py7n2sv5" path="res://Objects/pistol_pickup.tscn" id="12_00aki"]
[sub_resource type="ConcavePolygonShape3D" id="ConcavePolygonShape3D_ucfah"]
data = PackedVector3Array(-4.282257, -0.5, 4.977783, -4.282257, -0.5, -4.977783, -4.282257, 0.5, -4.977783, 4.282257, -0.5, -4.977783, -4.282257, -0.5, -4.977783, -4.282257, -0.5, 4.977783, -4.282257, 0.5, -4.977783, -4.282257, -0.5, -4.977783, 4.282257, -0.5, -4.977783, -4.282257, 0.5, -4.977783, -4.282257, 0.5, 4.977783, -4.282257, -0.5, 4.977783, -4.282257, -0.5, 4.977783, -4.282257, 0.5, 4.977783, 4.282257, 0.5, 4.977783, 4.282257, 0.5, 4.977783, -4.282257, 0.5, 4.977783, -4.282257, 0.5, -4.977783, -4.282257, -0.5, 4.977783, 4.282257, -0.5, 4.977783, 4.282257, -0.5, -4.977783, 4.282257, 0.5, 4.977783, 4.282257, -0.5, 4.977783, -4.282257, -0.5, 4.977783, 4.282257, -0.5, -4.977783, 4.282257, -0.5, 4.977783, 4.282257, 0.5, 4.977783, 4.282257, -0.5, -4.977783, 4.282257, 0.5, -4.977783, -4.282257, 0.5, -4.977783, -4.282257, 0.5, -4.977783, 4.282257, 0.5, -4.977783, 4.282257, 0.5, 4.977783, 4.282257, 0.5, 4.977783, 4.282257, 0.5, -4.977783, 4.282257, -0.5, -4.977783)
@@ -116,6 +119,7 @@ shadow_enabled = true
[node name="GamePresenter" type="Node" parent="."]
script = ExtResource("1_qvgq0")
ArchetypesDatabase = ExtResource("2_hy2kt")
WeaponDatabase = ExtResource("3_xqdar")
PlayerArchetype = ExtResource("2_alii3")
SimulationConfig = SubResource("Resource_f4pnd")
metadata/_custom_type_script = "uid://cfpm5p102f65x"
@@ -152,6 +156,22 @@ script = ExtResource("5_f1ejf")
ComponentResources = Array[Resource]([SubResource("Resource_27os8")])
metadata/_custom_type_script = "uid://b6x8llipvutqs"
[node name="Enemy7" type="StaticBody3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 3.1185906, 0.11570263, 1.5766177)
script = ExtResource("5_d0bjv")
[node name="CollisionShape3D" type="CollisionShape3D" parent="Enemy7"]
shape = SubResource("BoxShape3D_hy2kt")
[node name="MeshInstance3D" type="MeshInstance3D" parent="Enemy7"]
mesh = SubResource("BoxMesh_p4c8d")
surface_material_override/0 = SubResource("StandardMaterial3D_f1ejf")
[node name="SceneEntity" type="Node" parent="Enemy7" groups=["SceneEntities"]]
script = ExtResource("5_f1ejf")
ComponentResources = Array[Resource]([SubResource("Resource_27os8")])
metadata/_custom_type_script = "uid://b6x8llipvutqs"
[node name="Enemy3" type="StaticBody3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -2.4516838, 0, -6.099209)
script = ExtResource("5_d0bjv")
@@ -221,3 +241,9 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 3.5896075, -0.81455386, -3.99
[node name="HealthPack" parent="." instance=ExtResource("9_xqdar")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 3.4061804, -0.56455374, 4.434821)
[node name="Knife" parent="." instance=ExtResource("11_l855d")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3.7087288, -0.8145535, 4.6141477)
[node name="Pistol" parent="." instance=ExtResource("12_00aki")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -4.122588, -0.81455374, 1.582226)