Exemple #1
0
 private void ScanBasicForm_Load(object sender, EventArgs e)
 {
     Class15.smethod_59(base.Controls);
     Class15.smethod_68(this);
     this.method_0();
     this.DispData();
 }
Exemple #2
0
        public void RefreshByUserMode()
        {
            bool flag = Class15.smethod_4() == Class15.UserMode.Expert;

            this.lblLongDur.Enabled &= flag;
            this.nudLongDur.Enabled &= flag;
        }
            public string GetMinName(TreeNode node)
            {
                int    num  = 0;
                int    num2 = 0;
                string text = "";

                num2 = this.GetMinIndex();
                text = string.Format(this.Format, num2 + 1);
                if (!Class15.smethod_51(node, text))
                {
                    return(text);
                }
                num = 0;
                while (true)
                {
                    if (num < this.Count)
                    {
                        text = string.Format(this.Format, num + 1);
                        if (!Class15.smethod_51(node, text))
                        {
                            break;
                        }
                        num++;
                        continue;
                    }
                    return("");
                }
                return(text);
            }
Exemple #4
0
 static Class8()
 {
     Class15.smethod_5();
     Class17.smethod_0();
     oleDbConnection_0 = new OleDbConnection(Class7.string_5);
     oleDbConnection_1 = new OleDbConnection(Class7.string_4);
 }
Exemple #5
0
 public ButtonForm()
 {
     this.dicCom = new Dictionary <string, string>();
     //base._002Ector();
     this.method_0();
     base.Scale(Class15.smethod_6());
 }
Exemple #6
0
        public override void vmethod_0(Class13 class130)
        {
            var array = class130.Float0;
            var num   = class130.method_0();
            var num2  = class130.method_2();
            var num3  = 0f;

            switch (_int0)
            {
            case 1:
                num3 = Class15.smethod_9(array, num, num2);
                break;

            case 2:
                num3 = Class15.smethod_4(array, num, num2);
                break;

            case 3:
                num3 = 1f;
                break;
            }
            var num4 = _float0 / num3;

            for (var i = num; i < num + num2; i++)
            {
                array[i] = class130.vmethod_1(i, array[i], array[i] * num4);
            }
        }
Exemple #7
0
 private void ContactsForm_Load(object sender, EventArgs e)
 {
     Class15.smethod_68(this);
     this.method_2();
     this.DispData();
     this.cmbAddType.SelectedIndex = 0;
 }
Exemple #8
0
        public static void RefreshCommonLang()
        {
            string name = typeof(ContactForm).Name;

            Class15.smethod_78("CallType", ContactForm.SZ_CALL_TYPE, name);
            Class15.smethod_78("CallRxTone", ContactForm.SZ_CALL_RX_TONE, name);
        }
Exemple #9
0
 public VoteScanForm()
 {
     this.data = new byte[40];
     //base._002Ector();
     this.InitializeComponent();
     base.Scale(Class15.smethod_6());
 }
    internal void method_45(CellFormat A_0)
    {
        Class15 class2 = this.method_43();

        A_0.PreferredWidth = class2;
        switch (class2.method_51())
        {
        case FtsWidth.None:
            A_0.WidthUnit = FtsWidth.None;
            A_0.CellWidth = 0f;
            return;

        case FtsWidth.Auto:
            A_0.WidthUnit = FtsWidth.Auto;
            A_0.CellWidth = 0f;
            return;

        case FtsWidth.Percentage:
            A_0.WidthUnit   = FtsWidth.Percentage;
            A_0.CellScaling = class2.method_49() / 50f;
            return;

        case FtsWidth.Point:
            A_0.WidthUnit = FtsWidth.Point;
            A_0.CellWidth = class2.method_49() / 20f;
            return;
        }
    }
 private void PasswordForm_Load(object sender, EventArgs e)
 {
     Class15.smethod_68(this);
     this.txtPwd.MaxByteLength = 8;
     this.txtPwd.InputString   = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz\b";
     this.txtPwd.Text          = Class15.CUR_PWD;
 }
        private void method_1()
        {
            if (MenuForm.data.Fm)
            {
                Class15.smethod_37(this.cmbP1Key, AttachmentForm.SZ_PK1_KEY);
            }
            else
            {
                Class15.smethod_38(this.cmbP1Key, AttachmentForm.SZ_PK1_KEY, 2);
            }
            string text = "";

            this.cmbTimeZone.Items.Clear();
            for (int i = 0; i <= 24; i++)
            {
                text = string.Format("GMT{0}", (i - 12).ToString("+0;-0"));
                this.cmbTimeZone.Items.Add(text);
            }
            Class15.smethod_41(this.cmbBootCh, 1, 20);
            this.dgvAttachment.RowCount = 20;
            this.dgvAttachment.DefaultCellStyle.WrapMode = DataGridViewTriState.True;
            this.dgvAttachment.AllowUserToDeleteRows     = false;
            this.dgvAttachment.AllowUserToAddRows        = false;
            Class15.smethod_41(this.cmbRecordingInterval, 1, 32);
        }
        private void txtTxFreq_Leave(object sender, EventArgs e)
        {
            int index = (int)this.dgvChannels.CurrentRow.Tag;

            this.txtTxFreq.Visible = false;
            int    int_ = 0;
            double num  = 0.0;
            string text = this.txtTxFreq.Text;

            try
            {
                uint num2 = 0u;
                num = double.Parse(text);
                if (Class15.smethod_19(num, ref num2) < 0)
                {
                    return;
                }
                int_ = Class15.smethod_27(num, 100000.0);
                Class15.smethod_29(ref int_, 250, 625);
                num  = Class15.smethod_28(int_, 100000);
                text = string.Format("{0:f5}", num);
            }
            catch
            {
                return;
            }
            this.dgvChannels.CurrentCell.Value = text;
            ChannelForm.data.SetTxFreq(index, text);
            if (ChannelForm.data.FreqIsSameRange(index) < 0)
            {
                ChannelForm.data.SetRxFreq(index, text);
                this.dgvChannels.CurrentRow.Cells[2].Value = text;
            }
            ((MainForm)base.MdiParent).RefreshRelatedForm(base.GetType());
        }
 private void ChannelsForm_Load(object sender, EventArgs e)
 {
     Class15.smethod_68(this);
     this.method_1();
     this.DispData();
     this.cmbAddChMode.SelectedIndex = 0;
 }
