just reorganised files thats it

This commit is contained in:
2025-06-24 02:55:20 +10:00
parent 3c5c8f1a44
commit 2bfea6471c
198 changed files with 313 additions and 747 deletions

View File

@@ -1,4 +1,5 @@
class_name HitscanWeapon extends Weapon
class_name HitscanWeapon
extends Weapon
@export var raycast: RayCast3D
@export var range_debug_indicator: CSGSphere3D

View File

@@ -1,4 +1,5 @@
class_name ProjectileWeapon extends Weapon
class_name ProjectileWeapon
extends Weapon
@export var projectile_scene: PackedScene

View File

@@ -1,4 +1,5 @@
class_name ShapecastWeapon extends Weapon
class_name ShapecastWeapon
extends Weapon
@export var shapecast: ShapeCast3D
@export var range_debug_indicator: CSGSphere3D

View File

@@ -1,4 +1,5 @@
class_name StatusApplyingWeapon extends HitscanWeapon
class_name StatusApplyingWeapon
extends HitscanWeapon
@export var status_stats: StatusStats

View File

@@ -1,4 +1,5 @@
class_name Weapon extends Node3D
class_name Weapon
extends Node3D
signal energy_spent(energy: int, type: Data.EnergyType)
signal energy_recharged(energy: int, type: Data.EnergyType)
@@ -54,6 +55,7 @@ func _process(delta: float) -> void:
energy_spent.emit(delta, stats.energy_type)
@warning_ignore("unused_parameter")
func _physics_process(delta: float) -> void:
if trigger_held and current_energy >= energy_cost and time_since_firing >= time_between_shots:
if stats.energy_type == Data.EnergyType.DISCRETE: