Ejemplo n.º 1
0
 public override void OnLoadAsset(System.Xml.XmlReader reader)
 {
     base.OnLoadAsset(reader);
     switch (reader.Name)
     {
     case "Mod":
     {
         string modAssetType = reader.GetAttrString("AssetType", "");
         var    asset        = RPGStatModifierUtility.CreateAsset(modAssetType);
         if (asset != null)
         {
             Mods.Add(asset);
             Mods[Mods.Count - 1].OnLoadAsset(reader);
         }
     }
     break;
     }
 }
 public override void OnLoadAsset(System.Xml.XmlReader reader)
 {
     base.OnLoadAsset(reader);
     switch (reader.Name)
     {
     case "Effect":
     {
         string skillEffectAssetType = reader.GetAttrString("AssetType", "");
         var    asset = EffectUtility.CreateAssetOfType(skillEffectAssetType);
         if (asset != null)
         {
             Effects.Add(asset);
             Effects[Effects.Count - 1].OnLoadAsset(reader);
         }
     }
     break;
     }
 }