コード例 #1
0
ファイル: Class376.cs プロジェクト: newchild/Project-DayZero
 Class702 class = arg_28_0.Find(Class376.predicate_14);
コード例 #2
0
ファイル: Editor.cs プロジェクト: newchild/Project-DayZero
 // Token: 0x0600266B RID: 9835
 // RVA: 0x000E74D4 File Offset: 0x000E56D4
 public override void Initialize()
 {
     Class858.smethod_4(false);
     Class296 current = Class466.Current;
     Class466.smethod_2(current);
     Class872.int_2 = 30;
     this.list_0 = new List<Editor.Class626>();
     this.stack_0 = new Stack<Editor.Class626>();
     this.stack_1 = new Stack<Editor.Class626>();
     this.class911_3 = new Class911(true);
     this.class297_0 = new Class301(true);
     Class876.Reset();
     Class876.class623_0 &= ~Mods.DoubleTime;
     Class62.class512_0 = null;
     Class115.editorControl_0.method_7(this);
     this.method_60();
     try
     {
         if (current.Title.Length == 0)
         {
             Class331.smethod_91();
             string text = Class34.smethod_19(current.string_1);
             if (text != current.string_1)
             {
                 if (text.Length < 4)
                 {
                     text = "music.mp3";
                 }
                 if (Class34.smethod_14(current.string_1, text, true, true))
                 {
                     current.string_1 = text;
                 }
             }
             Class331.smethod_84(current, true, false, true, false);
             current.Title = Class34.smethod_19(Class331.string_1);
             current.TitleUnicode = Class331.string_1;
             current.Artist = Class34.smethod_19(Class331.string_0);
             current.ArtistUnicode = Class331.string_0;
         }
         else
         {
             Class331.smethod_84(current, false, false, true, false);
         }
     }
     catch (Exception11)
     {
         Class723.smethod_1("Could not load audio file.", 2000);
         this.method_82(false);
         return;
     }
     if (this.method_3(current, false, false))
     {
         this.method_67(Class778.smethod_2(current.float_2, 0.1f, 8f));
         this.method_43();
         switch (current.method_5())
         {
         case PlayModes.Taiko:
             this.class371_0 = new Class373(this);
             break;
         case PlayModes.CatchTheBeat:
             this.class371_0 = new Class372(this);
             break;
         case PlayModes.OsuMania:
             this.class371_0 = new Class374(this);
             break;
         default:
             this.class371_0 = new Class371(this);
             break;
         }
         if (Class63.list_4 != null && Class63.list_4 != this.class297_0.list_1)
         {
             this.class297_0.list_1 = Class63.list_4;
             Editor.editor_0.bool_5 = true;
         }
         Class63.list_4 = null;
         this.playModes_0 = current.method_5();
         this.class375_0 = new Class375(this);
         this.class376_0 = new Class376(this);
         Class802.smethod_34(Enum96.const_8, new Delegate46(this.method_84), Enum98.const_2, Enum97.const_0);
         Class802.smethod_34(Enum96.const_6, new Delegate46(this.method_28), Enum98.const_2, Enum97.const_0);
         Class802.smethod_34(Enum96.const_5, new Delegate46(this.method_83), Enum98.const_2, Enum97.const_0);
         Class802.smethod_34(Enum96.const_3, new Delegate46(this.method_86), Enum98.const_2, Enum97.const_0);
         Class570.smethod_4(new Class570.Delegate45(this.method_78));
         Class802.smethod_34(Enum96.const_2, new Delegate46(this.method_87), Enum98.const_2, Enum97.const_0);
         Class802.smethod_34(Enum96.const_1, new Delegate46(this.method_74), Enum98.const_2, Enum97.const_0);
         Class802.smethod_34(Enum96.const_0, new Delegate46(this.method_75), Enum98.const_2, Enum97.const_0);
         Class802.smethod_34(Enum96.const_1, new Delegate46(this.method_72), Enum98.const_7, Enum97.const_0);
         Class802.smethod_34(Enum96.const_0, new Delegate46(this.method_73), Enum98.const_7, Enum97.const_0);
         Class115.smethod_15(new VoidDelegate(this.method_26));
         Class331.smethod_27(new Class331.Delegate31(this.method_27));
         this.class371_0.Initialize();
         this.class375_0.Initialize();
         this.class376_0.Initialize();
         Class115.editorControl_0.method_3(100);
         Class115.editorControl_0.method_6(Class371.dictionary_0[Enum106.flag_3]);
         this.method_42(Class341.class608_3, false);
         base.Initialize();
         Class331.smethod_89(100, false);
         if (Class331.smethod_14().Count == 0)
         {
             this.method_57(Enum105.const_3);
         }
         else
         {
             this.method_57((Editor.enum105_1 != Enum105.const_0) ? Editor.enum105_1 : Enum105.const_1);
         }
         Class115.editorControl_0.method_2(this.enum105_0);
         if (!Class115.bool_25 && Class115.int_28 <= 0)
         {
             if (current.int_7 > 0)
             {
                 Class331.smethod_70(current.int_7, false, false);
             }
             else
             {
                 Class331.smethod_70(0, false, false);
             }
         }
         else
         {
             Class331.smethod_70(Class115.int_28, false, false);
             Class115.int_28 = 0;
             Class115.bool_25 = false;
         }
         this.method_38(Class331.smethod_67());
         Class115.editorControl_0.method_11(Class331.smethod_18());
         Class723.smethod_2(null, null);
         Class115.class83_0.bool_2 = false;
         return;
     }
 }