Add IStatModifier interface and CharacterWeaponsManager class

This commit is contained in:
2025-07-11 22:40:10 +02:00
parent b95ac51a82
commit cf586916c0
6 changed files with 32 additions and 2 deletions

View File

@@ -0,0 +1,12 @@
using Data;
namespace Interfaces
{
public interface IStatModifier
{
void Apply(CharacterAttributes attributes);
void Remove(CharacterAttributes attributes);
string Description { get; }
}
}

View File

@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: d0d6b61a392341739d65e2332f73560f
timeCreated: 1752266227

View File

@@ -0,0 +1,12 @@
using System.Collections.Generic;
using Sirenix.Serialization;
using UnityEngine;
using Weapons;
namespace Systems
{
public class CharacterWeaponsManager : MonoBehaviour
{
[OdinSerialize] private List<Weapon> equippedWeapons = new();
}
}

View File

@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 359935f34c694f0dbd7cc727404824e9
timeCreated: 1752266125

View File

@@ -3,7 +3,7 @@ using UnityEngine;
namespace Weapons
{
public class AutoWeapon : Weapon, IWeapon
public class AutoWeapon : Weapon
{
[SerializeField] private GameObject projectilePrefab;
[SerializeField] private Transform firePoint;

View File

@@ -6,7 +6,7 @@ using UnityEngine;
namespace Weapons
{
public class MeleeAttack : Weapon, IWeapon
public class MeleeAttack : Weapon
{
[SerializeField] private LayerMask targetMask;