示例#1
0
    public override k a()
    {
        a0 a = new a0(new string[] { "k", "v" });
        v  v = new v(a);

        v[0] = k.a("sid");
        v[1] = k.a(this.a);
        a.c(v);
        v    = new v(a);
        v[0] = k.a("sec");
        v[1] = k.a(this.b);
        a.c(v);
        return(new k(a));
    }
示例#2
0
    public k d()
    {
        a0 a = new a0(new string[] { "k", "v" });
        v  v = new v(a);

        v[0] = k.a("st");
        v[1] = k.a(this.a);
        a.c(v);
        v    = new v(a);
        v[0] = k.a("ret");
        v[1] = k.a(this.b);
        a.c(v);
        return(new k(a));
    }
        internal k b()
        {
            a0 a = new a0(new string[] { "Vital", "HandlerString", "MinPercent", "MaxPercent", "Stance" });

            foreach (KeyValuePair <eRechargeVital_Single, List <uTank2.cRechargeManager.a> > pair in this.b)
            {
                foreach (uTank2.cRechargeManager.a a2 in pair.Value)
                {
                    v v = new v(a);
                    v[0] = k.a((int)pair.Key);
                    if (a2.c != null)
                    {
                        v[1] = k.a(a2.c.FriendlyName);
                    }
                    else
                    {
                        v[1] = k.a("");
                    }
                    v[2] = k.a(a2.a);
                    v[3] = k.a(a2.b);
                    v[4] = k.a((int)a2.d);
                    a.c(v);
                }
            }
            return(new k(a));
        }
示例#4
0
    private void a()
    {
        bf bf = new bf();

        bf.b(Path.Combine(PluginCore.ci, this.j()));
        this.c.Clear();
        if (!bf.ContainsKey("CondAct"))
        {
            a5.a(eChatType.Errors, "Meta file load: DB format invalid.");
            this.c.Clear();
        }
        else
        {
            a0 a = bf["CondAct"];
            for (int i = 0; i < a.c(); i++)
            {
                fl fl = cl.a((c3)k.e(a.d()[i][0]));
                b3 b  = cl.a((ep)k.e(a.d()[i][1]));
                if ((b == null) || (fl == null))
                {
                    a5.a(eChatType.Errors, "Meta file load: unsupported cond/act type.");
                    this.c.Clear();
                    return;
                }
                fl.h(a.d()[i][2]);
                b.h(a.d()[i][3]);
                string key = k.b(a.d()[i][4]);
                if (!this.c.ContainsKey(key))
                {
                    this.c[key] = new List <d8>();
                }
                this.c[key].Add(new d8(fl, b, key));
            }
        }
    }
示例#5
0
    public override k a()
    {
        a0 a = new a0(new string[] { "K", "V" });
        v  v = new v(a);

        v[0] = k.a((int)this.a.f());
        v[1] = this.a.i();
        a.c(v);
        return(new k(a));
    }
示例#6
0
    public override void a(k A_0)
    {
        a0 a = A_0.c() as a0;

        if (((a != null) && (a.a() == 2)) && (a.c() == 1))
        {
            v v = a.d()[0];
            this.a = cl.a((c3)k.e(v[0]));
            this.a.h(v[1]);
            this.a.a(this);
        }
    }
示例#7
0
    public override k j()
    {
        a0 a = new a0(new string[] { "k", "v" });

        foreach (KeyValuePair <string, k> pair in this.a)
        {
            v v = new v(a);
            v[0] = k.a(pair.Key);
            v[1] = pair.Value;
            a.c(v);
        }
        return(new k(a));
    }
示例#8
0
        public k d()
        {
            a0 a = new a0(new string[] { "K", "V" });

            foreach (T local in this.a)
            {
                v v = new v(a);
                v[0] = k.a(cl.GetTypeIDForClass <T>(local));
                v[1] = local.i();
                a.c(v);
            }
            return(new k(a));
        }
示例#9
0
 public void a(a0 A_0)
 {
     A_0.f();
     foreach (dl.c c in this.e)
     {
         if ((c.b != -1) && (c.b != PluginCore.cq.aw.get_CharacterFilter().get_Id()))
         {
             v v = new v(A_0);
             v[0] = k.a(c.b);
             v[1] = k.a(c.a);
             A_0.c(v);
         }
     }
 }
示例#10
0
 public void k()
 {
     if (!string.IsNullOrEmpty(this.j()))
     {
         bf bf = new bf();
         a0 a  = new a0(new string[] { "CType", "AType", "CData", "AData", "State" });
         bf.Add("CondAct", a);
         foreach (KeyValuePair <string, List <d8> > pair in this.c)
         {
             foreach (d8 d in pair.Value)
             {
                 v v = new v(a);
                 v[0] = k.a((int)d.a.f());
                 v[1] = k.a((int)d.b.d());
                 v[2] = d.a.i();
                 v[3] = d.b.i();
                 v[4] = k.a(d.c);
                 a.c(v);
             }
         }
         bf.c(Path.Combine(PluginCore.ci, this.j()));
     }
 }