gd: basic weapon and readability refacto
This commit is contained in:
21
systems/weapon/WeaponSystem.cs
Normal file
21
systems/weapon/WeaponSystem.cs
Normal file
@ -0,0 +1,21 @@
|
||||
using Godot;
|
||||
|
||||
namespace Movementtests.systems;
|
||||
|
||||
public partial class WeaponSystem : MeshInstance3D
|
||||
{
|
||||
private Node3D _head;
|
||||
private ShapeCast3D _dashCast3D;
|
||||
private Camera3D _camera;
|
||||
private TweenQueueSystem _tweenQueueSystem;
|
||||
|
||||
private MantleSystem _mantleSystem;
|
||||
private MeshInstance3D _dashTarget;
|
||||
|
||||
public void Init(Node3D head, Camera3D camera, TweenQueueSystem tweenQueueSystem)
|
||||
{
|
||||
_head = head;
|
||||
_camera = camera;
|
||||
_tweenQueueSystem = tweenQueueSystem;
|
||||
}
|
||||
}
|
1
systems/weapon/WeaponSystem.cs.uid
Normal file
1
systems/weapon/WeaponSystem.cs.uid
Normal file
@ -0,0 +1 @@
|
||||
uid://iii3wfto4t5b
|
13
systems/weapon/weapon.tscn
Normal file
13
systems/weapon/weapon.tscn
Normal file
@ -0,0 +1,13 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://ckm3d6k08a72u"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://iii3wfto4t5b" path="res://systems/weapon/WeaponSystem.cs" id="1_csqwk"]
|
||||
|
||||
[sub_resource type="CylinderMesh" id="CylinderMesh_q5h8a"]
|
||||
top_radius = 0.01
|
||||
bottom_radius = 0.01
|
||||
height = 1.0
|
||||
|
||||
[node name="Weapon" type="MeshInstance3D"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0)
|
||||
mesh = SubResource("CylinderMesh_q5h8a")
|
||||
script = ExtResource("1_csqwk")
|
Reference in New Issue
Block a user