コード例 #1
0
 public stonebricksfourstepstairsRecipe() : base("stonebricksfourstepstairsrecipe", "phentrixgames.woodcarver", false, 10, 1)
 {
     Requirements.Add(new InventoryItem("stonebricks", 1));
     Result.Add(new InventoryItem("stonebricksfourstepstairs", 1));
 }
コード例 #2
0
 public clayblockbluefourstepstairsinsidecornerRecipe() : base("clayblockbluefourstepstairsinsidecornerrecipe", "pipliz.stonemason", false, 10, 1)
 {
     Requirements.Add(new InventoryItem("clay", 1));
     Result.Add(new InventoryItem("clayblockbluefourstepstairsinsidecorner", 1));
 }
コード例 #3
0
 public ClayblockyellowcurveRecipe() : base("clayblockyellowcurverecipe", "pipliz.stonemason", false, 10, 1)
 {
     Requirements.Add(new InventoryItem("clay", 1));
     Result.Add(new InventoryItem("clayblockyellowcurve", 1));
 }
 public clayblocklightblueupsidedownslopecorneredgeRecipe() : base("clayblocklightblueupsidedownslopecorneredgerecipe", "pipliz.stonemason", false, 10, 1)
 {
     Requirements.Add(new InventoryItem("clay", 1));
     Result.Add(new InventoryItem("clayblocklightblueupsidedownslopecorneredge", 1));
 }
コード例 #5
0
 public bricksslopecornerRecipe() : base("bricksslopecornerrecipe")
 {
     Requirements.Add(new InventoryItem("stonebricks", 1));
     Result.Add(new InventoryItem("bricksslopecorner", 1));
 }
コード例 #6
0
 public stonebrickstwostepstairsRecipe() : base("stonebrickstwostepstairsrecipe")
 {
     Requirements.Add(new InventoryItem("stonebricks", 1));
     Result.Add(new InventoryItem("stonebrickstwostepstairs", 1));
 }
コード例 #7
0
 public PlankscurvecornerRecipe() : base("plankscurvecornerrecipe", "phentrixgames.woodcarver", false, 10, 1)
 {
     Requirements.Add(new InventoryItem("planks", 1));
     Result.Add(new InventoryItem("plankscurvecorner", 1));
 }
コード例 #8
0
 public ironblockupsidedowncurvecornerRecipe() : base("ironblockupsidedowncurvecornerrecipe")
 {
     Requirements.Add(new InventoryItem("stonebricks", 1));
     Result.Add(new InventoryItem("ironblockupsidedowncurvecorner", 1));
 }
コード例 #9
0
        public override void ReadDataXML(XElement ele, ElderScrollsPlugin master)
        {
            XElement subEle;

            if (ele.TryPathTo("EditorID", false, out subEle))
            {
                if (EditorID == null)
                {
                    EditorID = new SimpleSubrecord <String>();
                }

                EditorID.ReadXML(subEle, master);
            }
            if (ele.TryPathTo("Name", false, out subEle))
            {
                if (Name == null)
                {
                    Name = new SimpleSubrecord <String>();
                }

                Name.ReadXML(subEle, master);
            }
            if (ele.TryPathTo("Description", false, out subEle))
            {
                if (Description == null)
                {
                    Description = new SimpleSubrecord <String>();
                }

                Description.ReadXML(subEle, master);
            }
            if (ele.TryPathTo("Icon/Large", false, out subEle))
            {
                if (LargeIcon == null)
                {
                    LargeIcon = new SimpleSubrecord <String>();
                }

                LargeIcon.ReadXML(subEle, master);
            }
            if (ele.TryPathTo("Icon/Small", false, out subEle))
            {
                if (SmallIcon == null)
                {
                    SmallIcon = new SimpleSubrecord <String>();
                }

                SmallIcon.ReadXML(subEle, master);
            }
            if (ele.TryPathTo("Requirements", false, out subEle))
            {
                if (Requirements == null)
                {
                    Requirements = new List <Condition>();
                }

                foreach (XElement e in subEle.Elements())
                {
                    Condition tempCTDA = new Condition();
                    tempCTDA.ReadXML(e, master);
                    Requirements.Add(tempCTDA);
                }
            }
            if (ele.TryPathTo("Data", false, out subEle))
            {
                if (Data == null)
                {
                    Data = new PerkData();
                }

                Data.ReadXML(subEle, master);
            }
            if (ele.TryPathTo("Effects", false, out subEle))
            {
                if (Effects == null)
                {
                    Effects = new List <PerkEffect>();
                }

                foreach (XElement e in subEle.Elements())
                {
                    PerkEffect tempPRKE = new PerkEffect();
                    tempPRKE.ReadXML(e, master);
                    Effects.Add(tempPRKE);
                }
            }
        }
