test that heroes are tracked by the party
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
@@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user