From 2c630230547095f58cd785b40ed83f8468aebc6b Mon Sep 17 00:00:00 2001
From: Ny Bruker <robinhs@stud.ntnu.no>
Date: Fri, 9 Dec 2022 16:01:49 +0100
Subject: [PATCH] Added new class AbilityEntity.

---
 .../Code/Core/Abilities/Base/AbilityEntity.cs | 38 +++++++++++++++++++
 1 file changed, 38 insertions(+)
 create mode 100644 MrBigsock/Assets/Code/Core/Abilities/Base/AbilityEntity.cs

diff --git a/MrBigsock/Assets/Code/Core/Abilities/Base/AbilityEntity.cs b/MrBigsock/Assets/Code/Core/Abilities/Base/AbilityEntity.cs
new file mode 100644
index 00000000..2ef90444
--- /dev/null
+++ b/MrBigsock/Assets/Code/Core/Abilities/Base/AbilityEntity.cs
@@ -0,0 +1,38 @@
+using System.Collections;
+using System;
+using System.Collections.Generic;
+using UnityEngine;
+using UnityEngine.InputSystem;
+
+
+namespace BigSock {
+	/*
+		An object representing an ability held by a player.
+	*/
+	class AbilityEntity {
+
+		// The ability held in this slot.
+		public IAbility Ability { get; }
+
+		// The index of the ability
+		public int Index { get; }
+
+		// The time this ability started charging.
+		public float ChargeStarted { get; }
+
+		// The keys bound to this ability.
+		public List<KeyCode> Keys { get; set; }
+
+
+
+
+		public AbilityEntity(IAbility ability, int index, List<KeyCode> keys = null) {
+			if(ability == null) throw new ArgumentNullException(nameof(ability));
+
+			keys ??= new List<KeyCode>();
+
+			Ability = ability;
+			Index = index;
+		}
+	}
+}
-- 
GitLab