Exemple #15
0
 static Class2()
 {
     Class15.smethod_5();
     Class17.smethod_0();
     oleDbConnection_0 = new OleDbConnection(Class7.string_5);
     string_0          = null;
 }
 private void EmergencyForm_Load(object sender, EventArgs e)
 {
     Class15.smethod_59(base.Controls);
     Class15.smethod_68(this);
     this.method_1();
     this.DispData();
 }
Exemple #17
0
    internal void method_7()
    {
        int       num    = this.binaryReader_0.ReadByte();
        int       num2   = this.binaryReader_0.ReadByte();
        CellAlign align  = (CellAlign)this.binaryReader_0.ReadByte();
        Class15   class2 = smethod_2(this.binaryReader_0);

        if (class2.method_57())
        {
            num  = Math.Min(num, this.class732_0.Count);
            num2 = Math.Min(num2, this.class732_0.Count);
            int num3 = (int)class2.method_49();
            for (int i = num; i < num2; i++)
            {
                CellFormat format = this.class732_0.method_0(i);
                format.SamePaddingsAsTable = false;
                if ((align & CellAlign.Left) != CellAlign.None)
                {
                    format.SetAttr(0xc12, ((float)num3) / 20f);
                }
                if ((align & CellAlign.Top) != CellAlign.None)
                {
                    format.SetAttr(0xbfe, ((float)num3) / 20f);
                }
                if ((align & CellAlign.Bottom) != CellAlign.None)
                {
                    format.SetAttr(0xc08, ((float)num3) / 20f);
                }
                if ((align & CellAlign.Right) != CellAlign.None)
                {
                    format.SetAttr(0xc1c, ((float)num3) / 20f);
                }
            }
        }
    }
Exemple #18
0
        private void method_1()
        {
            int num = 0;

            Class15.smethod_36(this.nudEmgShortDur, new Class13(1, 15, 1, 50m, 3));
            Class15.smethod_36(this.nudLongDur, new Class13(4, 15, 1, 250m, 4));
            this.class4_1.Items.Clear();
            this.class4_2.Items.Clear();
            this.class4_0.Items.Clear();
            this.class4_3.Items.Clear();
            this.cmbTkShort.Items.Clear();
            this.cmbTkLong.Items.Clear();
            for (num = 0; num < ButtonForm.SZ_BUTTON_ITEM.Length; num++)
            {
                if (num != 21 && num != 15)
                {
                    this.class4_2.method_1(ButtonForm.SZ_BUTTON_ITEM[num], num);
                    this.class4_3.method_1(ButtonForm.SZ_BUTTON_ITEM[num], num);
                    this.cmbTkLong.method_1(ButtonForm.SZ_BUTTON_ITEM[num], num);
                    this.class4_1.method_1(ButtonForm.SZ_BUTTON_ITEM[num], num);
                    this.class4_0.method_1(ButtonForm.SZ_BUTTON_ITEM[num], num);
                    this.cmbTkShort.method_1(ButtonForm.SZ_BUTTON_ITEM[num], num);
                }
            }
            num = 0;
            this.dgvOneTouch.RowCount = 6;
            this.cmbMode.Items.Clear();
            string[] sZ_MODE = ButtonForm.SZ_MODE;
            foreach (string string_ in sZ_MODE)
            {
                this.cmbMode.Items.Add(new Class5(string_, num++));
            }
            this.cmbMode.DisplayMember = "Text";
            this.cmbMode.ValueMember   = "Value";
        }
 public void Verify(EmergencyOne def)
 {
     if (this.name[0] != 255)
     {
         if (!Enum.IsDefined(typeof(AlarmType), this.alarmType))
         {
             this.alarmType = def.alarmType;
         }
         if (!Enum.IsDefined(typeof(AlarmMode), this.alarmMode))
         {
             this.alarmMode = def.alarmMode;
         }
         if (!Enum.IsDefined(typeof(RevertChE), (int)this.revertCh))
         {
             int index = this.revertCh - 2;
             if (!ChannelForm.data.DataIsValid(index))
             {
                 this.revertCh = 0;
             }
         }
         Class15.smethod_11(ref this.impoliteRetries, (byte)1, (byte)15, def.impoliteRetries);
         Class15.smethod_11(ref this.politeRetries, (byte)0, (byte)15, def.politeRetries);
         Class15.smethod_11(ref this.cycles, (byte)1, (byte)10, def.cycles);
         Class15.smethod_11(ref this.txCycle, (byte)1, (byte)12, def.txCycle);
         Class15.smethod_11(ref this.rxCycle, (byte)1, (byte)12, def.rxCycle);
     }
 }
    private void method_78(int A_0)
    {
        Class15 class2 = base.wordAttrCollection_0.method_32(A_0) as Class15;

        class2.method_52((FtsWidth)base.binaryReader_0.ReadByte());
        class2.method_50((float)base.binaryReader_0.ReadInt16());
    }
