Beispiel #1
0
    private void p(NetworkMessageEventArgs A_0)
    {
        int o    = this.o;
        int num2 = A_0.get_Message().Value <int>("key");
        int num3 = A_0.get_Message().Value <int>("value");

        if (this.i.ContainsKey(o))
        {
            int num4 = num2;
            dt  dt   = (dt)num2;
            if (dt == dt.f)
            {
                this.i[o].a[0xd000010] = num3;
                num4 = 0xd000010;
            }
            else
            {
                this.i[o].a[num2] = num3;
            }
            if (this.e != null)
            {
                this.e(this.i[o]);
            }
            if (this.g != null)
            {
                this.g(this.i[o], (dt)num4);
            }
        }
    }
Beispiel #2
0
 public int a(dt A_0, int A_1)
 {
     if (this.a.ContainsKey((int) A_0))
     {
         return this.a[(int) A_0];
     }
     return A_1;
 }
Beispiel #3
0
 private static int Compare(dt n1, dt n2)
 {
     if (n1.initi >= n2.initi)
     {
         return(1);
     }
     else
     {
         return(-1);
     }
 }
Beispiel #4
0
        // 우선권을 계산한다.
        void MakeInitiList(List <Command> CmdList)
        {
            m_Initiativities = new List <dt>();

            for (int i = 0; i < CmdList.Count; ++i)
            {
                Command c     = CmdList[i];
                double  initi = c.actor.GetInitiativity();

                dt node = new dt();
                node.initi = initi;
                node.Cmd   = c;

                m_Initiativities.Add(node);
            }

            m_Initiativities.Sort(Compare);
        }
Beispiel #5
0
        public Idt Create(
            ImmutableList <IdtCrossJoinElement> value)
        {
            Idt crossJoin = null;

            try
            {
                crossJoin = new dt(
                    value);
            }
            catch (Exception exception)
            {
                this.Log.Error(
                    exception.Message,
                    exception);
            }

            return(crossJoin);
        }
Beispiel #6
0
    private void n(NetworkMessageEventArgs A_0)
    {
        int key  = A_0.get_Message().Value <int>("object");
        int num2 = A_0.get_Message().Value <int>("key");
        int num3 = A_0.get_Message().Value <int>("value");

        if (this.i.ContainsKey(key))
        {
            dt dt = (dt)num2;
            if (dt == dt.f)
            {
                this.i[key].a[0xd000010] = num3;
            }
            else
            {
                this.i[key].a[num2] = num3;
            }
            if (this.e != null)
            {
                this.e(this.i[key]);
            }
        }
    }
 Update() / Update(dt) You have to call Update() to actually invoke the callback(s). Usually you would call it once per frame (inside Update of a MonoBehaviour for example). You can pass a custom "deltaTime" to the method, if omitted Time.deltaTime is used. 
Beispiel #8
0
        public void run()
        {
            dt d = new dt(new ThreadStart(GetCustCigInfo));

            this.Invoke(d, new Object[] { });
        }
Beispiel #9
0
 public static EnumerableSignal Const(double dt, int SamplesCount, double A = 1) => new(dt, GetSamples(_ => A, dt, SamplesCount));
Beispiel #10
0
 public bool a(dt A_0)
 {
     return this.a.ContainsKey((int) A_0);
 }
Beispiel #11
0
 => GetWeekTime(dt, dt.Year, dt.GetWeekOfYear());