public virtual void OnLoadAsset(XmlReader reader) { switch (reader.Name) { case "Gambit": { Priority = reader.GetAttrInt("Priority", 0); SkillId = reader.GetAttrString("Skill", ""); MaxUse = reader.GetAttrInt("MaxUse", -1); } break; case "Condition": { var type = reader.GetAttrString("Type", ""); GambitConditionAsset gambitCondition = GambitConditionUtility.CreateAssetOfType(type); if (gambitCondition != null) { Conditions.Add(gambitCondition); Conditions [Conditions.Count - 1].OnLoadAsset(reader); } } break; default: { } break; } }
public GambitCondition(GambitConditionAsset asset) { }