Exemplo n.º 1
0
        public virtual void OnLoadAsset(XmlReader reader)
        {
            switch (reader.Name)
            {
            case "Stat":
                StatBaseValue  = reader.GetAttrInt("BaseValue", 0);
                StatCategoryId = reader.GetAttrInt("CategoryId", 0);
                AssignedStatId = reader.GetAttrInt("AssignedStatId", 0);
                break;

            case "StatScaler":
                var type = reader.GetAttrString("Type", "");
                StatScaler = RPGStatScalerUtility.CreateAsset(type);
                if (StatScaler != null)
                {
                    StatScaler.OnLoadAsset(reader);
                }
                break;
            }
        }
Exemplo n.º 2
0
 public RPGStatScaler(RPGStatScalerAsset asset)
 {
 }