示例#1
0
        private void method_10(object sender, EventArgs31 e)
        {
            lock (((ICollection)Class142.dictionary_0).SyncRoot)
            {
                switch (e.InvasionState.enum97_0)
                {
                case Enum97.const_0:
                case Enum97.const_2:
                    if (Class142.dictionary_0.ContainsKey(this))
                    {
                        Class142.dictionary_0[this] = e.InvasionState;
                    }
                    else
                    {
                        Class142.dictionary_0.Add(this, e.InvasionState);
                    }
                    this.Invasion = new Struct26?(e.InvasionState);
                    break;

                case Enum97.const_1:
                    if (Class142.dictionary_0.ContainsKey(this))
                    {
                        Class142.dictionary_0.Remove(this);
                    }
                    this.Invasion = null;
                    break;
                }
            }
            if (this.eventHandler_6 != null)
            {
                this.eventHandler_6(this, e);
            }
            Class142.smethod_6(this, e.InvasionState);
        }
示例#2
0
 // Token: 0x060027B4 RID: 10164 RVA: 0x00092FA4 File Offset: 0x000911A4
 private void method_2(object sender, EventArgs31 e)
 {
     Invasions.Class432 @class = new Invasions.Class432();
     @class.object_0      = sender;
     @class.eventArgs31_0 = e;
     @class.invasions_0   = this;
     this.smethod_4(new MethodInvoker(@class.method_0));
 }