Add weapon acquisition and swapping systems with data handling
This commit is contained in:
9
GameCore/Player/EquipmentComponent.cs
Normal file
9
GameCore/Player/EquipmentComponent.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
using GameCore.ECS.Interfaces;
|
||||
|
||||
namespace GameCore.Player;
|
||||
|
||||
public class EquipmentComponent : IComponent
|
||||
{
|
||||
public List<string> EquippableWeaponItemIds { get; set; } = [];
|
||||
public int CurrentWeaponIndex { get; set; } = -1; // -1 indicates no weapon equipped
|
||||
}
|
||||
Reference in New Issue
Block a user