コード例 #1
0
 // Token: 0x0600378D RID: 14221
 public static void ParseRebinding()
 {
     RandomizerRebinding.ActionMap = new Hashtable();
     RandomizerRebinding.ActionMap.Add("Jump", Core.Input.Jump);
     RandomizerRebinding.ActionMap.Add("SpiritFlame", Core.Input.SpiritFlame);
     RandomizerRebinding.ActionMap.Add("Bash", Core.Input.Bash);
     RandomizerRebinding.ActionMap.Add("SoulFlame", Core.Input.SoulFlame);
     RandomizerRebinding.ActionMap.Add("ChargeJump", Core.Input.ChargeJump);
     RandomizerRebinding.ActionMap.Add("Glide", Core.Input.Glide);
     RandomizerRebinding.ActionMap.Add("Dash", Core.Input.RightShoulder);
     RandomizerRebinding.ActionMap.Add("Grenade", Core.Input.LeftShoulder);
     RandomizerRebinding.ActionMap.Add("Left", Core.Input.Left);
     RandomizerRebinding.ActionMap.Add("Right", Core.Input.Right);
     RandomizerRebinding.ActionMap.Add("Up", Core.Input.Up);
     RandomizerRebinding.ActionMap.Add("Down", Core.Input.Down);
     RandomizerRebinding.ActionMap.Add("LeftStick", Core.Input.LeftStick);
     RandomizerRebinding.ActionMap.Add("RightStick", Core.Input.RightStick);
     RandomizerRebinding.ActionMap.Add("Start", Core.Input.Start);
     RandomizerRebinding.ActionMap.Add("Select", Core.Input.Select);
     if (!File.Exists("RandomizerRebinding.txt"))
     {
         RandomizerRebinding.WriteDefaultFile();
     }
     try
     {
         string[] array = File.ReadAllLines("RandomizerRebinding.txt");
         RandomizerRebinding.ReplayMessage    = RandomizerRebinding.ParseLine(array[4]);
         RandomizerRebinding.ReturnToStart    = RandomizerRebinding.ParseLine(array[5]);
         RandomizerRebinding.ReloadSeed       = RandomizerRebinding.ParseLine(array[6]);
         RandomizerRebinding.ToggleChaos      = RandomizerRebinding.ParseLine(array[7]);
         RandomizerRebinding.ChaosVerbosity   = RandomizerRebinding.ParseLine(array[8]);
         RandomizerRebinding.ForceChaosEffect = RandomizerRebinding.ParseLine(array[9]);
         RandomizerRebinding.ShowProgress     = RandomizerRebinding.ParseLine(array[10]);
         RandomizerRebinding.ColorShift       = RandomizerRebinding.ParseLine(array[11]);
         RandomizerRebinding.DoubleBash       = RandomizerRebinding.ParseLine(array[12]);
     }
     catch (Exception)
     {
         RandomizerRebinding.LoadDefaultBinds();
     }
 }
コード例 #2
0
 // Token: 0x060039AA RID: 14762
 public static void ParseRebinding()
 {
     if (!File.Exists("RandomizerRebinding.txt"))
     {
         RandomizerRebinding.WriteDefaultFile();
     }
     try
     {
         string[] expr_1C = File.ReadAllLines("RandomizerRebinding.txt");
         RandomizerRebinding.ReplayMessage    = RandomizerRebinding.StringToKeyBinding(expr_1C[2]);
         RandomizerRebinding.ReturnToStart    = RandomizerRebinding.StringToKeyBinding(expr_1C[3]);
         RandomizerRebinding.ReloadSeed       = RandomizerRebinding.StringToKeyBinding(expr_1C[4]);
         RandomizerRebinding.ToggleChaos      = RandomizerRebinding.StringToKeyBinding(expr_1C[5]);
         RandomizerRebinding.ChaosVerbosity   = RandomizerRebinding.StringToKeyBinding(expr_1C[6]);
         RandomizerRebinding.ForceChaosEffect = RandomizerRebinding.StringToKeyBinding(expr_1C[7]);
         RandomizerRebinding.ShowProgress     = RandomizerRebinding.StringToKeyBinding(expr_1C[8]);
     }
     catch (Exception)
     {
         RandomizerRebinding.LoadDefaultBinds();
     }
 }