Added public getter for character sheets

This commit is contained in:
Amaan Shawkath authored and Minzkraut committed 2023-07-08 22:00:05 +02:00
1 parent afe6a6592a
commit 37d0c66887
1 file changed
+6 -2
@@ -1,10 +1,14 @@
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.ObjectModel;
using Unity.VisualScripting;
using UnityEngine; using UnityEngine;
public class CharacterSheetController : MonoBehaviour public class CharacterSheetController : MonoBehaviour
{ {
public CharacterSheet m_characterSheet; [SerializeField] private CharacterSheet m_characterSheet;
public Transform m_characterSheetTransform; [SerializeField] private Transform m_characterSheetTransform;
public IReadOnlyCollection<CharacterSheet> CharacterSheets => m_characterSheets.Values;
private Dictionary<string, CharacterSheet> m_characterSheets = new Dictionary<string, CharacterSheet>(); private Dictionary<string, CharacterSheet> m_characterSheets = new Dictionary<string, CharacterSheet>();