test that heroes are tracked by the party
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
2023-08-06 22:49:02 -05:00
parent e8f581dea8
commit 15d8d1837d
8 changed files with 202 additions and 0 deletions

View File

@@ -12,4 +12,5 @@ public class HeroPartySO : ScriptableObject
public void Add(HeroUnit unit) { unitList.Add(unit); }
public void Remove(HeroUnit unit) { unitList.Remove(unit); }
public int Count => unitList.Count;
}

View File

@@ -2,6 +2,9 @@ using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System.Runtime.CompilerServices;
[assembly: InternalsVisibleTo("TestsPlaymode")]
/// <summary>
/// Component that makes a duder a duder.
/// Manages class, skills, level, attrs, and AI.
@@ -25,4 +28,9 @@ public class HeroUnit : MonoBehaviour
{
party.Remove(this);
}
internal HeroPartySO getParty()
{
return party;
}
}