// Copyright (c) 2024 Augie R. Maddox, Guavaman Enterprises. All rights reserved. #pragma warning disable 0649 namespace Rewired.Glyphs { using System; using System.Collections.Generic; [Serializable] public class SpriteGlyphSet : GlyphSet { [UnityEngine.Tooltip("The list of glyphs.")] [UnityEngine.SerializeField] private List _glyphs; /// /// The list of glyphs. /// public List glyphs { get { return _glyphs; } set { _glyphs = value; } } /// /// The number of glyphs. /// public override int glyphCount { get { if (_glyphs == null) return 0; return _glyphs.Count; } } /// /// Gets the glyph entry at the specified index. /// /// The index. /// The glyph entry at the specified index. public override EntryBase GetEntry(int index) { if (_glyphs == null) return null; if ((uint)index >= (uint)_glyphs.Count) throw new ArgumentOutOfRangeException("index"); return _glyphs[index]; } [Serializable] public class Entry : EntryBase { } } }