示例#1
0
        partial void WriteValue1XML(XElement ele, ElderScrollsPlugin master)
        {
            if (Value1 != null)
            {
                XElement subEle = new XElement("Dummy");
                switch (Data.Type)
                {
                case ChallengeType.KillFromAFormList:
                    ele.TryPathTo("FormList", true, out subEle);
                    break;

                case ChallengeType.KillASpecificFormID:
                    ele.TryPathTo("Actor", true, out subEle);
                    break;

                case ChallengeType.HitAnEnemy:
                    ele.TryPathTo("Actor", true, out subEle);
                    break;

                case ChallengeType.DiscoverAMapMarker:
                    ele.TryPathTo("MapMarker", true, out subEle);
                    break;

                case ChallengeType.UseAnItem:
                    ele.TryPathTo("Ingestible", true, out subEle);
                    break;

                case ChallengeType.AcquireAnItem:
                    ele.TryPathTo("Object", true, out subEle);
                    break;

                case ChallengeType.UseASkill:
                    ele.TryPathTo("ActorValue", true, out subEle);
                    break;

                case ChallengeType.DoDamage:
                    ele.TryPathTo("Creature", true, out subEle);
                    break;

                case ChallengeType.UseAnItemFromAList:
                    ele.TryPathTo("FormList", true, out subEle);
                    break;

                case ChallengeType.AcquireAnItemFromAList:
                    ele.TryPathTo("FormList", true, out subEle);
                    break;

                case ChallengeType.MiscellaneousStat:
                    ele.TryPathTo("Stat", true, out subEle);
                    break;

                case ChallengeType.CraftUsingAnItem:
                    ele.TryPathTo("Object", true, out subEle);
                    break;

                default:
                    return;
                }
                Value1.WriteXML(subEle, master);
            }
        }