355 lines
15 KiB
C#
355 lines
15 KiB
C#
using System;
|
|
using Cpp2IlInjected;
|
|
using UnityEngine;
|
|
|
|
// Token: 0x02000027 RID: 39
|
|
[Token(Token = "0x2000027")]
|
|
public class VoiceBoss06 : MonoBehaviour
|
|
{
|
|
// Token: 0x0600012C RID: 300 RVA: 0x00005AA4 File Offset: 0x00003CA4
|
|
[Token(Token = "0x600012C")]
|
|
[Address(RVA = "0x947D50", Offset = "0x946550", VA = "0x180947D50")]
|
|
public void InitData(Transform Parent)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600012C)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void VoiceBoss06::InitData(UnityEngine.Transform)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{; Block_0:; stloc:SoundEffect(var_0_0C, call:SoundEffect(Common::GetSoundEffectOfPrefabs, ldfld:GameObject(VoiceBoss06::SE_Attack01, ldloc:VoiceBoss06(this)), ldloc:Transform(Parent))); stfld:SoundEffect(VoiceBoss06::g_SEAttack01, ldloc:VoiceBoss06(this), ldloc:SoundEffect(var_0_0C)); stloc:SoundEffect(var_1_20, call:SoundEffect(Common::GetSoundEffectOfPrefabs, ldfld:GameObject(VoiceBoss06::SE_Attack02, ldloc:VoiceBoss06(this)), ldloc:Transform(Parent))); stfld:SoundEffect(VoiceBoss06::g_SEAttack02, ldloc:VoiceBoss06(this), ldloc:SoundEffect(var_1_20)); stloc:SoundEffect(var_2_34, call:SoundEffect(Common::GetSoundEffectOfPrefabs, ldfld:GameObject(VoiceBoss06::SE_Attack03, ldloc:VoiceBoss06(this)), ldloc:Transform(Parent))); stfld:SoundEffect(VoiceBoss06::g_SEAttack03, ldloc:VoiceBoss06(this), ldloc:SoundEffect(var_2_34)); stloc:SoundEffect(var_3_48, call:SoundEffect(Common::GetSoundEffectOfPrefabs, ldfld:GameObject(VoiceBoss06::SE_Attack04, ldloc:VoiceBoss06(this)), ldloc:Transform(Parent))); stfld:SoundEffect(VoiceBoss06::g_SEAttack04, ldloc:VoiceBoss06(this), ldloc:SoundEffect(var_3_48)); stloc:SoundEffect(var_4_5C, call:SoundEffect(Common::GetSoundEffectOfPrefabs, ldfld:GameObject(VoiceBoss06::SE_Attack05, ldloc:VoiceBoss06(this)), ldloc:Transform(Parent))); stfld:SoundEffect(VoiceBoss06::g_SEAttack05, ldloc:VoiceBoss06(this), ldloc:SoundEffect(var_4_5C)); stloc:SoundEffect(var_5_72, call:SoundEffect(Common::GetSoundEffectOfPrefabs, ldfld:GameObject(VoiceBoss06::SE_Dodge, ldloc:VoiceBoss06(this)), ldloc:Transform(Parent))); stfld:SoundEffect(VoiceBoss06::g_SEDodge, ldloc:VoiceBoss06(this), ldloc:SoundEffect(var_5_72)); stloc:SoundEffect(var_6_88, call:SoundEffect(Common::GetSoundEffectOfPrefabs, ldfld:GameObject(VoiceBoss06::SE_SwitchMagic, ldloc:VoiceBoss06(this)), ldloc:Transform(Parent))); stfld:SoundEffect(VoiceBoss06::g_SESwitchMagic, ldloc:VoiceBoss06(this), ldloc:SoundEffect(var_6_88)); stloc:SoundEffect(var_7_9E, call:SoundEffect(Common::GetSoundEffectOfPrefabs, ldfld:GameObject(VoiceBoss06::SE_Charge, ldloc:VoiceBoss06(this)), ldloc:Transform(Parent))); stfld:SoundEffect(VoiceBoss06::g_SECharge, ldloc:VoiceBoss06(this), ldloc:SoundEffect(var_7_9E)); stloc:SoundEffect(var_8_B4, call:SoundEffect(Common::GetSoundEffectOfPrefabs, ldfld:GameObject(VoiceBoss06::SE_ChargeShot, ldloc:VoiceBoss06(this)), ldloc:Transform(Parent))); stfld:SoundEffect(VoiceBoss06::g_SEChargeShot, ldloc:VoiceBoss06(this), ldloc:SoundEffect(var_8_B4)); stloc:SoundEffect(var_9_CA, call:SoundEffect(Common::GetSoundEffectOfPrefabs, ldfld:GameObject(VoiceBoss06::SE_Damage, ldloc:VoiceBoss06(this)), ldloc:Transform(Parent))); stfld:SoundEffect(VoiceBoss06::g_SEDamage, ldloc:VoiceBoss06(this), ldloc:SoundEffect(var_9_CA)); stloc:SoundEffect(var_10_E0, call:SoundEffect(Common::GetSoundEffectOfPrefabs, ldfld:GameObject(VoiceBoss06::SE_DamageFly, ldloc:VoiceBoss06(this)), ldloc:Transform(Parent))); stfld:SoundEffect(VoiceBoss06::g_SEDamageFly, ldloc:VoiceBoss06(this), ldloc:SoundEffect(var_10_E0)); stloc:SoundEffect(var_11_F6, call:SoundEffect(Common::GetSoundEffectOfPrefabs, ldfld:GameObject(VoiceBoss06::SE_Death, ldloc:VoiceBoss06(this)), ldloc:Transform(Parent))); stfld:SoundEffect(VoiceBoss06::g_SEDeath, ldloc:VoiceBoss06(this), ldloc:SoundEffect(var_11_F6)); };
|
|
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: 0x0600012D RID: 301 RVA: 0x00005BB0 File Offset: 0x00003DB0
|
|
[Token(Token = "0x600012D")]
|
|
[Address(RVA = "0x947230", Offset = "0x945A30", VA = "0x180947230")]
|
|
public void PlayVoiceAttack01()
|
|
{
|
|
this.g_SEAttack01.PlayRandom(1f, 1f);
|
|
}
|
|
|
|
// Token: 0x0600012E RID: 302 RVA: 0x00005BD8 File Offset: 0x00003DD8
|
|
[Token(Token = "0x600012E")]
|
|
[Address(RVA = "0x9475A0", Offset = "0x945DA0", VA = "0x1809475A0")]
|
|
public void PlayVoiceAttack02()
|
|
{
|
|
this.g_SEAttack02.PlayRandom(1f, 1f);
|
|
}
|
|
|
|
// Token: 0x0600012F RID: 303 RVA: 0x00005C00 File Offset: 0x00003E00
|
|
[Token(Token = "0x600012F")]
|
|
[Address(RVA = "0x9476B0", Offset = "0x945EB0", VA = "0x1809476B0")]
|
|
public void PlayVoiceAttack03()
|
|
{
|
|
this.g_SEAttack03.PlayRandom(1f, 1f);
|
|
}
|
|
|
|
// Token: 0x06000130 RID: 304 RVA: 0x00005C28 File Offset: 0x00003E28
|
|
[Token(Token = "0x6000130")]
|
|
[Address(RVA = "0x947290", Offset = "0x945A90", VA = "0x180947290")]
|
|
public void PlayVoiceAttack04()
|
|
{
|
|
this.g_SEAttack04.PlayRandom(1f, 1f);
|
|
}
|
|
|
|
// Token: 0x06000131 RID: 305 RVA: 0x00005C50 File Offset: 0x00003E50
|
|
[Token(Token = "0x6000131")]
|
|
[Address(RVA = "0x947260", Offset = "0x945A60", VA = "0x180947260")]
|
|
public void PlayVoiceAttack05()
|
|
{
|
|
this.g_SEAttack05.PlayRandom(1f, 1f);
|
|
}
|
|
|
|
// Token: 0x06000132 RID: 306 RVA: 0x00005C78 File Offset: 0x00003E78
|
|
[Token(Token = "0x6000132")]
|
|
[Address(RVA = "0x947CF0", Offset = "0x9464F0", VA = "0x180947CF0")]
|
|
public void PlayVoiceDodge()
|
|
{
|
|
this.g_SEDodge.PlayRandom(1f, 1f);
|
|
}
|
|
|
|
// Token: 0x06000133 RID: 307 RVA: 0x00005CA0 File Offset: 0x00003EA0
|
|
[Token(Token = "0x6000133")]
|
|
[Address(RVA = "0x9466F0", Offset = "0x944EF0", VA = "0x1809466F0")]
|
|
public void PlayVoiceSwitchMagic()
|
|
{
|
|
this.g_SESwitchMagic.PlayRandom(1f, 1f);
|
|
}
|
|
|
|
// Token: 0x06000134 RID: 308 RVA: 0x00005CC8 File Offset: 0x00003EC8
|
|
[Token(Token = "0x6000134")]
|
|
[Address(RVA = "0x947D20", Offset = "0x946520", VA = "0x180947D20")]
|
|
public void PlayVoiceDamage()
|
|
{
|
|
this.g_SEDamage.PlayRandom(1f, 1f);
|
|
}
|
|
|
|
// Token: 0x06000135 RID: 309 RVA: 0x00005CF0 File Offset: 0x00003EF0
|
|
[Token(Token = "0x6000135")]
|
|
[Address(RVA = "0x947EF0", Offset = "0x9466F0", VA = "0x180947EF0")]
|
|
public void PlayVoiceChargeArcaneLong()
|
|
{
|
|
SoundEffect soundEffect = this.g_SECharge;
|
|
int num = 0;
|
|
soundEffect.Play(num, 1f, 1f);
|
|
}
|
|
|
|
// Token: 0x06000136 RID: 310 RVA: 0x00005D20 File Offset: 0x00003F20
|
|
[Token(Token = "0x6000136")]
|
|
[Address(RVA = "0x947FF0", Offset = "0x9467F0", VA = "0x180947FF0")]
|
|
public void PlayVoiceChargeIceLong()
|
|
{
|
|
this.g_SECharge.Play(1, 1f, 1f);
|
|
}
|
|
|
|
// Token: 0x06000137 RID: 311 RVA: 0x00005D4C File Offset: 0x00003F4C
|
|
[Token(Token = "0x6000137")]
|
|
[Address(RVA = "0x947F70", Offset = "0x946770", VA = "0x180947F70")]
|
|
public void PlayVoiceChargeFireLong()
|
|
{
|
|
this.g_SECharge.Play(2, 1f, 1f);
|
|
}
|
|
|
|
// Token: 0x06000138 RID: 312 RVA: 0x00005D78 File Offset: 0x00003F78
|
|
[Token(Token = "0x6000138")]
|
|
[Address(RVA = "0x948070", Offset = "0x946870", VA = "0x180948070")]
|
|
public void PlayVoiceChargeLightningLong()
|
|
{
|
|
this.g_SECharge.Play(3, 1f, 1f);
|
|
}
|
|
|
|
// Token: 0x06000139 RID: 313 RVA: 0x00005DA4 File Offset: 0x00003FA4
|
|
[Token(Token = "0x6000139")]
|
|
[Address(RVA = "0x947F30", Offset = "0x946730", VA = "0x180947F30")]
|
|
public void PlayVoiceChargeArcaneShort()
|
|
{
|
|
this.g_SECharge.Play(4, 1f, 1f);
|
|
}
|
|
|
|
// Token: 0x0600013A RID: 314 RVA: 0x00005DD0 File Offset: 0x00003FD0
|
|
[Token(Token = "0x600013A")]
|
|
[Address(RVA = "0x948030", Offset = "0x946830", VA = "0x180948030")]
|
|
public void PlayVoiceChargeIceShort()
|
|
{
|
|
this.g_SECharge.Play(5, 1f, 1f);
|
|
}
|
|
|
|
// Token: 0x0600013B RID: 315 RVA: 0x00005DFC File Offset: 0x00003FFC
|
|
[Token(Token = "0x600013B")]
|
|
[Address(RVA = "0x947FB0", Offset = "0x9467B0", VA = "0x180947FB0")]
|
|
public void PlayVoiceChargeFireShort()
|
|
{
|
|
this.g_SECharge.Play(6, 1f, 1f);
|
|
}
|
|
|
|
// Token: 0x0600013C RID: 316 RVA: 0x00005E28 File Offset: 0x00004028
|
|
[Token(Token = "0x600013C")]
|
|
[Address(RVA = "0x9480B0", Offset = "0x9468B0", VA = "0x1809480B0")]
|
|
public void PlayVoiceChargeLightningShort()
|
|
{
|
|
this.g_SECharge.Play(7, 1f, 1f);
|
|
}
|
|
|
|
// Token: 0x0600013D RID: 317 RVA: 0x00005E54 File Offset: 0x00004054
|
|
[Token(Token = "0x600013D")]
|
|
[Address(RVA = "0x9480F0", Offset = "0x9468F0", VA = "0x1809480F0")]
|
|
public void PlayVoiceChargeShot(int i)
|
|
{
|
|
if (i == 0)
|
|
{
|
|
SoundEffect soundEffect = this.g_SEChargeShot;
|
|
int num = 0;
|
|
soundEffect.Play(num, 1f, 1f);
|
|
return;
|
|
}
|
|
if (i != 0)
|
|
{
|
|
if (i != 0)
|
|
{
|
|
if (i == 1)
|
|
{
|
|
uint num2;
|
|
this.g_SEChargeShot.Play((int)num2, 1f, 1f);
|
|
}
|
|
return;
|
|
}
|
|
uint num3;
|
|
this.g_SEChargeShot.Play((int)num3, 1f, 1f);
|
|
return;
|
|
}
|
|
else
|
|
{
|
|
int num4 = UnityEngine.Random.Range(0, 2);
|
|
SoundEffect soundEffect2 = this.g_SEChargeShot;
|
|
if (num4 != 0)
|
|
{
|
|
uint num5;
|
|
soundEffect2.Play((int)num5, 1f, 1f);
|
|
return;
|
|
}
|
|
uint num6;
|
|
soundEffect2.Play((int)num6, 1f, 1f);
|
|
return;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600013E RID: 318 RVA: 0x00005F04 File Offset: 0x00004104
|
|
[Token(Token = "0x600013E")]
|
|
[Address(RVA = "0x948250", Offset = "0x946A50", VA = "0x180948250")]
|
|
public void StopVoiceCharge()
|
|
{
|
|
this.g_SECharge.Stop();
|
|
}
|
|
|
|
// Token: 0x0600013F RID: 319 RVA: 0x00005F24 File Offset: 0x00004124
|
|
[Token(Token = "0x600013F")]
|
|
[Address(RVA = "0x948220", Offset = "0x946A20", VA = "0x180948220")]
|
|
public void PlayVoiceDamageFly()
|
|
{
|
|
this.g_SEDamageFly.PlayRandom(1f, 1f);
|
|
}
|
|
|
|
// Token: 0x06000140 RID: 320 RVA: 0x00005F4C File Offset: 0x0000414C
|
|
[Token(Token = "0x6000140")]
|
|
[Address(RVA = "0x946D90", Offset = "0x945590", VA = "0x180946D90")]
|
|
public void PlayVoiceDeath()
|
|
{
|
|
this.g_SEDeath.PlayRandom(1f, 1f);
|
|
}
|
|
|
|
// Token: 0x06000141 RID: 321 RVA: 0x00005F74 File Offset: 0x00004174
|
|
[Token(Token = "0x6000141")]
|
|
[Address(RVA = "0x33E460", Offset = "0x33CC60", VA = "0x18033E460")]
|
|
public VoiceBoss06()
|
|
{
|
|
}
|
|
|
|
// Token: 0x040001A2 RID: 418
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x40001A2")]
|
|
public GameObject SE_Attack01;
|
|
|
|
// Token: 0x040001A3 RID: 419
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x40001A3")]
|
|
public GameObject SE_Attack02;
|
|
|
|
// Token: 0x040001A4 RID: 420
|
|
[FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x40001A4")]
|
|
public GameObject SE_Attack03;
|
|
|
|
// Token: 0x040001A5 RID: 421
|
|
[FieldOffset(Offset = "0x30")]
|
|
[Token(Token = "0x40001A5")]
|
|
public GameObject SE_Attack04;
|
|
|
|
// Token: 0x040001A6 RID: 422
|
|
[FieldOffset(Offset = "0x38")]
|
|
[Token(Token = "0x40001A6")]
|
|
public GameObject SE_Attack05;
|
|
|
|
// Token: 0x040001A7 RID: 423
|
|
[FieldOffset(Offset = "0x40")]
|
|
[Token(Token = "0x40001A7")]
|
|
public GameObject SE_Dodge;
|
|
|
|
// Token: 0x040001A8 RID: 424
|
|
[FieldOffset(Offset = "0x48")]
|
|
[Token(Token = "0x40001A8")]
|
|
public GameObject SE_SwitchMagic;
|
|
|
|
// Token: 0x040001A9 RID: 425
|
|
[FieldOffset(Offset = "0x50")]
|
|
[Token(Token = "0x40001A9")]
|
|
public GameObject SE_Charge;
|
|
|
|
// Token: 0x040001AA RID: 426
|
|
[FieldOffset(Offset = "0x58")]
|
|
[Token(Token = "0x40001AA")]
|
|
public GameObject SE_ChargeShot;
|
|
|
|
// Token: 0x040001AB RID: 427
|
|
[FieldOffset(Offset = "0x60")]
|
|
[Token(Token = "0x40001AB")]
|
|
public GameObject SE_Damage;
|
|
|
|
// Token: 0x040001AC RID: 428
|
|
[FieldOffset(Offset = "0x68")]
|
|
[Token(Token = "0x40001AC")]
|
|
public GameObject SE_DamageFly;
|
|
|
|
// Token: 0x040001AD RID: 429
|
|
[FieldOffset(Offset = "0x70")]
|
|
[Token(Token = "0x40001AD")]
|
|
public GameObject SE_Death;
|
|
|
|
// Token: 0x040001AE RID: 430
|
|
[FieldOffset(Offset = "0x78")]
|
|
[Token(Token = "0x40001AE")]
|
|
private SoundEffect g_SEAttack01;
|
|
|
|
// Token: 0x040001AF RID: 431
|
|
[FieldOffset(Offset = "0x80")]
|
|
[Token(Token = "0x40001AF")]
|
|
private SoundEffect g_SEAttack02;
|
|
|
|
// Token: 0x040001B0 RID: 432
|
|
[FieldOffset(Offset = "0x88")]
|
|
[Token(Token = "0x40001B0")]
|
|
private SoundEffect g_SEAttack03;
|
|
|
|
// Token: 0x040001B1 RID: 433
|
|
[FieldOffset(Offset = "0x90")]
|
|
[Token(Token = "0x40001B1")]
|
|
private SoundEffect g_SEAttack04;
|
|
|
|
// Token: 0x040001B2 RID: 434
|
|
[FieldOffset(Offset = "0x98")]
|
|
[Token(Token = "0x40001B2")]
|
|
private SoundEffect g_SEAttack05;
|
|
|
|
// Token: 0x040001B3 RID: 435
|
|
[FieldOffset(Offset = "0xA0")]
|
|
[Token(Token = "0x40001B3")]
|
|
private SoundEffect g_SEDodge;
|
|
|
|
// Token: 0x040001B4 RID: 436
|
|
[FieldOffset(Offset = "0xA8")]
|
|
[Token(Token = "0x40001B4")]
|
|
private SoundEffect g_SESwitchMagic;
|
|
|
|
// Token: 0x040001B5 RID: 437
|
|
[FieldOffset(Offset = "0xB0")]
|
|
[Token(Token = "0x40001B5")]
|
|
private SoundEffect g_SECharge;
|
|
|
|
// Token: 0x040001B6 RID: 438
|
|
[FieldOffset(Offset = "0xB8")]
|
|
[Token(Token = "0x40001B6")]
|
|
private SoundEffect g_SEChargeShot;
|
|
|
|
// Token: 0x040001B7 RID: 439
|
|
[FieldOffset(Offset = "0xC0")]
|
|
[Token(Token = "0x40001B7")]
|
|
private SoundEffect g_SEDamage;
|
|
|
|
// Token: 0x040001B8 RID: 440
|
|
[FieldOffset(Offset = "0xC8")]
|
|
[Token(Token = "0x40001B8")]
|
|
private SoundEffect g_SEDamageFly;
|
|
|
|
// Token: 0x040001B9 RID: 441
|
|
[FieldOffset(Offset = "0xD0")]
|
|
[Token(Token = "0x40001B9")]
|
|
private SoundEffect g_SEDeath;
|
|
}
|