コード例 #1
0
 public b1(e2 e, Graphics graphics, a1 a, bool flag, bool flag2)
 {
     this.A = e;
     this.A = graphics;
     this.A = a;
     this.A = flag;
     this.a = flag2;
 }
コード例 #2
0
bool p(a1 a){return a.LocalName=="xmlns"||a.Prefix=="xmlns";}static void q(
XmlReader a,XmlWriter b,bool c,List<string>d,string f=null){switch(a.NodeType){
case XmlNodeType.Element:b.WriteStartElement(a.Prefix,a.LocalName,a.NamespaceURI
);var g=new a1[a.AttributeCount];int h=-1;for(int i=0;i<a.AttributeCount;i++){a.
MoveToAttribute(i);g[i].Prefix=a.Prefix;g[i].LocalName=a.LocalName;g[i].
NamespaceURI=a.NamespaceURI;g[i].Value=a.Value;if(a.LocalName=="xmlns")h=i;}if(h
!=-1)b.WriteAttributeString(g[h].Prefix,g[h].LocalName,null,g[h].Value);for(var
i=0;i<g.Length;i++){if(i==h)continue;if(g[i].NamespaceURI==o)continue;if(!p(g[i]
))continue;b.WriteAttributeString(g[i].Prefix,g[i].LocalName,null,g[i].Value);}
for(var i=0;i<g.Length;i++){if(i==h)continue;if(p(g[i]))continue;if(g[i].
NamespaceURI==o)continue;if(c&&g[i].LocalName=="AutomationId")continue;if(g[i].
LocalName=="Name"&&g[i].Prefix=="x")d.Add(g[i].Value);b.WriteAttributeString(g[i
].Prefix,g[i].LocalName,null,g[i].Value);}if(a.AttributeCount>0)a.MoveToElement(
);if(a.IsEmptyElement)b.WriteEndElement();break;case XmlNodeType.Text:b.
WriteString(a.Value);break;case XmlNodeType.Whitespace:case XmlNodeType.
SignificantWhitespace:break;case XmlNodeType.CDATA:b.WriteCData(a.Value);break;
case XmlNodeType.EntityReference:b.WriteEntityRef(a.Name);break;case XmlNodeType
.XmlDeclaration:case XmlNodeType.ProcessingInstruction:b.
WriteProcessingInstruction(a.Name,a.Value);break;case XmlNodeType.DocumentType:b
.WriteDocType(a.Name,a.GetAttribute("PUBLIC"),a.GetAttribute("SYSTEM"),a.Value);
break;case XmlNodeType.Comment:b.WriteComment(a.Value);break;case XmlNodeType.
EndElement:b.WriteFullEndElement();break;default:break;}}struct a1{public string
コード例 #3
0
    private MySpell a(MySpell A_0)
    {
        if (A_0 == null)
        {
            return(null);
        }
        if (this.e.ContainsKey(A_0.Id))
        {
            return(this.e[A_0.Id].e.b);
        }
        bw.a a = new bw.a {
            e = new bw.b(bw.b.a.a)
        };
        bw.b b = new bw.b(bw.b.a.a)
        {
            b = PluginCore.cq.h.a(A_0)
        };
        if (b.b != null)
        {
            b.a = b.b.SkillWithSchool;
        }
        bw.b b2 = new bw.b(bw.b.a.b);
        foreach (int num in PluginCore.cq.j.e())
        {
            string str;
            if (PluginCore.cq.p.d(num) != null)
            {
                str = PluginCore.cq.p.d(num).g() + " [" + num.ToString() + "]";
            }
            else
            {
                str = num.ToString();
            }
            PluginCore.cq.n.a("Find debuff choice (" + str + "): Begin", e8.j);
            if (!dh.b(num) || (dh.c(num) != PluginCore.cg))
            {
                goto Label_03EA;
            }
            if (!fn.b(PluginCore.cq.aw.get_WorldFilter().get_Item(num)))
            {
                goto Label_03B9;
            }
            a1   a2 = PluginCore.cq.n.c(num);
            fn.a a3 = PluginCore.cq.n.d(num);
            if (((a2 != a1.c) && (a2 != a1.e)) && (((a2 != a1.f) && (a2 != a1.g)) && (a2 != a1.b)))
            {
                goto Label_0392;
            }
            if ((a2 != a1.b) || PluginCore.cq.z.a(num))
            {
                PluginCore.cq.n.a("Find debuff choice (" + str + "): Test 1 passed", e8.j);
                if (a3.g != null)
                {
                    PluginCore.cq.n.a("Find debuff choice (" + str + "): Test 2 passed", e8.j);
                    if (a3.g.RealFamily == A_0.RealFamily)
                    {
                        PluginCore.cq.n.a("Find debuff choice (" + str + "): Test 3 passed", e8.j);
                        if (b2.b != null)
                        {
                            PluginCore.cq.n.a("Find debuff choice (" + str + "): Test 4 passed", e8.j);
                            if (a3.g.Quality <= b2.b.Quality)
                            {
                                PluginCore.cq.n.a("Find debuff choice (" + str + "): Test 5 passed", e8.j);
                                if (a3.h <= b2.a)
                                {
                                    PluginCore.cq.n.a("Find debuff choice (" + str + "): Test 6 passed", e8.j);
                                    goto Label_036B;
                                }
                            }
                        }
                        b2.b = a3.g;
                        b2.a = a3.h;
                        a.d  = num;
                        PluginCore.cq.n.a("Find debuff choice (" + str + "): Item set to be used, quality " + b2.a.ToString() + ".", e8.j);
                    }
                }
            }
Label_036B:
            PluginCore.cq.n.a("Find debuff choice (" + str + "): Item tests done.", e8.j);
            continue;
Label_0392:
            PluginCore.cq.n.a("Find debuff choice (" + str + "): Stop, wrong object type", e8.j);
            continue;
Label_03B9:
            ai.a("Warning: DbT ignoring item " + PluginCore.cq.aw.get_WorldFilter().get_Item(num).get_Name() + " because it cannot currently be wielded.");
            continue;
Label_03EA:
            PluginCore.cq.n.a("Find debuff choice (" + str + "): Stop, object invalid", e8.j);
        }
        bw.b b3 = new bw.b(bw.b.a.c);
        foreach (KeyValuePair <string, fz> pair in PluginCore.cq.l.h)
        {
            if (((fz)pair.Value) == fz.h)
            {
                bz bz = PluginCore.cq.x.d(pair.Key);
                if (bz == null)
                {
                    ai.a("Warning: DbT ignoring item " + pair.Key + " because it is not in the grenade database.");
                }
                else if (!fn.b(bz.b, bz.c, bz.d, bz.a))
                {
                    ai.a("Warning: DbT ignoring item " + bz.a + " because it cannot currently be wielded.");
                }
                else if (bz.e.RealFamily == A_0.RealFamily)
                {
                    bw.b b4 = new bw.b(bw.b.a.c)
                    {
                        b = bz.e,
                        a = bz.f
                    };
                    if (b4.a(b3) > 0)
                    {
                        MyList <int> list2 = dh.d(pair.Key);
                        if (list2.Count > 0)
                        {
                            int num2 = 0x7fffffff;
                            int num3 = 0;
                            foreach (int num4 in list2)
                            {
                                int num5 = PluginCore.cq.aw.get_WorldFilter().get_Item(num4).Values(0xd000006);
                                if (num5 < num2)
                                {
                                    num3 = num4;
                                    num2 = num5;
                                }
                            }
                            if (num3 != 0)
                            {
                                a.b = null;
                                a.c = "";
                                a.a = num3;
                                b3  = b4;
                            }
                        }
                        else
                        {
                            MyPair <int, int> pair2 = PluginCore.cq.y.a(pair.Key, 1);
                            if (pair2 != null)
                            {
                                a.b = pair2;
                                a.c = pair.Key;
                                a.a = 0;
                                b3  = b4;
                            }
                        }
                    }
                }
            }
        }
        a.e = b;
        if (a.e.a(b2) < 0)
        {
            a.e = b2;
        }
        if (a.e.a(b3) < 0)
        {
            a.e = b3;
        }
        this.e[A_0.Id] = a;
        return(a.e.b);
    }
コード例 #4
0
ファイル: BiQuadParameter.cs プロジェクト: bangush/Shamisen
 /// <summary>
 /// Initializes a new instance of the <see cref="BiQuadParameter"/> struct.
 /// </summary>
 /// <param name="b0">The b0.</param>
 /// <param name="b1">The b1.</param>
 /// <param name="b2">The b2.</param>
 /// <param name="a0">The a0.</param>
 /// <param name="a1">The a1.</param>
 /// <param name="a2">The a2.</param>
 private BiQuadParameter(float b0, float b1, float b2, float a0, float a1, float a2) => (B, A) = (new Vector3(b0, b1, b2) / a0, new Vector2(a1, a2) / a0);
コード例 #5
0
    public static bool a(a1 A_0, eDamageElement A_1, int A_2, ePrismaticDamageBehavior A_3)
    {
        int num;
        SkillInfo info;
        b = 0;
        c = 0;
        a = false;
        if (PluginCore.cq.x.e())
        {
            num = 0;
            switch (A_0)
            {
                case a1.e:
                    num = 0x2f;
                    goto Label_0057;

                case a1.f:
                    num = 0x2f;
                    goto Label_0057;

                case a1.g:
                    num = 0x2f;
                    goto Label_0057;
            }
            b();
        }
        return false;
    Label_0057:
        info = null;
        eTrainingType type = 1;
        int num2 = 0;
        try
        {
            info = PluginCore.cq.aw.get_CharacterFilter().get_Underlying().get_Skill((eSkillID) num);
            type = info.get_Training();
            num2 = info.get_Base();
        }
        finally
        {
            if (info != null)
            {
                Marshal.ReleaseComObject(info);
            }
        }
        string str = "";
        if ((PluginCore.cq.av.g() != 0) && (PluginCore.cq.aw.get_WorldFilter().get_Item(PluginCore.cq.av.g()).Values(0xd000006, 0) > A_2))
        {
            str = PluginCore.cq.aw.get_WorldFilter().get_Item(PluginCore.cq.av.g()).get_Name();
        }
        int num3 = er.e("UseSpecialAmmo");
        int num4 = -2147483648;
        bool flag = true;
        foreach (v v in PluginCore.cq.x.c["AmmunitionOptions"].d())
        {
            eDamageElement prismatic = (eDamageElement) k.e(v.a("Element"));
            if (prismatic == eDamageElement.PrismaticDatabaseEntryOld)
            {
                prismatic = eDamageElement.Prismatic;
            }
            if (k.e(v.a("LauncherType")) == A_0)
            {
                int num5 = k.e(v.a("Quality"));
                if ((A_3 == ePrismaticDamageBehavior.ForcePrismatic) && (prismatic != eDamageElement.Prismatic))
                {
                    num5 -= 0x3e8;
                }
                if (prismatic != A_1)
                {
                    if (prismatic != eDamageElement.Prismatic)
                    {
                        continue;
                    }
                    bool flag2 = true;
                    switch (A_3)
                    {
                        case ePrismaticDamageBehavior.Any:
                            flag2 = true;
                            break;

                        case ePrismaticDamageBehavior.NoPrismatic:
                            flag2 = false;
                            break;

                        case ePrismaticDamageBehavior.ForcePrismatic:
                            flag2 = true;
                            break;
                    }
                    if (!flag2)
                    {
                        num5 -= 0x3e8;
                    }
                }
                if (num5 >= num4)
                {
                    string str2 = k.b(v.a("AmmoName"));
                    int num6 = k.e(v.a("WieldReq"));
                    if ((num6 <= 0) || (((type != 1) && (type != null)) && (num2 >= num6)))
                    {
                        int num7 = k.e(v.a("WieldReq2Skill"));
                        int num8 = k.e(v.a("WieldReq2Value"));
                        if ((num7 != 0) && (num8 != 0))
                        {
                            SkillType type2 = (SkillType) (num7 + 50);
                            if ((PluginCore.cq.ax.get_Actions().get_SkillTrainLevel().get_Item(type2) == 0) || (PluginCore.cq.ax.get_Actions().get_Skill().get_Item(type2) < num8))
                            {
                                continue;
                            }
                        }
                        int num9 = k.e(v.a("Special"));
                        if ((num9 == 0) || ((num9 & num3) != 0))
                        {
                            if (str == str2)
                            {
                                b = 1;
                                flag = true;
                                num4 = num5;
                            }
                            else
                            {
                                int num10 = A_2;
                                if (num10 < 1)
                                {
                                    num10 = 1;
                                }
                                if (dh.a(str2) >= num10)
                                {
                                    num4 = num5;
                                    a = false;
                                    flag = false;
                                    b = dh.c(str2);
                                }
                                else
                                {
                                    MyPair<int, int> pair = PluginCore.cq.y.a(str2, num10);
                                    if (pair != null)
                                    {
                                        num4 = num5;
                                        flag = false;
                                        a = true;
                                        d = str2;
                                        b = pair.a;
                                        c = pair.b;
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
        return !flag;
    }
コード例 #6
0
 public static bool b(a1 A_0, eDamageElement A_1, int A_2, ePrismaticDamageBehavior A_3)
 {
     return (a(A_0, A_1, A_2, A_3) || (b != 0));
 }
コード例 #7
0
 assertTrue(a1 == a2);
コード例 #8
0
 AssertEquals(a1.getClass(), A.class);
コード例 #9
0
 assertTrue(a1 == a2);
コード例 #10
0
 var(a1, s1, w1) = source.Run(e, s);
コード例 #11
0
bool p(a1 a){return a.LocalName=="xmlns"||a.Prefix=="xmlns";}static void q(
コード例 #12
0
 => GetOverlap(a1, a2, b1, b2);