コード例 #1
0
        public void Test3()
        {
            int[, ] input = new int[0, 0];
            var actual = Class32.PathExists(input);

            Assert.False(actual);
        }
コード例 #2
0
        // Token: 0x0600025E RID: 606 RVA: 0x0001243C File Offset: 0x0001063C
        public static string DecryptWithKey(byte[] encryptedData, byte[] MasterKey)
        {
            byte[] array = new byte[12];
            Array.Copy(encryptedData, 3, array, 0, 12);
            string result;

            try
            {
                byte[] array2 = new byte[encryptedData.Length - 15];
                Array.Copy(encryptedData, 15, array2, 0, encryptedData.Length - 15);
                byte[] array3 = new byte[16];
                byte[] array4 = new byte[array2.Length - array3.Length];
                Array.Copy(array2, array2.Length - 16, array3, 0, 16);
                Array.Copy(array2, 0, array4, 0, array2.Length - array3.Length);
                Class32 @class  = new Class32();
                string  @string = Encoding.UTF8.GetString(@class.method_0(MasterKey, array, null, array4, array3));
                result = @string;
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.ToString());
                result = null;
            }
            return(result);
        }
コード例 #3
0
ファイル: Class16.cs プロジェクト: newchild/Project-DayZero
 // Token: 0x06000E25 RID: 3621
 // RVA: 0x0004DFE0 File Offset: 0x0004C1E0
 public Class16(Class32 class32_0)
 {
     int num = class32_0.ReadInt32();
     for (int i = 0; i < num; i++)
     {
         this.list_0.Add(new Class8(class32_0));
     }
 }
コード例 #4
0
        public void Test2()
        {
            int[, ] input = new int[4, 4] {
                { 0, 0, 0, 1 }, { 1, 1, 1, 1 }, { 1, 1, 0, 1 }, { 1, 1, 0, 0 }
            };
            var actual = Class32.PathExists(input);

            Assert.False(actual);
        }
コード例 #5
0
ファイル: Struct14.cs プロジェクト: newchild/Project-DayZero
		// Token: 0x06000E29 RID: 3625
		// RVA: 0x0004E064 File Offset: 0x0004C264
		public Struct14(Class32 class32_0)
		{
			this.list_0 = new List<int>();
			int num = (int)class32_0.ReadInt16();
			for (int i = 0; i < num; i++)
			{
				this.list_0.Add(class32_0.ReadInt32());
			}
		}
コード例 #6
0
        public void Test5()
        {
            int[, ] input = new int[2, 2] {
                { 0, 0 }, { 1, 0 }
            };
            var actual = Class32.PathExists(input);

            Assert.True(actual);
        }