コード例 #10
0
 public stonebrickscurverotatedRecipe() : base("stonebrickscurverotatedrecipe")
 {
     Requirements.Add(new InventoryItem("stonebricks", 1));
     Result.Add(new InventoryItem("stonebrickscurverotated", 1));
 }
コード例 #11
0
 public redplanksupsidedownslopeRecipe() : base("redplanksupsidedownsloperecipe", "phentrixgames.woodcarver", false, 10, 1)
 {
     Requirements.Add(new InventoryItem("redplanks", 1));
     Result.Add(new InventoryItem("redplanksupsidedownslope", 1));
 }
コード例 #12
0
 public clayblockcyancurverotatedRecipe() : base("clayblockcyancurverotatedrecipe", "pipliz.stonemason", false, 10, 1)
 {
     Requirements.Add(new InventoryItem("clay", 1));
     Result.Add(new InventoryItem("clayblockcyancurverotated", 1));
 }
コード例 #13
0
 public plasterblockspikeRecipe() : base("plasterblockspikerecipe", "phentrixgames.woodcarver", false, 10, 1)
 {
     Requirements.Add(new InventoryItem("plasterblock", 1));
     Result.Add(new InventoryItem("plasterblockspike", 1));
 }
コード例 #14
0
 public plankstwostepstairsRecipe() : base("plankstwostepstairsrecipe", "phentrixgames.woodcarver", false, 10, 1)
 {
     Requirements.Add(new InventoryItem("planks", 1));
     Result.Add(new InventoryItem("plankstwostepstairs", 1));
 }
コード例 #15
0
 public plasterblockcurvecornerRecipe() : base("plasterblockcurvecornerrecipe")
 {
     Requirements.Add(new InventoryItem("stonebricks", 1));
     Result.Add(new InventoryItem("plasterblockcurvecorner", 1));
 }
コード例 #16
0
        public override void ReadData(ESPReader reader, long dataEnd)
        {
            while (reader.BaseStream.Position < dataEnd)
            {
                string subTag = reader.PeekTag();

                switch (subTag)
                {
                case "EDID":
                    if (EditorID == null)
                    {
                        EditorID = new SimpleSubrecord <String>();
                    }

                    EditorID.ReadBinary(reader);
                    break;

                case "FULL":
                    if (Name == null)
                    {
                        Name = new SimpleSubrecord <String>();
                    }

                    Name.ReadBinary(reader);
                    break;

                case "DESC":
                    if (Description == null)
                    {
                        Description = new SimpleSubrecord <String>();
                    }

                    Description.ReadBinary(reader);
                    break;

                case "ICON":
                    if (LargeIcon == null)
                    {
                        LargeIcon = new SimpleSubrecord <String>();
                    }

                    LargeIcon.ReadBinary(reader);
                    break;

                case "MICO":
                    if (SmallIcon == null)
                    {
                        SmallIcon = new SimpleSubrecord <String>();
                    }

                    SmallIcon.ReadBinary(reader);
                    break;

                case "CTDA":
                    if (Requirements == null)
                    {
                        Requirements = new List <Condition>();
                    }

                    Condition tempCTDA = new Condition();
                    tempCTDA.ReadBinary(reader);
                    Requirements.Add(tempCTDA);
                    break;

                case "DATA":
                    if (Data == null)
                    {
                        Data = new PerkData();
                    }

                    Data.ReadBinary(reader);
                    break;

                case "PRKE":
                    if (Effects == null)
                    {
                        Effects = new List <PerkEffect>();
                    }

                    PerkEffect tempPRKE = new PerkEffect();
                    tempPRKE.ReadBinary(reader);
                    Effects.Add(tempPRKE);
                    break;

                default:
                    throw new Exception();
                }
            }
        }
コード例 #17
0
 public clayblocktwostepstairsRecipe() : base("clayblocktwostepstairsrecipe", "pipliz.stonemason", false, 10, 1)
 {
     Requirements.Add(new InventoryItem("clay", 1));
     Result.Add(new InventoryItem("clayblocktwostepstairs", 1));
 }