Exemple #21
0
 public HelpForm()
 {
     //base._002Ector();
     this.kslgOgrxhC();
     base.Scale(Class15.smethod_6());
     base.AllowEndUserDocking = true;
 }
Exemple #22
0
 public TextMsgForm()
 {
     this.txt = new Class11();
     //base._002Ector();
     this.method_0();
     base.Scale(Class15.smethod_6());
 }
    private void method_75(Class15 A_0)
    {
        Class15  class2 = A_0;
        FtsWidth width  = (FtsWidth)base.binaryReader_0.ReadByte();

        class2.method_52(width);
        class2.method_50((width != FtsWidth.Percentage) ? ((float)base.binaryReader_0.ReadInt16()) : (((float)base.binaryReader_0.ReadInt16()) / 50f));
    }
Exemple #24
0
        public void Test1()
        {
            int[] expected = new int[] { 1, 4 };
            int[] input    = new int[] { 2, 4, -2, 1, -3, 5, -3 };
            var   actual   = Class15.ZeroSumSubarray(input);

            Assert.Equal(expected, actual);
        }
Exemple #25
0
        public void Test4()
        {
            int[] expected = new int[] { 0, 1 };
            int[] input    = new int[] { 5, -5 };
            var   actual   = Class15.ZeroSumSubarray(input);

            Assert.Equal(expected, actual);
        }
        public static void RefreshCommonLang()
        {
            string name = typeof(EmergencyForm).Name;

            Class15.smethod_78("AlarmType", EmergencyForm.SZ_ALARM_TYPE, name);
            Class15.smethod_78("AlarmMode", EmergencyForm.SZ_ALARM_MODE, name);
            Class15.smethod_78("RevertCh", EmergencyForm.SZ_REVERT_CH, name);
        }
Exemple #27
0
        public void RefreshByUserMode()
        {
            bool flag = Class15.smethod_4() == Class15.UserMode.Expert;

            this.lblRingStyle.Enabled  &= flag;
            this.cmbRingStyle.Enabled  &= flag;
            this.chkCallRxTone.Enabled &= flag;
        }
 private void method_1()
 {
     this.txtBootPwd.MaxLength   = 6;
     this.txtBootPwd.InputString = "0123456789\b";
     Class15.smethod_37(this.cmbBootScreen, BootItemForm.SZ_BOOT_SCREEN);
     this.txtLine1.MaxByteLength = 15;
     this.txtLine2.MaxByteLength = 15;
 }
 public CommPrgForm()
 {
     this.firmwareUpdate = new Class9();
     this.portComm       = new Class10();
     this.hidComm        = new Class19();
     //base._002Ector();
     this.InitializeComponent();
     base.Scale(Class15.smethod_6());
 }
