From 239cec99522b232765ae6b5feb817f624c2758e4 Mon Sep 17 00:00:00 2001
From: Ny Bruker <robinhs@stud.ntnu.no>
Date: Sat, 29 Oct 2022 19:10:25 +0200
Subject: [PATCH] Added new class that will hold parameters for abilities.

---
 .../Code/Core/Abilities/Base/AbilityParam.cs  | 34 ++++++++++++++++++
 .../Core/Abilities/Base/AbilityParam.cs.meta  | 11 ++++++
 .../Code/Core/Abilities/Base/IAbilityParam.cs | 35 +++++++++++++++++++
 .../Core/Abilities/Base/IAbilityParam.cs.meta | 11 ++++++
 4 files changed, 91 insertions(+)
 create mode 100644 MrBigsock/Assets/Code/Core/Abilities/Base/AbilityParam.cs
 create mode 100644 MrBigsock/Assets/Code/Core/Abilities/Base/AbilityParam.cs.meta
 create mode 100644 MrBigsock/Assets/Code/Core/Abilities/Base/IAbilityParam.cs
 create mode 100644 MrBigsock/Assets/Code/Core/Abilities/Base/IAbilityParam.cs.meta

diff --git a/MrBigsock/Assets/Code/Core/Abilities/Base/AbilityParam.cs b/MrBigsock/Assets/Code/Core/Abilities/Base/AbilityParam.cs
new file mode 100644
index 00000000..33681d7a
--- /dev/null
+++ b/MrBigsock/Assets/Code/Core/Abilities/Base/AbilityParam.cs
@@ -0,0 +1,34 @@
+using System.Collections;
+using System;
+using System.Collections.Generic;
+using System.Text;
+
+using UnityEngine;
+using UnityEngine.InputSystem;
+
+
+namespace BigSock {
+
+	/*
+		The parameters we send to all abilities.
+	*/
+	public class AbilityParam : IAbilityParam {
+
+		/*
+			The position the actor is currently aiming at.
+				Ex.: For player, it's the cursor position.
+		*/
+		public Vector2? TargetPos { get; set; }
+
+		/*
+			The direction the actor is moving.
+		*/
+		public Vector2? MovementDir { get; set; }
+
+		/*
+			The character that activated the ability.
+		*/
+		public Character Actor { get; set; }
+	}
+
+}
\ No newline at end of file
diff --git a/MrBigsock/Assets/Code/Core/Abilities/Base/AbilityParam.cs.meta b/MrBigsock/Assets/Code/Core/Abilities/Base/AbilityParam.cs.meta
new file mode 100644
index 00000000..1b3fe5bb
--- /dev/null
+++ b/MrBigsock/Assets/Code/Core/Abilities/Base/AbilityParam.cs.meta
@@ -0,0 +1,11 @@
+fileFormatVersion: 2
+guid: b73814bfc110bc94086fae9763407d07
+MonoImporter:
+  externalObjects: {}
+  serializedVersion: 2
+  defaultReferences: []
+  executionOrder: 0
+  icon: {instanceID: 0}
+  userData: 
+  assetBundleName: 
+  assetBundleVariant: 
diff --git a/MrBigsock/Assets/Code/Core/Abilities/Base/IAbilityParam.cs b/MrBigsock/Assets/Code/Core/Abilities/Base/IAbilityParam.cs
new file mode 100644
index 00000000..9741d187
--- /dev/null
+++ b/MrBigsock/Assets/Code/Core/Abilities/Base/IAbilityParam.cs
@@ -0,0 +1,35 @@
+using System.Collections;
+using System;
+using System.Collections.Generic;
+using System.Text;
+
+using UnityEngine;
+using UnityEngine.InputSystem;
+
+
+namespace BigSock {
+
+	/*
+		The parameters we send to all abilities.
+	*/
+	public interface IAbilityParam {
+
+		/*
+			The position the actor is currently aiming at.
+				Ex.: For player, it's the cursor position.
+		*/
+		Vector2? TargetPos { get; set; }
+
+		/*
+			The direction the actor is moving.
+		*/
+		Vector2? MovementDir { get; set; }
+
+		/*
+			The character that activated the ability.
+		*/
+		Character Actor { get; set; }
+
+	}
+
+}
\ No newline at end of file
diff --git a/MrBigsock/Assets/Code/Core/Abilities/Base/IAbilityParam.cs.meta b/MrBigsock/Assets/Code/Core/Abilities/Base/IAbilityParam.cs.meta
new file mode 100644
index 00000000..793dffb5
--- /dev/null
+++ b/MrBigsock/Assets/Code/Core/Abilities/Base/IAbilityParam.cs.meta
@@ -0,0 +1,11 @@
+fileFormatVersion: 2
+guid: 337bd5294aa3e514f853b1a94eeb4c32
+MonoImporter:
+  externalObjects: {}
+  serializedVersion: 2
+  defaultReferences: []
+  executionOrder: 0
+  icon: {instanceID: 0}
+  userData: 
+  assetBundleName: 
+  assetBundleVariant: 
-- 
GitLab