public void OnAfterDeserialize() { requiredItemTypes = new List <ItemType>(); if (required_items != null) { foreach (var name in required_items) { requiredItemTypes.Add(ItemType.FromName(name)); } } }