293 lines
13 KiB
C#
293 lines
13 KiB
C#
using System;
|
|
using Cpp2IlInjected;
|
|
using UnityEngine;
|
|
|
|
// Token: 0x02000023 RID: 35
|
|
[Token(Token = "0x2000023")]
|
|
public class VoiceBoss02 : MonoBehaviour
|
|
{
|
|
// Token: 0x060000F4 RID: 244 RVA: 0x00004DAC File Offset: 0x00002FAC
|
|
[Token(Token = "0x60000F4")]
|
|
[Address(RVA = "0x946E70", Offset = "0x945670", VA = "0x180946E70")]
|
|
public void InitData()
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (060000F4)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void VoiceBoss02::InitData()
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{; Block_0:; stloc:GameObject(var_0_06, ldfld:GameObject(VoiceBoss02::SE_AttackFour, ldloc:VoiceBoss02(this))); stloc:Transform(var_1_0D, callgetter:Transform(Component::get_transform, ldloc:VoiceBoss02[exp:Component](this))); stloc:SoundEffect(var_2_15, call:SoundEffect(Common::GetSoundEffectOfPrefabs, ldloc:GameObject(var_0_06), ldloc:Transform(var_1_0D))); stfld:SoundEffect(VoiceBoss02::g_SEAttackFour, ldloc:VoiceBoss02(this), ldloc:SoundEffect(var_2_15)); stloc:GameObject(var_3_23, ldfld:GameObject(VoiceBoss02::SE_AttackHammer, ldloc:VoiceBoss02(this))); stloc:Transform(var_4_2A, callgetter:Transform(Component::get_transform, ldloc:VoiceBoss02[exp:Component](this))); stloc:SoundEffect(var_5_34, call:SoundEffect(Common::GetSoundEffectOfPrefabs, ldloc:GameObject(var_3_23), ldloc:Transform(var_4_2A))); stfld:SoundEffect(VoiceBoss02::g_SEAttackHammer, ldloc:VoiceBoss02(this), ldloc:SoundEffect(var_5_34)); stloc:GameObject(var_6_44, ldfld:GameObject(VoiceBoss02::SE_AttackJump, ldloc:VoiceBoss02(this))); stloc:Transform(var_7_4C, callgetter:Transform(Component::get_transform, ldloc:VoiceBoss02[exp:Component](this))); stloc:SoundEffect(var_8_57, call:SoundEffect(Common::GetSoundEffectOfPrefabs, ldloc:GameObject(var_6_44), ldloc:Transform(var_7_4C))); stfld:SoundEffect(VoiceBoss02::g_SEAttackJump, ldloc:VoiceBoss02(this), ldloc:SoundEffect(var_8_57)); stloc:GameObject(var_9_67, ldfld:GameObject(VoiceBoss02::SE_AttackUp, ldloc:VoiceBoss02(this))); stloc:Transform(var_10_6F, callgetter:Transform(Component::get_transform, ldloc:VoiceBoss02[exp:Component](this))); stloc:SoundEffect(var_11_7A, call:SoundEffect(Common::GetSoundEffectOfPrefabs, ldloc:GameObject(var_9_67), ldloc:Transform(var_10_6F))); stfld:SoundEffect(VoiceBoss02::g_SEAttackUp, ldloc:VoiceBoss02(this), ldloc:SoundEffect(var_11_7A)); stloc:GameObject(var_12_8A, ldfld:GameObject(VoiceBoss02::SE_AttackRotate, ldloc:VoiceBoss02(this))); stloc:Transform(var_13_92, callgetter:Transform(Component::get_transform, ldloc:VoiceBoss02[exp:Component](this))); stloc:SoundEffect(var_14_9D, call:SoundEffect(Common::GetSoundEffectOfPrefabs, ldloc:GameObject(var_12_8A), ldloc:Transform(var_13_92))); stfld:SoundEffect(VoiceBoss02::g_SEAttackRotate, ldloc:VoiceBoss02(this), ldloc:SoundEffect(var_14_9D)); stloc:GameObject(var_15_AD, ldfld:GameObject(VoiceBoss02::SE_AttackCharge, ldloc:VoiceBoss02(this))); stloc:Transform(var_16_B5, callgetter:Transform(Component::get_transform, ldloc:VoiceBoss02[exp:Component](this))); stloc:SoundEffect(var_17_C0, call:SoundEffect(Common::GetSoundEffectOfPrefabs, ldloc:GameObject(var_15_AD), ldloc:Transform(var_16_B5))); stfld:SoundEffect(VoiceBoss02::g_SEAttackCharge, ldloc:VoiceBoss02(this), ldloc:SoundEffect(var_17_C0)); stloc:GameObject(var_18_D0, ldfld:GameObject(VoiceBoss02::SE_Damage, ldloc:VoiceBoss02(this))); stloc:Transform(var_19_D8, callgetter:Transform(Component::get_transform, ldloc:VoiceBoss02[exp:Component](this))); stloc:SoundEffect(var_20_E3, call:SoundEffect(Common::GetSoundEffectOfPrefabs, ldloc:GameObject(var_18_D0), ldloc:Transform(var_19_D8))); stfld:SoundEffect(VoiceBoss02::g_SEDamage, ldloc:VoiceBoss02(this), ldloc:SoundEffect(var_20_E3)); stloc:GameObject(var_21_F3, ldfld:GameObject(VoiceBoss02::SE_DamageFly, ldloc:VoiceBoss02(this))); stloc:Transform(var_22_FB, callgetter:Transform(Component::get_transform, ldloc:VoiceBoss02[exp:Component](this))); stloc:SoundEffect(var_23_106, call:SoundEffect(Common::GetSoundEffectOfPrefabs, ldloc:GameObject(var_21_F3), ldloc:Transform(var_22_FB))); stfld:SoundEffect(VoiceBoss02::g_SEDamageFly, ldloc:VoiceBoss02(this), ldloc:SoundEffect(var_23_106)); stloc:GameObject(var_24_116, ldfld:GameObject(VoiceBoss02::SE_Death, ldloc:VoiceBoss02(this))); stloc:Transform(var_25_11E, callgetter:Transform(Component::get_transform, ldloc:VoiceBoss02[exp:Component](this))); stloc:SoundEffect(var_26_129, call:SoundEffect(Common::GetSoundEffectOfPrefabs, ldloc:GameObject(var_24_116), ldloc:Transform(var_25_11E))); stfld:SoundEffect(VoiceBoss02::g_SEDeath, ldloc:VoiceBoss02(this), ldloc:SoundEffect(var_26_129)); };
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1810
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 344
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
|
--- End of inner exception stack trace ---
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
|
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1618
|
|
*/;
|
|
}
|
|
|
|
// Token: 0x060000F5 RID: 245 RVA: 0x00004EEC File Offset: 0x000030EC
|
|
[Token(Token = "0x60000F5")]
|
|
[Address(RVA = "0x9470A0", Offset = "0x9458A0", VA = "0x1809470A0")]
|
|
public void PlayVoiceAttackFour(int i)
|
|
{
|
|
if (i == 0)
|
|
{
|
|
this.g_SEAttackFour.Play(4, 1f, 1f);
|
|
return;
|
|
}
|
|
if (i == 1)
|
|
{
|
|
this.g_SEAttackFour.Play(5, 1f, 1f);
|
|
return;
|
|
}
|
|
if (i != 2)
|
|
{
|
|
if (i == 3)
|
|
{
|
|
this.g_SEAttackFour.Play(7, 1f, 1f);
|
|
}
|
|
return;
|
|
}
|
|
this.g_SEAttackFour.Play(6, 1f, 1f);
|
|
}
|
|
|
|
// Token: 0x060000F6 RID: 246 RVA: 0x00004F6C File Offset: 0x0000316C
|
|
[Token(Token = "0x60000F6")]
|
|
[Address(RVA = "0x9470A0", Offset = "0x9458A0", VA = "0x1809470A0")]
|
|
public void PlayVoiceAttackFourPlus(int i)
|
|
{
|
|
if (i == 0)
|
|
{
|
|
this.g_SEAttackFour.Play(4, 1f, 1f);
|
|
return;
|
|
}
|
|
if (i == 1)
|
|
{
|
|
this.g_SEAttackFour.Play(5, 1f, 1f);
|
|
return;
|
|
}
|
|
if (i != 2)
|
|
{
|
|
if (i == 3)
|
|
{
|
|
this.g_SEAttackFour.Play(7, 1f, 1f);
|
|
}
|
|
return;
|
|
}
|
|
this.g_SEAttackFour.Play(6, 1f, 1f);
|
|
}
|
|
|
|
// Token: 0x060000F7 RID: 247 RVA: 0x00004FEC File Offset: 0x000031EC
|
|
[Token(Token = "0x60000F7")]
|
|
[Address(RVA = "0x947180", Offset = "0x945980", VA = "0x180947180")]
|
|
public void PlayVoiceAttackHammer()
|
|
{
|
|
this.g_SEAttackHammer.PlayRandom(1f, 1f);
|
|
}
|
|
|
|
// Token: 0x060000F8 RID: 248 RVA: 0x00005014 File Offset: 0x00003214
|
|
[Token(Token = "0x60000F8")]
|
|
[Address(RVA = "0x9473F0", Offset = "0x945BF0", VA = "0x1809473F0")]
|
|
public void PlayVoidAttackJump()
|
|
{
|
|
this.g_SEAttackJump.PlayRandom(1f, 1f);
|
|
}
|
|
|
|
// Token: 0x060000F9 RID: 249 RVA: 0x0000503C File Offset: 0x0000323C
|
|
[Token(Token = "0x60000F9")]
|
|
[Address(RVA = "0x947230", Offset = "0x945A30", VA = "0x180947230")]
|
|
public void PlayVoiceAttackUp()
|
|
{
|
|
this.g_SEAttackUp.PlayRandom(1f, 1f);
|
|
}
|
|
|
|
// Token: 0x060000FA RID: 250 RVA: 0x00005064 File Offset: 0x00003264
|
|
[Token(Token = "0x60000FA")]
|
|
[Address(RVA = "0x9471B0", Offset = "0x9459B0", VA = "0x1809471B0")]
|
|
public void PlayVoiceAttackRotate01()
|
|
{
|
|
SoundEffect soundEffect = this.g_SEAttackRotate;
|
|
int num = 0;
|
|
soundEffect.Play(num, 1f, 1f);
|
|
}
|
|
|
|
// Token: 0x060000FB RID: 251 RVA: 0x00005094 File Offset: 0x00003294
|
|
[Token(Token = "0x60000FB")]
|
|
[Address(RVA = "0x9471F0", Offset = "0x9459F0", VA = "0x1809471F0")]
|
|
public void PlayVoiceAttackRotate02()
|
|
{
|
|
this.g_SEAttackRotate.Play(1, 1f, 1f);
|
|
}
|
|
|
|
// Token: 0x060000FC RID: 252 RVA: 0x000050C0 File Offset: 0x000032C0
|
|
[Token(Token = "0x60000FC")]
|
|
[Address(RVA = "0x947020", Offset = "0x945820", VA = "0x180947020")]
|
|
public void PlayVoiceAttackCharge01()
|
|
{
|
|
SoundEffect soundEffect = this.g_SEAttackCharge;
|
|
int num = 0;
|
|
soundEffect.Play(num, 1f, 1f);
|
|
}
|
|
|
|
// Token: 0x060000FD RID: 253 RVA: 0x000050F0 File Offset: 0x000032F0
|
|
[Token(Token = "0x60000FD")]
|
|
[Address(RVA = "0x947060", Offset = "0x945860", VA = "0x180947060")]
|
|
public void PlayVoiceAttackCharge02()
|
|
{
|
|
this.g_SEAttackCharge.Play(1, 1f, 1f);
|
|
}
|
|
|
|
// Token: 0x060000FE RID: 254 RVA: 0x0000511C File Offset: 0x0000331C
|
|
[Token(Token = "0x60000FE")]
|
|
[Address(RVA = "0x947290", Offset = "0x945A90", VA = "0x180947290")]
|
|
public void PlayVoiceDamage()
|
|
{
|
|
this.g_SEDamage.PlayRandom(1f, 1f);
|
|
}
|
|
|
|
// Token: 0x060000FF RID: 255 RVA: 0x00005144 File Offset: 0x00003344
|
|
[Token(Token = "0x60000FF")]
|
|
[Address(RVA = "0x947260", Offset = "0x945A60", VA = "0x180947260")]
|
|
public void PlayVoiceDamageFly()
|
|
{
|
|
this.g_SEDamageFly.PlayRandom(1f, 1f);
|
|
}
|
|
|
|
// Token: 0x06000100 RID: 256 RVA: 0x0000516C File Offset: 0x0000336C
|
|
[Token(Token = "0x6000100")]
|
|
[Address(RVA = "0x9472C0", Offset = "0x945AC0", VA = "0x1809472C0")]
|
|
public void PlayVoiceDeath(int i)
|
|
{
|
|
this.g_SEDeath.Play(i, 1f, 1f);
|
|
}
|
|
|
|
// Token: 0x06000101 RID: 257 RVA: 0x00005198 File Offset: 0x00003398
|
|
[Token(Token = "0x6000101")]
|
|
[Address(RVA = "0x947300", Offset = "0x945B00", VA = "0x180947300")]
|
|
public void PlayVoiceDodge()
|
|
{
|
|
int num = UnityEngine.Random.Range(0, 4);
|
|
if (num == 0)
|
|
{
|
|
SoundEffect soundEffect = this.g_SEAttackFour;
|
|
int num2 = 0;
|
|
soundEffect.Play(num2, 1f, 1f);
|
|
return;
|
|
}
|
|
if (num == 1)
|
|
{
|
|
this.g_SEAttackFour.Play(1, 1f, 1f);
|
|
return;
|
|
}
|
|
if (num != 2)
|
|
{
|
|
if (num == 3)
|
|
{
|
|
this.g_SEAttackFour.Play(num, 1f, 1f);
|
|
}
|
|
return;
|
|
}
|
|
this.g_SEAttackFour.Play(2, 1f, 1f);
|
|
}
|
|
|
|
// Token: 0x06000102 RID: 258 RVA: 0x00005228 File Offset: 0x00003428
|
|
[Token(Token = "0x6000102")]
|
|
[Address(RVA = "0x33E460", Offset = "0x33CC60", VA = "0x18033E460")]
|
|
public VoiceBoss02()
|
|
{
|
|
}
|
|
|
|
// Token: 0x0400014C RID: 332
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x400014C")]
|
|
public GameObject SE_AttackFour;
|
|
|
|
// Token: 0x0400014D RID: 333
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x400014D")]
|
|
public GameObject SE_AttackHammer;
|
|
|
|
// Token: 0x0400014E RID: 334
|
|
[FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x400014E")]
|
|
public GameObject SE_AttackJump;
|
|
|
|
// Token: 0x0400014F RID: 335
|
|
[FieldOffset(Offset = "0x30")]
|
|
[Token(Token = "0x400014F")]
|
|
public GameObject SE_AttackUp;
|
|
|
|
// Token: 0x04000150 RID: 336
|
|
[FieldOffset(Offset = "0x38")]
|
|
[Token(Token = "0x4000150")]
|
|
public GameObject SE_AttackRotate;
|
|
|
|
// Token: 0x04000151 RID: 337
|
|
[FieldOffset(Offset = "0x40")]
|
|
[Token(Token = "0x4000151")]
|
|
public GameObject SE_AttackCharge;
|
|
|
|
// Token: 0x04000152 RID: 338
|
|
[FieldOffset(Offset = "0x48")]
|
|
[Token(Token = "0x4000152")]
|
|
public GameObject SE_Damage;
|
|
|
|
// Token: 0x04000153 RID: 339
|
|
[FieldOffset(Offset = "0x50")]
|
|
[Token(Token = "0x4000153")]
|
|
public GameObject SE_DamageFly;
|
|
|
|
// Token: 0x04000154 RID: 340
|
|
[FieldOffset(Offset = "0x58")]
|
|
[Token(Token = "0x4000154")]
|
|
public GameObject SE_Death;
|
|
|
|
// Token: 0x04000155 RID: 341
|
|
[FieldOffset(Offset = "0x60")]
|
|
[Token(Token = "0x4000155")]
|
|
private SoundEffect g_SEAttackFour;
|
|
|
|
// Token: 0x04000156 RID: 342
|
|
[FieldOffset(Offset = "0x68")]
|
|
[Token(Token = "0x4000156")]
|
|
private SoundEffect g_SEAttackHammer;
|
|
|
|
// Token: 0x04000157 RID: 343
|
|
[FieldOffset(Offset = "0x70")]
|
|
[Token(Token = "0x4000157")]
|
|
private SoundEffect g_SEAttackJump;
|
|
|
|
// Token: 0x04000158 RID: 344
|
|
[FieldOffset(Offset = "0x78")]
|
|
[Token(Token = "0x4000158")]
|
|
private SoundEffect g_SEAttackUp;
|
|
|
|
// Token: 0x04000159 RID: 345
|
|
[FieldOffset(Offset = "0x80")]
|
|
[Token(Token = "0x4000159")]
|
|
private SoundEffect g_SEAttackRotate;
|
|
|
|
// Token: 0x0400015A RID: 346
|
|
[FieldOffset(Offset = "0x88")]
|
|
[Token(Token = "0x400015A")]
|
|
private SoundEffect g_SEAttackCharge;
|
|
|
|
// Token: 0x0400015B RID: 347
|
|
[FieldOffset(Offset = "0x90")]
|
|
[Token(Token = "0x400015B")]
|
|
private SoundEffect g_SEDamage;
|
|
|
|
// Token: 0x0400015C RID: 348
|
|
[FieldOffset(Offset = "0x98")]
|
|
[Token(Token = "0x400015C")]
|
|
private SoundEffect g_SEDamageFly;
|
|
|
|
// Token: 0x0400015D RID: 349
|
|
[FieldOffset(Offset = "0xA0")]
|
|
[Token(Token = "0x400015D")]
|
|
private SoundEffect g_SEDeath;
|
|
}
|