Exemple #30
0
 static Class6()
 {
     Class15.smethod_5();
     Class17.smethod_0();
     string_12         = DateTime.Now.ToString("HH:mm");
     oleDbConnection_0 = new OleDbConnection(Class7.string_5);
     oleDbConnection_1 = new OleDbConnection(Class7.string_4);
     string_13         = Class7.smethod_19();
 }
			public static Class15.Class28 smethod_18(Class15.Class28 class28_0, Class15.Class28 class28_1)
			{
				if (class28_1.uint_0 == 1u)
				{
					return Class15.Class28.Class30.smethod_17(class28_0, class28_1.uint_1[0]);
				}
				Class15.Class28[] array = new Class15.Class28[]
				{
					0,
					1
				};
				Class15.Class28[] array2 = new Class15.Class28[2];
				Class15.Class28[] array3 = new Class15.Class28[]
				{
					0,
					0
				};
				int num = 0;
				Class15.Class28 class28_2 = class28_1;
				Class15.Class28 @class = class28_0;
				Class15.Class28.Class29 class2 = new Class15.Class28.Class29(class28_1);
				while (@class != 0u)
				{
					if (num > 1)
					{
						Class15.Class28 class3 = class2.method_2(array[0], array[1] * array2[0]);
						array[0] = array[1];
						array[1] = class3;
					}
					Class15.Class28[] array4 = Class15.Class28.Class30.smethod_9(class28_2, @class);
					array2[0] = array2[1];
					array2[1] = array4[0];
					array3[0] = array3[1];
					array3[1] = array4[1];
					class28_2 = @class;
					@class = array4[1];
					num++;
				}
				if (array3[0] != 1u)
				{
					throw new ArithmeticException("No inverse!");
				}
				return class2.method_2(array[0], array[1] * array2[0]);
			}
		public void ObjectList()
		{
			var mapper = Map.GetObjectMapper<Class15,Class16>();
			var src    = new Class15();

			src.List.Add(src.List[0]);

			var dest = mapper(src);

			Assert.AreEqual  (3, dest.List.Count);
			Assert.IsNotNull (dest.List[0]);
			Assert.IsNotNull (dest.List[1]);
			Assert.IsNotNull (dest.List[2]);
			Assert.AreNotSame(dest.List[0], dest.List[1]);
			Assert.AreSame   (dest.List[0], dest.List[2]);
		}
			public static Class15.Class28 smethod_0(Class15.Class28 class28_0, Class15.Class28 class28_1)
			{
				uint num = 0u;
				uint[] uint_;
				uint uint_2;
				uint[] uint_3;
				uint uint_4;
				if (class28_0.uint_0 < class28_1.uint_0)
				{
					uint_ = class28_1.uint_1;
					uint_2 = class28_1.uint_0;
					uint_3 = class28_0.uint_1;
					uint_4 = class28_0.uint_0;
				}
				else
				{
					uint_ = class28_0.uint_1;
					uint_2 = class28_0.uint_0;
					uint_3 = class28_1.uint_1;
					uint_4 = class28_1.uint_0;
				}
				Class15.Class28 @class = new Class15.Class28((Class15.Class28.Enum5)1, uint_2 + 1u);
				uint[] uint_5 = @class.uint_1;
				ulong num2 = 0uL;
				do
				{
					num2 = (ulong)uint_[(int)((UIntPtr)num)] + (ulong)uint_3[(int)((UIntPtr)num)] + num2;
					uint_5[(int)((UIntPtr)num)] = (uint)num2;
					num2 >>= 32;
				}
				while ((num += 1u) < uint_4);
				bool flag;
				if (flag = (num2 != 0uL))
				{
					if (num < uint_2)
					{
						do
						{
							flag = ((uint_5[(int)((UIntPtr)num)] = uint_[(int)((UIntPtr)num)] + 1u) == 0u);
						}
						while ((num += 1u) < uint_2 && flag);
					}
					if (flag)
					{
						uint_5[(int)((UIntPtr)num)] = 1u;
						@class.uint_0 = num + 1u;
						return @class;
					}
				}
				if (num < uint_2)
				{
					do
					{
						uint_5[(int)((UIntPtr)num)] = uint_[(int)((UIntPtr)num)];
					}
					while ((num += 1u) < uint_2);
				}
				@class.method_5();
				return @class;
			}
			public static Class15.Class28.Enum5 smethod_4(Class15.Class28 class28_0, Class15.Class28 class28_1)
			{
				uint num = class28_0.uint_0;
				uint num2 = class28_1.uint_0;
				while (num > 0u && class28_0.uint_1[(int)((UIntPtr)(num - 1u))] == 0u)
				{
					num -= 1u;
				}
				while (num2 > 0u && class28_1.uint_1[(int)((UIntPtr)(num2 - 1u))] == 0u)
				{
					num2 -= 1u;
				}
				if (num == 0u && num2 == 0u)
				{
					return (Class15.Class28.Enum5)0;
				}
				if (num < num2)
				{
					return (Class15.Class28.Enum5)(-1);
				}
				if (num > num2)
				{
					return (Class15.Class28.Enum5)1;
				}
				uint num3;
				for (num3 = num - 1u; num3 != 0u; num3 -= 1u)
				{
					if (class28_0.uint_1[(int)((UIntPtr)num3)] != class28_1.uint_1[(int)((UIntPtr)num3)])
					{
						break;
					}
				}
				if (class28_0.uint_1[(int)((UIntPtr)num3)] < class28_1.uint_1[(int)((UIntPtr)num3)])
				{
					return (Class15.Class28.Enum5)(-1);
				}
				if (class28_0.uint_1[(int)((UIntPtr)num3)] > class28_1.uint_1[(int)((UIntPtr)num3)])
				{
					return (Class15.Class28.Enum5)1;
				}
				return (Class15.Class28.Enum5)0;
			}
			public static void smethod_2(Class15.Class28 class28_0, Class15.Class28 class28_1)
			{
				uint[] uint_ = class28_0.uint_1;
				uint[] uint_2 = class28_1.uint_1;
				uint num = 0u;
				uint num2 = 0u;
				do
				{
					uint num3 = uint_2[(int)((UIntPtr)num)];
					if ((num3 += num2) < num2 | (uint_[(int)((UIntPtr)num)] -= num3) > ~num3)
					{
						num2 = 1u;
					}
					else
					{
						num2 = 0u;
					}
				}
				while ((num += 1u) < class28_1.uint_0);
				if (num != class28_0.uint_0 && num2 == 1u)
				{
					do
					{
						uint_[(int)((UIntPtr)num)] -= 1u;
					}
					while (uint_[(int)((UIntPtr)(num++))] == 0u && num < class28_0.uint_0);
				}
				while (class28_0.uint_0 > 0u && class28_0.uint_1[(int)((UIntPtr)(class28_0.uint_0 - 1u))] == 0u)
				{
					class28_0.uint_0 -= 1u;
				}
				if (class28_0.uint_0 == 0u)
				{
					class28_0.uint_0 += 1u;
				}
			}
	internal static bool smethod_10(Class15.Class27 class27_0, byte[] byte_3, byte[] byte_4)
	{
		return class27_0.method_11(byte_3, HashAlgorithm.Create("MD5"), byte_4);
	}
			public static Class15.Class28[] smethod_8(Class15.Class28 class28_0, uint uint_0)
			{
				Class15.Class28 @class = new Class15.Class28((Class15.Class28.Enum5)1, class28_0.uint_0);
				ulong num = 0uL;
				uint uint_ = class28_0.uint_0;
				while (uint_-- > 0u)
				{
					num <<= 32;
					num |= (ulong)class28_0.uint_1[(int)((UIntPtr)uint_)];
					@class.uint_1[(int)((UIntPtr)uint_)] = (uint)(num / (ulong)uint_0);
					num %= (ulong)uint_0;
				}
				@class.method_5();
				Class15.Class28 class2 = (uint)num;
				return new Class15.Class28[]
				{
					@class,
					class2
				};
			}
		public Class15.Class28 method_7(Class15.Class28 class28_0, Class15.Class28 class28_1)
		{
			Class15.Class28.Class29 @class = new Class15.Class28.Class29(class28_1);
			return @class.method_3(this, class28_0);
		}
	internal static extern int GetModuleFileName(Class15.Struct1 struct1_0, StringBuilder stringBuilder_0, int int_0);
		public Class15.Class28 method_6(Class15.Class28 class28_0)
		{
			return Class15.Class28.Class30.smethod_16(this, class28_0);
		}
		public Class15.Class28.Enum5 method_4(Class15.Class28 class28_0)
		{
			return Class15.Class28.Class30.smethod_4(this, class28_0);
		}
		public Class28(Class15.Class28 class28_0, uint uint_2)
		{
			this.uint_1 = new uint[uint_2];
			for (uint num = 0u; num < class28_0.uint_0; num += 1u)
			{
				this.uint_1[(int)((UIntPtr)num)] = class28_0.uint_1[(int)((UIntPtr)num)];
			}
			this.uint_0 = class28_0.uint_0;
		}
			public static Class15.Class28 smethod_10(Class15.Class28 class28_0, int int_0)
			{
				if (int_0 == 0)
				{
					return new Class15.Class28(class28_0, class28_0.uint_0 + 1u);
				}
				int num = int_0 >> 5;
				int_0 &= 31;
				Class15.Class28 @class = new Class15.Class28((Class15.Class28.Enum5)1, class28_0.uint_0 + 1u + (uint)num);
				uint num2 = 0u;
				uint uint_ = class28_0.uint_0;
				if (int_0 != 0)
				{
					uint num3 = 0u;
					while (num2 < uint_)
					{
						uint num4 = class28_0.uint_1[(int)((UIntPtr)num2)];
						@class.uint_1[(int)(checked((IntPtr)(unchecked((ulong)num2 + (ulong)((long)num)))))] = (num4 << int_0 | num3);
						num3 = num4 >> 32 - int_0;
						num2 += 1u;
					}
					@class.uint_1[(int)(checked((IntPtr)(unchecked((ulong)num2 + (ulong)((long)num)))))] = num3;
				}
				else
				{
					while (num2 < uint_)
					{
						@class.uint_1[(int)(checked((IntPtr)(unchecked((ulong)num2 + (ulong)((long)num)))))] = class28_0.uint_1[(int)((UIntPtr)num2)];
						num2 += 1u;
					}
				}
				@class.method_5();
				return @class;
			}
		public Class20(Class15.Class18 class18_1, Assembly assembly_1)
		{
			this.assembly_0 = assembly_1;
			this.class18_0 = class18_1;
		}
			public static Class15.Class28[] smethod_9(Class15.Class28 class28_0, Class15.Class28 class28_1)
			{
				if (Class15.Class28.Class30.smethod_4(class28_0, class28_1) == (Class15.Class28.Enum5)(-1))
				{
					return new Class15.Class28[]
					{
						0,
						new Class15.Class28(class28_0)
					};
				}
				class28_0.method_5();
				class28_1.method_5();
				if (class28_1.uint_0 == 1u)
				{
					return Class15.Class28.Class30.smethod_8(class28_0, class28_1.uint_1[0]);
				}
				uint num = class28_0.uint_0 + 1u;
				int num2 = (int)(class28_1.uint_0 + 1u);
				uint num3 = 2147483648u;
				uint num4 = class28_1.uint_1[(int)((UIntPtr)(class28_1.uint_0 - 1u))];
				int num5 = 0;
				int num6 = (int)(class28_0.uint_0 - class28_1.uint_0);
				while (num3 != 0u && (num4 & num3) == 0u)
				{
					num5++;
					num3 >>= 1;
				}
				Class15.Class28 @class = new Class15.Class28((Class15.Class28.Enum5)1, class28_0.uint_0 - class28_1.uint_0 + 1u);
				Class15.Class28 class2 = class28_0 << num5;
				uint[] uint_ = class2.uint_1;
				class28_1 <<= num5;
				int i = (int)(num - class28_1.uint_0);
				int num7 = (int)(num - 1u);
				uint num8 = class28_1.uint_1[(int)((UIntPtr)(class28_1.uint_0 - 1u))];
				ulong num9 = (ulong)class28_1.uint_1[(int)((UIntPtr)(class28_1.uint_0 - 2u))];
				while (i > 0)
				{
					ulong num10 = ((ulong)uint_[num7] << 32) + (ulong)uint_[num7 - 1];
					ulong num11 = num10 / (ulong)num8;
					ulong num12 = num10 % (ulong)num8;
					do
					{
						if (num11 != 4294967296uL)
						{
							if (num11 * num9 <= (num12 << 32) + (ulong)uint_[num7 - 2])
							{
								break;
							}
						}
						num11 -= 1uL;
						num12 += (ulong)num8;
					}
					while (num12 < 4294967296uL);
					IL_17B:
					uint num13 = 0u;
					int num14 = num7 - num2 + 1;
					ulong num15 = 0uL;
					uint num16 = (uint)num11;
					do
					{
						num15 += (ulong)class28_1.uint_1[(int)((UIntPtr)num13)] * (ulong)num16;
						uint num17 = uint_[num14];
						uint_[num14] -= (uint)num15;
						num15 >>= 32;
						if (uint_[num14] > num17)
						{
							num15 += 1uL;
						}
						num13 += 1u;
						num14++;
					}
					while ((ulong)num13 < (ulong)((long)num2));
					num14 = num7 - num2 + 1;
					num13 = 0u;
					if (num15 != 0uL)
					{
						num16 -= 1u;
						ulong num18 = 0uL;
						do
						{
							num18 = (ulong)uint_[num14] + (ulong)class28_1.uint_1[(int)((UIntPtr)num13)] + num18;
							uint_[num14] = (uint)num18;
							num18 >>= 32;
							num13 += 1u;
							num14++;
						}
						while ((ulong)num13 < (ulong)((long)num2));
					}
					@class.uint_1[num6--] = num16;
					num7--;
					i--;
					continue;
					goto IL_17B;
				}
				@class.method_5();
				class2.method_5();
				Class15.Class28[] array = new Class15.Class28[]
				{
					@class,
					class2
				};
				if (num5 != 0)
				{
					Class15.Class28[] array2;
					(array2 = array)[1] = array2[1] >> num5;
				}
				return array;
			}
		public Class22(Class15.Class18 class18_1, Class15.Class17 class17_1, Type type_1, byte[] byte_2, byte[] byte_3)
		{
			this.class18_0 = class18_1;
			this.class17_0 = class17_1;
			this.type_0 = type_1;
			this.byte_0 = byte_2;
			this.byte_1 = byte_3;
		}
			public static uint smethod_6(Class15.Class28 class28_0, uint uint_0)
			{
				ulong num = 0uL;
				uint uint_ = class28_0.uint_0;
				while (uint_-- > 0u)
				{
					num <<= 32;
					num |= (ulong)class28_0.uint_1[(int)((UIntPtr)uint_)];
					num %= (ulong)uint_0;
				}
				return (uint)num;
			}
			public static uint smethod_17(Class15.Class28 class28_0, uint uint_0)
			{
				uint num = uint_0;
				uint num2 = class28_0 % uint_0;
				uint num3 = 0u;
				uint num4 = 1u;
				while (num2 != 0u)
				{
					if (num2 == 1u)
					{
						return num4;
					}
					num3 += num / num2 * num4;
					num %= num2;
					if (num == 0u)
					{
						return 0u;
					}
					if (num == 1u)
					{
						return uint_0 - num3;
					}
					num4 += num2 / num * num3;
					num2 %= num;
				}
				return 0u;
			}
			public static void smethod_3(Class15.Class28 class28_0, Class15.Class28 class28_1)
			{
				uint num = 0u;
				bool flag = false;
				uint[] uint_;
				uint uint_2;
				uint[] uint_3;
				uint uint_4;
				if (class28_0.uint_0 < class28_1.uint_0)
				{
					flag = true;
					uint_ = class28_1.uint_1;
					uint_2 = class28_1.uint_0;
					uint_3 = class28_0.uint_1;
					uint_4 = class28_0.uint_0;
				}
				else
				{
					uint_ = class28_0.uint_1;
					uint_2 = class28_0.uint_0;
					uint_3 = class28_1.uint_1;
					uint_4 = class28_1.uint_0;
				}
				uint[] uint_5 = class28_0.uint_1;
				ulong num2 = 0uL;
				do
				{
					num2 += (ulong)uint_[(int)((UIntPtr)num)] + (ulong)uint_3[(int)((UIntPtr)num)];
					uint_5[(int)((UIntPtr)num)] = (uint)num2;
					num2 >>= 32;
				}
				while ((num += 1u) < uint_4);
				bool flag2;
				if (flag2 = (num2 != 0uL))
				{
					if (num < uint_2)
					{
						do
						{
							flag2 = ((uint_5[(int)((UIntPtr)num)] = uint_[(int)((UIntPtr)num)] + 1u) == 0u);
						}
						while ((num += 1u) < uint_2 && flag2);
					}
					if (flag2)
					{
						uint_5[(int)((UIntPtr)num)] = 1u;
						class28_0.uint_0 = num + 1u;
						return;
					}
				}
				if (flag && num < uint_2 - 1u)
				{
					do
					{
						uint_5[(int)((UIntPtr)num)] = uint_[(int)((UIntPtr)num)];
					}
					while ((num += 1u) < uint_2);
				}
				class28_0.uint_0 = uint_2 + 1u;
				class28_0.method_5();
			}
			public static Class15.Class28 smethod_16(Class15.Class28 class28_0, Class15.Class28 class28_1)
			{
				Class15.Class28 @class = class28_0;
				Class15.Class28 class2 = class28_1;
				Class15.Class28 class3 = class2;
				while (@class.uint_0 > 1u)
				{
					class3 = @class;
					@class = class2 % @class;
					class2 = class3;
				}
				if (@class == 0u)
				{
					return class3;
				}
				uint num = @class.uint_1[0];
				uint num2 = class2 % num;
				int num3 = 0;
				while (((num2 | num) & 1u) == 0u)
				{
					num2 >>= 1;
					num >>= 1;
					num3++;
				}
				while (num2 != 0u)
				{
					while ((num2 & 1u) == 0u)
					{
						num2 >>= 1;
					}
					while ((num & 1u) == 0u)
					{
						num >>= 1;
					}
					if (num2 >= num)
					{
						num2 = num2 - num >> 1;
					}
					else
					{
						num = num - num2 >> 1;
					}
				}
				return num << num3;
			}
			public static Class15.Class28 smethod_1(Class15.Class28 class28_0, Class15.Class28 class28_1)
			{
				Class15.Class28 @class = new Class15.Class28((Class15.Class28.Enum5)1, class28_0.uint_0);
				uint[] uint_ = @class.uint_1;
				uint[] uint_2 = class28_0.uint_1;
				uint[] uint_3 = class28_1.uint_1;
				uint num = 0u;
				uint num2 = 0u;
				do
				{
					uint num3 = uint_3[(int)((UIntPtr)num)];
					if ((num3 += num2) < num2 | (uint_[(int)((UIntPtr)num)] = uint_2[(int)((UIntPtr)num)] - num3) > ~num3)
					{
						num2 = 1u;
					}
					else
					{
						num2 = 0u;
					}
				}
				while ((num += 1u) < class28_1.uint_0);
				if (num != class28_0.uint_0)
				{
					if (num2 == 1u)
					{
						do
						{
							uint_[(int)((UIntPtr)num)] = uint_2[(int)((UIntPtr)num)] - 1u;
						}
						while (uint_2[(int)((UIntPtr)(num++))] == 0u && num < class28_0.uint_0);
						if (num == class28_0.uint_0)
						{
							goto IL_C8;
						}
					}
					do
					{
						uint_[(int)((UIntPtr)num)] = uint_2[(int)((UIntPtr)num)];
					}
					while ((num += 1u) < class28_0.uint_0);
				}
				IL_C8:
				@class.method_5();
				return @class;
			}
			public unsafe static void smethod_15(Class15.Class28 class28_0, ref uint[] uint_0)
			{
				uint[] array = uint_0;
				uint_0 = class28_0.uint_1;
				uint[] uint_ = class28_0.uint_1;
				uint uint_2 = class28_0.uint_0;
				class28_0.uint_1 = array;
				uint[] array2;
				uint* ptr;
				if ((array2 = uint_) != null && array2.Length != 0)
				{
					fixed (uint* ptr = &array2[0])
					{
					}
				}
				else
				{
					ptr = null;
				}
				uint[] array3;
				uint* ptr2;
				if ((array3 = array) != null && array3.Length != 0)
				{
					fixed (uint* ptr2 = &array3[0])
					{
					}
				}
				else
				{
					ptr2 = null;
				}
				uint* ptr3 = ptr2 + array.Length;
				for (uint* ptr4 = ptr2; ptr4 < ptr3; ptr4++)
				{
					*ptr4 = 0u;
				}
				uint* ptr5 = ptr;
				uint* ptr6 = ptr2;
				uint num = 0u;
				while (num < uint_2)
				{
					if (*ptr5 != 0u)
					{
						ulong num2 = 0uL;
						uint num3 = *ptr5;
						uint* ptr7 = ptr5 + 1;
						uint* ptr8 = ptr6 + 2u * num + 1;
						uint num4 = num + 1u;
						while (num4 < uint_2)
						{
							num2 += (ulong)num3 * (ulong)(*ptr7) + (ulong)(*ptr8);
							*ptr8 = (uint)num2;
							num2 >>= 32;
							num4 += 1u;
							ptr8++;
							ptr7++;
						}
						if (num2 != 0uL)
						{
							*ptr8 = (uint)num2;
						}
					}
					num += 1u;
					ptr5++;
				}
				ptr6 = ptr2;
				uint num5 = 0u;
				while (ptr6 < ptr3)
				{
					uint num6 = *ptr6;
					*ptr6 = (num6 << 1 | num5);
					num5 = num6 >> 31;
					ptr6++;
				}
				if (num5 != 0u)
				{
					*ptr6 = num5;
				}
				ptr5 = ptr;
				ptr6 = ptr2;
				uint* ptr9 = ptr5 + uint_2;
				while (ptr5 < ptr9)
				{
					ulong num7 = (ulong)(*ptr5) * (ulong)(*ptr5) + (ulong)(*ptr6);
					*ptr6 = (uint)num7;
					num7 >>= 32;
					*(++ptr6) += (uint)num7;
					if (*ptr6 < (uint)num7)
					{
						uint* ptr10 = ptr6;
						*(++ptr10) += 1u;
						while (*(ptr10++) == 0u)
						{
							*ptr10 += 1u;
						}
					}
					ptr5++;
					ptr6++;
				}
				class28_0.uint_0 <<= 1;
				while (ptr2[class28_0.uint_0 - 1u] == 0u && class28_0.uint_0 > 1u)
				{
					class28_0.uint_0 -= 1u;
				}
				ptr = null;
				ptr2 = null;
			}
			public Class15.Class28 method_4(uint uint_0, Class15.Class28 class28_2)
			{
				return this.method_3(new Class15.Class28(uint_0), class28_2);
			}
			public static Class15.Class28 smethod_12(Class15.Class28 class28_0, uint uint_0)
			{
				Class15.Class28 @class = new Class15.Class28((Class15.Class28.Enum5)1, class28_0.uint_0 + 1u);
				uint num = 0u;
				ulong num2 = 0uL;
				do
				{
					num2 += (ulong)class28_0.uint_1[(int)((UIntPtr)num)] * (ulong)uint_0;
					@class.uint_1[(int)((UIntPtr)num)] = (uint)num2;
					num2 >>= 32;
				}
				while ((num += 1u) < class28_0.uint_0);
				@class.uint_1[(int)((UIntPtr)num)] = (uint)num2;
				@class.method_5();
				return @class;
			}
			public Class15.Class28 method_3(Class15.Class28 class28_2, Class15.Class28 class28_3)
			{
				Class15.Class28 @class = new Class15.Class28(1u);
				if (class28_3 == 0u)
				{
					return @class;
				}
				Class15.Class28 class2 = class28_2;
				if (class28_3.method_1(0))
				{
					@class = class28_2;
				}
				for (int i = 1; i < class28_3.method_0(); i++)
				{
					class2 = this.method_1(class2, class2);
					if (class28_3.method_1(i))
					{
						@class = this.method_1(class2, @class);
					}
				}
				return @class;
			}
			public static Class15.Class28 smethod_11(Class15.Class28 class28_0, int int_0)
			{
				if (int_0 == 0)
				{
					return new Class15.Class28(class28_0);
				}
				int num = int_0 >> 5;
				int num2 = int_0 & 31;
				Class15.Class28 @class = new Class15.Class28((Class15.Class28.Enum5)1, class28_0.uint_0 - (uint)num + 1u);
				uint num3 = (uint)(@class.uint_1.Length - 1);
				if (num2 != 0)
				{
					uint num4 = 0u;
					while (num3-- > 0u)
					{
						uint num5 = class28_0.uint_1[(int)(checked((IntPtr)(unchecked((ulong)num3 + (ulong)((long)num)))))];
						@class.uint_1[(int)((UIntPtr)num3)] = (num5 >> int_0 | num4);
						num4 = num5 << 32 - int_0;
					}
				}
				else
				{
					while (num3-- > 0u)
					{
						@class.uint_1[(int)((UIntPtr)num3)] = class28_0.uint_1[(int)(checked((IntPtr)(unchecked((ulong)num3 + (ulong)((long)num)))))];
					}
				}
				@class.method_5();
				return @class;
			}
		public Class28(Class15.Class28.Enum5 enum5_0, uint uint_2)
		{
			this.uint_1 = new uint[uint_2];
			this.uint_0 = uint_2;
		}
