From 2bffefc0cb7fac8c24a84e0722074980b159ae91 Mon Sep 17 00:00:00 2001 From: Branden J Brown Date: Sun, 30 Jul 2023 00:48:16 -0500 Subject: [PATCH] add skeleton of hero attributes --- Assets/Scripts/HeroAttributes.cs | 15 +++++++++++++++ Assets/Scripts/HeroAttributes.cs.meta | 11 +++++++++++ 2 files changed, 26 insertions(+) create mode 100644 Assets/Scripts/HeroAttributes.cs create mode 100644 Assets/Scripts/HeroAttributes.cs.meta diff --git a/Assets/Scripts/HeroAttributes.cs b/Assets/Scripts/HeroAttributes.cs new file mode 100644 index 0000000..28f7ce7 --- /dev/null +++ b/Assets/Scripts/HeroAttributes.cs @@ -0,0 +1,15 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +public class HeroAttributes : ScriptableObject +{ + // TODO(zeph): does these being private make it hard to create a new hero? + // what about applying effects? + [SerializeField] private Attribute STR; + [SerializeField] private Attribute MAG; + [SerializeField] private Attribute DEX; + [SerializeField] private Attribute CON; + [SerializeField] private Attribute CHA; + [SerializeField] private Attribute FTH; +} diff --git a/Assets/Scripts/HeroAttributes.cs.meta b/Assets/Scripts/HeroAttributes.cs.meta new file mode 100644 index 0000000..a052f16 --- /dev/null +++ b/Assets/Scripts/HeroAttributes.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 538672e6491e46748a1cc27fe3a52455 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: