protected override void Parse() { for (int i = 0; i < m_reader.Row; ++i) { m_reader.MarkRow(i); ItemMeta meta = new ItemMeta(m_reader.ReadInt()); meta.NameKey = m_reader.ReadString(); meta.Prefab = m_reader.ReadString(); meta.Cost = m_reader.ReadInt(); meta.CanUse = m_reader.ReadBool(); meta.RelatedId = m_reader.ReadInt(); meta.abilityId = m_reader.ReadInt(); ItemMetaManager.AddMeta(meta); } }
public void Init(string id) { _meta = ItemMetaManager.GetMeta(id); }
public static void AddMeta(ItemMeta meta) { m_itemDict.Add(meta.sId, meta); }