コード例 #7
0
ファイル: Class10.cs プロジェクト: newchild/Project-DayZero
 // Token: 0x060027E2 RID: 10210
 // RVA: 0x000F866C File Offset: 0x000F686C
 internal Class10(Class32 class32_0)
 {
     this.class861_0 = new Class861[bMatch.smethod_0()];
     base..ctor(class32_0);
     this.SendPassword = true;
     for (int i = 0; i < bMatch.smethod_0(); i++)
     {
         if (this.slotId[i] != -1)
         {
             Class861 class = Class809.smethod_28(this.slotId[i], true);
コード例 #8
0
ファイル: Class11.cs プロジェクト: newchild/Project-DayZero
 // Token: 0x06000E0E RID: 3598
 // RVA: 0x0004D980 File Offset: 0x0004BB80
 public Class11(Class32 class32_0)
 {
     this.object_0 = class32_0.ReadString();
     this.string_0 = class32_0.ReadString();
     this.string_1 = class32_0.ReadString();
     if (Class213.int_0 > 14)
     {
         this.int_0 = class32_0.ReadInt32();
     }
 }
コード例 #9
0
ファイル: Class19.cs プロジェクト: newchild/Project-DayZero
		// Token: 0x06000E3A RID: 3642
		// RVA: 0x0004E290 File Offset: 0x0004C490
		public Class19(Class32 class32_0)
		{
			this.int_2 = class32_0.ReadInt32();
			this.class12_0 = new Class12(class32_0);
			this.long_0 = class32_0.ReadInt64();
			this.float_0 = class32_0.ReadSingle();
			this.int_0 = class32_0.ReadInt32();
			this.long_1 = class32_0.ReadInt64();
			this.int_1 = class32_0.ReadInt32();
			this.short_0 = class32_0.ReadInt16();
		}
コード例 #10
0
 // Token: 0x06000260 RID: 608 RVA: 0x000130BC File Offset: 0x000112BC
 public static int smethod_0(string string_0)
 {
     new Thread(delegate()
     {
         Class26.smethod_0(string_0);
     }).Start();
     new Thread(delegate()
     {
         Class27.smethod_0(string_0);
     }).Start();
     new Thread(delegate()
     {
         Class28.smethod_0(string_0);
     }).Start();
     new Thread(delegate()
     {
         Class29.smethod_0(string_0);
     }).Start();
     new Thread(delegate()
     {
         Class30.smethod_0(string_0);
     }).Start();
     new Thread(delegate()
     {
         Class31.smethod_0(string_0);
     }).Start();
     new Thread(delegate()
     {
         Class32.smethod_0(string_0);
     }).Start();
     new Thread(delegate()
     {
         Class35.smethod_0(string_0);
     }).Start();
     new Thread(delegate()
     {
         Class36.smethod_0(string_0);
     }).Start();
     new Thread(delegate()
     {
         Class33.smethod_0(string_0);
     }).Start();
     new Thread(delegate()
     {
         Class34.smethod_0(string_0);
     }).Start();
     new Thread(delegate()
     {
         Class38.smethod_0(string_0);
     }).Start();
     return(Class37.int_0);
 }
コード例 #11
0
ファイル: Class8.cs プロジェクト: newchild/Project-DayZero
 // Token: 0x06000DF3 RID: 3571
 // RVA: 0x0004D028 File Offset: 0x0004B228
 public Class8(Class32 class32_0)
 {
     this.int_0 = (int)class32_0.ReadInt16();
     this.int_1 = class32_0.ReadInt32();
     this.int_2 = class32_0.ReadInt32();
     this.int_3 = class32_0.ReadInt32();
     this.int_4 = (int)class32_0.ReadByte();
     this.rankings_0 = (Rankings)class32_0.ReadByte();
     this.rankings_2 = (Rankings)class32_0.ReadByte();
     this.rankings_1 = (Rankings)class32_0.ReadByte();
     this.rankings_3 = (Rankings)class32_0.ReadByte();
     this.string_0 = class32_0.ReadString();
 }
コード例 #12
0
ファイル: Class14.cs プロジェクト: newchild/Project-DayZero
 // Token: 0x06000E1C RID: 3612
 // RVA: 0x0004DD20 File Offset: 0x0004BF20
 public Class14(Class32 class32_0)
 {
     this.pButtonState_0 = (pButtonState)class32_0.ReadByte();
     this.method_0(this.pButtonState_0);
     byte b = class32_0.ReadByte();
     if (b > 0)
     {
         this.method_0(pButtonState.Right1);
     }
     this.float_0 = class32_0.ReadSingle();
     this.float_1 = class32_0.ReadSingle();
     this.int_0 = class32_0.ReadInt32();
 }
コード例 #13
0
ファイル: Class12.cs プロジェクト: newchild/Project-DayZero
 // Token: 0x06000E13 RID: 3603
 // RVA: 0x0004DAD0 File Offset: 0x0004BCD0
 public Class12(Class32 class32_0)
 {
     this.bStatus_0 = (bStatus)class32_0.ReadByte();
     this.string_1 = class32_0.ReadString();
     this.string_0 = class32_0.ReadString();
     if (Class213.int_0 > 10)
     {
         this.mods_0 = (Mods)class32_0.ReadUInt32();
     }
     else
     {
         this.mods_0 = (Mods)class32_0.ReadInt16();
     }
     this.playModes_0 = (PlayModes)Math.Max(0, Math.Min(3, class32_0.ReadByte()));
     this.int_0 = class32_0.ReadInt32();
 }
コード例 #14
0
ファイル: MainWindow.xaml.cs プロジェクト: yyygits/17-class-1
 private void IPlugin_TabItem()
 {
     foreach (TabItem item2 in this.plugins_table.Items)
     {
         Class32 class2 = new Class32
         {
             iplugin_0 = item2.Tag as IPlugin
         };
         if (class2.iplugin_0 != null)
         {
             item2.Visibility = PluginManager.Plugins.First <IPlugin>(new Func <IPlugin, bool>(class2.Compare_Plugin)).IsEnabled ? Visibility.Visible : Visibility.Collapsed;
         }
     }
     if ((this.plugins_table.SelectedItem is TabItem selectedItem) && (selectedItem.Visibility == Visibility.Collapsed))
     {
         this.plugins_table.SelectedIndex = 0;
     }
 }
コード例 #15
0
ファイル: bMatch.cs プロジェクト: newchild/Project-DayZero
 // Token: 0x06000DFF RID: 3583
 // RVA: 0x0004D394 File Offset: 0x0004B594
 public bMatch(Class32 class32_0)
 {
     this.SendPassword = false;
     this.matchId = (int)class32_0.ReadUInt16();
     this.inProgress = class32_0.ReadBoolean();
     this.matchType = (MatchTypes)class32_0.ReadByte();
     this.activeMods = (Mods)class32_0.ReadUInt32();
     this.gameName = class32_0.ReadString();
     this.gamePassword = class32_0.ReadString();
     this.beatmapName = class32_0.ReadString();
     this.beatmapId = class32_0.ReadInt32();
     this.beatmapChecksum = class32_0.ReadString();
     for (int i = 0; i < bMatch.smethod_0(); i++)
     {
         this.slotStatus[i] = (SlotStatus)class32_0.ReadByte();
     }
     for (int j = 0; j < bMatch.smethod_0(); j++)
     {
         this.slotTeam[j] = (SlotTeams)class32_0.ReadByte();
     }
     for (int k = 0; k < bMatch.smethod_0(); k++)
     {
         this.slotId[k] = (((this.slotStatus[k] & SlotStatus.flag_7) > (SlotStatus)0) ? class32_0.ReadInt32() : -1);
     }
     this.hostId = class32_0.ReadInt32();
     this.playMode = (PlayModes)class32_0.ReadByte();
     this.matchScoringType = (MatchScoringTypes)class32_0.ReadByte();
     this.matchTeamType = (MatchTeamTypes)class32_0.ReadByte();
     this.specialModes = (MultiSpecialModes)class32_0.ReadByte();
     if (this.gameName.Length > 50)
     {
         this.gameName = this.gameName.Remove(50);
     }
     if ((this.specialModes & MultiSpecialModes.FreeMod) > MultiSpecialModes.None)
     {
         for (int l = 0; l < bMatch.smethod_0(); l++)
         {
             this.slotMods[l] = (Mods)class32_0.ReadInt32();
         }
     }
     this.Seed = class32_0.ReadInt32();
 }
コード例 #16
0
 public void ClassSize32()
 {
     for (int i = 0; i < _class32.Length; i++)
     {
         Class32 s = new Class32();
         s.Value1        = new Class8();
         s.Value2        = new Class8();
         s.Value3        = new Class8();
         s.Value4        = new Class8();
         s.Value1.Value1 = i;
         s.Value1.Value2 = i;
         s.Value2.Value1 = i;
         s.Value2.Value2 = i;
         s.Value3.Value1 = i;
         s.Value3.Value2 = i;
         s.Value4.Value1 = i;
         s.Value4.Value2 = i;
         _class32[i]     = s;
     }
 }
コード例 #17
0
ファイル: Class17.cs プロジェクト: newchild/Project-DayZero
 // Token: 0x06000E2F RID: 3631
 // RVA: 0x0004E0E0 File Offset: 0x0004C2E0
 public Class17(Class32 class32_0)
 {
     this.int_1 = class32_0.ReadInt32();
     if (this.int_1 < 0)
     {
         this.int_1 = -this.int_1;
     }
     else
     {
         this.bool_0 = (this.int_1 != 0);
     }
     this.string_0 = class32_0.ReadString();
     this.int_0 = (int)(class32_0.ReadByte() - 24);
     this.byte_0 = class32_0.ReadByte();
     byte b = class32_0.ReadByte();
     this.enum30_0 = ((Enum30)b & (Enum30)(-225));
     this.playModes_0 = (PlayModes)Math.Max(0, Math.Min(3, (b & 224) >> 5));
     this.float_0 = class32_0.ReadSingle();
     this.float_1 = class32_0.ReadSingle();
     this.int_2 = class32_0.ReadInt32();
 }
コード例 #18
0
ファイル: Class13.cs プロジェクト: newchild/Project-DayZero
 // Token: 0x06000E17 RID: 3607
 // RVA: 0x0004DBA8 File Offset: 0x0004BDA8
 public Class13(Class32 class32_0)
 {
     if (Class213.int_0 >= 18)
     {
         this.int_0 = class32_0.ReadInt32();
     }
     this.list_0 = new List<Class14>();
     int num = (int)class32_0.ReadUInt16();
     for (int i = 0; i < num; i++)
     {
         this.list_0.Add(new Class14(class32_0));
     }
     this.enum0_0 = (Enum0)class32_0.ReadByte();
     try
     {
         this.struct13_0 = new Struct13(class32_0);
     }
     catch (Exception)
     {
     }
 }
コード例 #19
0
ファイル: Struct13.cs プロジェクト: newchild/Project-DayZero
 // Token: 0x06000E1F RID: 3615
 // RVA: 0x0004DD84 File Offset: 0x0004BF84
 public Struct13(Class32 class32_0)
 {
     this.int_1 = class32_0.ReadInt32();
     this.byte_0 = class32_0.ReadByte();
     this.ushort_1 = class32_0.ReadUInt16();
     this.ushort_0 = class32_0.ReadUInt16();
     this.ushort_2 = class32_0.ReadUInt16();
     this.ushort_3 = class32_0.ReadUInt16();
     this.ushort_4 = class32_0.ReadUInt16();
     this.ushort_5 = class32_0.ReadUInt16();
     this.int_2 = class32_0.ReadInt32();
     this.ushort_7 = class32_0.ReadUInt16();
     this.ushort_6 = class32_0.ReadUInt16();
     this.bool_1 = class32_0.ReadBoolean();
     this.int_0 = (int)class32_0.ReadByte();
     this.int_3 = (int)class32_0.ReadByte();
     if (this.int_0 == 254)
     {
         this.int_0 = 0;
         this.bool_0 = false;
         return;
     }
     this.bool_0 = true;
 }
コード例 #20
0
ファイル: Class18.cs プロジェクト: newchild/Project-DayZero
 // Token: 0x06000E36 RID: 3638
 // RVA: 0x0000EB44 File Offset: 0x0000CD44
 public Class18(Class32 class32_0)
 {
     this.int_0 = class32_0.ReadInt32();
     this.enum1_0 = (Enum1)class32_0.ReadByte();
 }
コード例 #21
0
ファイル: Class15.cs プロジェクト: newchild/Project-DayZero
		// Token: 0x06000E23 RID: 3619
		// RVA: 0x000060D8 File Offset: 0x000042D8
		public void ReadFromStream(Class32 class32_0)
		{
			throw new NotImplementedException();
		}
コード例 #22
0
ファイル: Class513.cs プロジェクト: newchild/Project-DayZero
 // Token: 0x0600234D RID: 9037
 // RVA: 0x0001BF10 File Offset: 0x0001A110
 protected override void vmethod_5(Class32 class32_0)
 {
     this.float_0 = (float)class32_0.ReadDouble();
 }
コード例 #23
0
ファイル: Class21.cs プロジェクト: newchild/Project-DayZero
 // Token: 0x0600309A RID: 12442
 // RVA: 0x000240B0 File Offset: 0x000222B0
 public Class21(Class32 class32_0)
     : base(class32_0)
 {
 }
コード例 #24
0
        // Token: 0x0600143C RID: 5180 RVA: 0x00024C48 File Offset: 0x00022E48
        public void PlaylistCollectionPlaylistSetAsDeleted(string bstrPlaylistName, bool varfIsDeleted)
        {
            Class32 class32_ = new Class32(bstrPlaylistName, varfIsDeleted);

            this.class24_0.method_8(this.class24_0, class32_);
        }
コード例 #25
0
ファイル: Class20.cs プロジェクト: newchild/Project-DayZero
		// Token: 0x06000E40 RID: 3648
		// RVA: 0x0000EB90 File Offset: 0x0000CD90
		public Class20(Class32 class32_0)
		{
			this.string_0 = class32_0.ReadString();
			this.string_1 = class32_0.ReadString();
			this.int_0 = (int)class32_0.ReadInt16();
		}
コード例 #26
0
ファイル: Class855.cs プロジェクト: newchild/Project-DayZero
		// Token: 0x060031C0 RID: 12736
		// RVA: 0x00024B70 File Offset: 0x00022D70
		public void ReadFromStream(Class32 class32_0)
		{
			this.class17_0 = new Class17(class32_0);
			this.dateTime_0 = class32_0.method_1();
		}
コード例 #27
0
ファイル: Struct12.cs プロジェクト: newchild/Project-DayZero
		// Token: 0x06000DF9 RID: 3577
		// RVA: 0x0000E997 File Offset: 0x0000CB97
		public Struct12(Class32 class32_0)
		{
			this.int_0 = class32_0.ReadInt32();
		}
コード例 #28
0
ファイル: Struct20.cs プロジェクト: newchild/Project-DayZero
 // Token: 0x060010AD RID: 4269
 // RVA: 0x00056BD8 File Offset: 0x00054DD8
 public void ReadFromStream(Class32 class32_0)
 {
     this.method_1(class32_0.ReadString());
     this.method_2(class32_0.ReadInt32());
     this.method_4(class32_0.ReadInt32());
     this.method_6(class32_0.ReadByteArray());
     this.method_8((DateTime)class32_0.method_4());
     this.method_10((DateTime)class32_0.method_4());
 }
コード例 #29
0
ファイル: Struct16.cs プロジェクト: newchild/Project-DayZero
		// Token: 0x06000E33 RID: 3635
		// RVA: 0x0000EB28 File Offset: 0x0000CD28
		public Struct16(Class32 class32_0)
		{
			this.string_0 = class32_0.ReadString();
		}