using System.Collections.Frozen; using System.Collections.Generic; using AYellowpaper.SerializedCollections; using UnityEngine; namespace Net.Project.B.AI { public class ScriptableNpcSpawn : ScriptableObject,IScriptableNpcSpawn { [SerializeField] private SerializedDictionary npcWeights; public IReadOnlyDictionary NpcWeights => npcWeights.ToFrozenDictionary(x=>x.Key.name,x=>x.Value); } }