Ejemplo n.º 1
0
        partial void ReadValue1XML(XElement ele, ElderScrollsPlugin master)
        {
            XElement subEle = new XElement("Dummy");

            switch (Data.Type)
            {
            case ChallengeType.KillFromAFormList:
                if (ele.TryPathTo("FormList", false, out subEle))
                {
                    Value1 = new RecordReference();
                }
                else
                {
                    return;
                }
                break;

            case ChallengeType.KillASpecificFormID:
                if (ele.TryPathTo("Actor", false, out subEle))
                {
                    Value1 = new RecordReference();
                }
                else
                {
                    return;
                }
                break;

            case ChallengeType.HitAnEnemy:
                if (ele.TryPathTo("Actor", false, out subEle))
                {
                    Value1 = new RecordReference();
                }
                else
                {
                    return;
                }
                break;

            case ChallengeType.DiscoverAMapMarker:
                if (ele.TryPathTo("MapMarker", false, out subEle))
                {
                    Value1 = new RecordReference();
                }
                else
                {
                    return;
                }
                break;

            case ChallengeType.UseAnItem:
                if (ele.TryPathTo("Ingestible", false, out subEle))
                {
                    Value1 = new RecordReference();
                }
                else
                {
                    return;
                }
                break;

            case ChallengeType.AcquireAnItem:
                if (ele.TryPathTo("Object", false, out subEle))
                {
                    Value1 = new RecordReference();
                }
                else
                {
                    return;
                }
                break;

            case ChallengeType.UseASkill:
                if (ele.TryPathTo("ActorValue", false, out subEle))
                {
                    Value1 = new SimpleSubrecord <ActorValues>();
                }
                else
                {
                    return;
                }
                break;

            case ChallengeType.DoDamage:
                if (ele.TryPathTo("Creature", false, out subEle))
                {
                    Value1 = new RecordReference();
                }
                else
                {
                    return;
                }
                break;

            case ChallengeType.UseAnItemFromAList:
                if (ele.TryPathTo("FormList", false, out subEle))
                {
                    Value1 = new RecordReference();
                }
                else
                {
                    return;
                }
                break;

            case ChallengeType.AcquireAnItemFromAList:
                if (ele.TryPathTo("FormList", false, out subEle))
                {
                    Value1 = new RecordReference();
                }
                else
                {
                    return;
                }
                break;

            case ChallengeType.MiscellaneousStat:
                if (ele.TryPathTo("Stat", false, out subEle))
                {
                    Value1 = new RecordReference();
                }
                else
                {
                    return;
                }
                break;

            case ChallengeType.CraftUsingAnItem:
                if (ele.TryPathTo("Object", false, out subEle))
                {
                    Value1 = new RecordReference();
                }
                else
                {
                    return;
                }
                break;

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