Added public getter for character sheets

This commit is contained in:
Amaan Shawkath
2023-07-08 18:16:13 +01:00
committed by Minzkraut
parent afe6a6592a
commit 37d0c66887

View File

@@ -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>();