コード例 #18
0
 public clayblocksilverupsidedowncurveRecipe() : base("clayblocksilverupsidedowncurverecipe", "pipliz.stonemason", false, 10, 1)
 {
     Requirements.Add(new InventoryItem("clay", 1));
     Result.Add(new InventoryItem("clayblocksilverupsidedowncurve", 1));
 }
コード例 #19
0
 public clayblockgreenslopeRecipe() : base("clayblockgreensloperecipe", "pipliz.stonemason", false, 10, 1)
 {
     Requirements.Add(new InventoryItem("clay", 1));
     Result.Add(new InventoryItem("clayblockgreenslope", 1));
 }
コード例 #20
0
 public ClayBlockOrangeRecipe() : base("clayblockorangerecipe", "pipliz.stonemason", false, 10, 1)
 {
     Requirements.Add(new InventoryItem("clay", 1));
     Result.Add(new InventoryItem("clayblockorange", 1));
 }
コード例 #21
0
 public stonebricksslopeinsidecornerRecipe() : base("stonebricksslopeinsidecornerrecipe", "phentrixgames.woodcarver", false, 10, 1)
 {
     Requirements.Add(new InventoryItem("stonebricks", 1));
     Result.Add(new InventoryItem("stonebricksslopeinsidecorner", 1));
 }
コード例 #22
0
 public clayblockblackcurvecornerRecipe() : base("clayblockblackcurvecornerrecipe", "pipliz.stonemason", false, 10, 1)
 {
     Requirements.Add(new InventoryItem("clay", 1));
     Result.Add(new InventoryItem("clayblockblackcurvecorner", 1));
 }
コード例 #23
0
 public clayblockpinkupsidedownslopeinsidecornerRecipe() : base("clayblockpinkupsidedownslopeinsidecornerrecipe", "pipliz.stonemason", false, 10, 1)
 {
     Requirements.Add(new InventoryItem("clay", 1));
     Result.Add(new InventoryItem("clayblockpinkupsidedownslopeinsidecorner", 1));
 }
コード例 #24
0
 public bricksfourstepstairsinsidecornerRecipe() : base("bricksfourstepstairsinsidecornerrecipe", "phentrixgames.woodcarver", false, 10, 1)
 {
     Requirements.Add(new InventoryItem("bricks", 1));
     Result.Add(new InventoryItem("bricksfourstepstairsinsidecorner", 1));
 }
コード例 #25
0
 public IronblockslopecornerRecipe() : base("ironblockslopecornerrecipe", "phentrixgames.woodcarver", false, 10, 1)
 {
     Requirements.Add(new InventoryItem("ironblock", 1));
     Result.Add(new InventoryItem("ironblockslopecorner", 1));
 }
コード例 #26
0
 public plasterblockupsidedownslopeinsidecornerRecipe() : base("plasterblockupsidedownslopeinsidecornerrecipe", "phentrixgames.woodcarver", false, 10, 1)
 {
     Requirements.Add(new InventoryItem("plasterblock", 1));
     Result.Add(new InventoryItem("plasterblockupsidedownslopeinsidecorner", 1));
 }
コード例 #27
0
 /// <summary>
 /// Adds a <see cref="DenyAnonymousAuthorizationRequirement"/> to the current instance.
 /// </summary>
 /// <returns>A reference to this instance after the operation has completed.</returns>
 public AuthorizationPolicyBuilder RequireAuthenticatedUser()
 {
     Requirements.Add(new DenyAnonymousAuthorizationRequirement());
     return(this);
 }
コード例 #28
0
 public planksfourstepstairscornerRecipe() : base("planksfourstepstairscornerrecipe")
 {
     Requirements.Add(new InventoryItem("stonebricks", 1));
     Result.Add(new InventoryItem("planksfourstepstairscorner", 1));
 }
コード例 #29
0
ファイル: RedWool.cs プロジェクト: Dorky106/ModsRebuild
 public RedWoolRecipe() : base("Test.Redwool", "pipliz.crafter", false, 10, 1)
 {
     Requirements.Add(new InventoryItem("flax", 1));
     Result.Add(new InventoryItem("RedWool", 1));
 }
コード例 #30
0
 public stonebricksupsidedowncurveRecipe() : base("stonebricksupsidedowncurverecipe")
 {
     Requirements.Add(new InventoryItem("stonebricks", 1));
     Result.Add(new InventoryItem("stonebricksupsidedowncurve", 1));
 }