Exemple #58
0
 private void method_7(Scene scene_0)
 {
     Navi.Class23 @class = new Navi.Class23();
     @class.scene_0 = scene_0;
     @class.navi_0 = this;
     try
     {
         Navi.Class24 class2 = new Navi.Class24();
         class2.class23_0 = @class;
         class2.float_0 = @class.scene_0.XMin;
         class2.float_1 = @class.scene_0.YMin;
         class2.float_2 = @class.scene_0.ZMin;
         float arg_6B_0 = @class.scene_0.XMax - @class.scene_0.XMin;
         new List<Scene>(4);
         this.LoadedScenes.Add(@class.scene_0);
         Action<Class15> action = new Action<Class15>(class2.method_0);
         NavMesh navMesh = @class.scene_0.NavMesh;
         NavCellContainer navCellContainer = navMesh.NavZone.NavCellContainer;
         int cellCount = navCellContainer.CellCount;
         Class15 class3 = new Class15(navCellContainer.FirstCell);
         if (cellCount != 0)
         {
             for (int i = 0; i < cellCount; i++)
             {
                 action(class3);
                 class3 = new Class15(new IntPtr((int)class3.Ptr + 32));
             }
             action(class3);
             IEnumerable<Cell> arg_133_0 = this.list_0;
             if (Navi.func_1 == null)
             {
                 Navi.func_1 = new Func<Cell, bool>(Navi.smethod_2);
             }
             Cell[] array = arg_133_0.Where(Navi.func_1).ToArray<Cell>();
             for (int j = 0; j < array.Length; j++)
             {
                 Cell cell = array[j];
                 IEnumerable<Cell> arg_16F_0 = cell.AdjacentCells;
                 if (Navi.func_2 == null)
                 {
                     Navi.func_2 = new Func<Cell, bool>(Navi.smethod_3);
                 }
                 if (arg_16F_0.FirstOrDefault(Navi.func_2) == null)
                 {
                     this.list_0.Remove(cell);
                 }
             }
         }
     }
     catch (Exception)
     {
     }
 }
Exemple #59
0
 public void method_0(Class15 class15_0)
 {
     Cell cell_ = new Cell(class15_0.method_0() + this.float_0, class15_0.method_1() + this.float_1, class15_0.method_3() + this.float_0, class15_0.method_4() + this.float_1, this.float_2 + class15_0.method_2(), this.float_2 + class15_0.method_5(), class15_0.method_6().HasFlag(Class16.Enum1.flag_0), class15_0.method_6().HasFlag(Class16.Enum1.flag_10), this.class23_0.scene_0);
     this.class23_0.navi_0.method_8(cell_);
 }
		public Class28(Class15.Class28 class28_0)
		{
			this.uint_1 = (uint[])class28_0.uint_1.Clone();
			this.uint_0 = class28_0.uint_0;
		}