Files
NobetaSource/Cpp2IL/Assembly-CSharp/AI_GhostC_Lightning.cs
2023-09-06 22:09:22 +02:00

261 lines
14 KiB
C#

using System;
using Cpp2IlInjected;
using UnityEngine;
// Token: 0x02000078 RID: 120
[Token(Token = "0x2000078")]
public class AI_GhostC_Lightning : AI_GhostC
{
// Token: 0x060004E2 RID: 1250 RVA: 0x0000C610 File Offset: 0x0000A810
[Token(Token = "0x60004E2")]
[Address(RVA = "0x18B3170", Offset = "0x18B1970", VA = "0x1818B3170", Slot = "4")]
public override void Start(GameObject This, NPCManage NPCM)
{
base.Start(This, NPCM);
this.g_fVisionDistance = 12f;
this.g_fAttackRadius = 1.2f;
this.g_fWalkSpeed = 4f;
this.g_fRunSpeed = 9f;
this.g_fDashSpeed = 15f;
}
// Token: 0x060004E3 RID: 1251 RVA: 0x000020D3 File Offset: 0x000002D3
[Token(Token = "0x60004E3")]
[Address(RVA = "0x18B3290", Offset = "0x18B1A90", VA = "0x1818B3290", Slot = "5")]
public override void Update(float fDeltaTime)
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x060004E4 RID: 1252 RVA: 0x000020D3 File Offset: 0x000002D3
[Token(Token = "0x60004E4")]
[Address(RVA = "0x177CA80", Offset = "0x177B280", VA = "0x18177CA80")]
private new void StatusSwich()
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x060004E5 RID: 1253 RVA: 0x000020D3 File Offset: 0x000002D3
[Token(Token = "0x60004E5")]
[Address(RVA = "0x18B2AB0", Offset = "0x18B12B0", VA = "0x1818B2AB0", Slot = "38")]
public override void InitStatus(AI_NPC.AIStatus Status)
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x060004E6 RID: 1254 RVA: 0x000020D3 File Offset: 0x000002D3
[Token(Token = "0x60004E6")]
[Address(RVA = "0x18B1FF0", Offset = "0x18B07F0", VA = "0x1818B1FF0", Slot = "22")]
public override void Fighting()
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x060004E7 RID: 1255 RVA: 0x000020D3 File Offset: 0x000002D3
[Token(Token = "0x60004E7")]
[Address(RVA = "0x18B2680", Offset = "0x18B0E80", VA = "0x1818B2680")]
private void InitFightingType(AI_GhostC_Lightning.AIFighting Type)
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x060004E8 RID: 1256 RVA: 0x000020D3 File Offset: 0x000002D3
[Token(Token = "0x60004E8")]
[Address(RVA = "0x18B1E70", Offset = "0x18B0670", VA = "0x1818B1E70")]
private void FWatch()
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x060004E9 RID: 1257 RVA: 0x000020D3 File Offset: 0x000002D3
[Token(Token = "0x60004E9")]
[Address(RVA = "0x18B1D30", Offset = "0x18B0530", VA = "0x1818B1D30")]
private void FTrack()
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x060004EA RID: 1258 RVA: 0x000020D3 File Offset: 0x000002D3
[Token(Token = "0x60004EA")]
[Address(RVA = "0x18B1890", Offset = "0x18B0090", VA = "0x1818B1890")]
private void FBite()
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x060004EB RID: 1259 RVA: 0x000020D3 File Offset: 0x000002D3
[Token(Token = "0x60004EB")]
[Address(RVA = "0x18B1BC0", Offset = "0x18B03C0", VA = "0x1818B1BC0")]
private void FRunBite01()
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x060004EC RID: 1260 RVA: 0x0000C65C File Offset: 0x0000A85C
[Token(Token = "0x60004EC")]
[Address(RVA = "0x18B1D00", Offset = "0x18B0500", VA = "0x1818B1D00")]
private void FRunBite02()
{
float g_fWaitTime = this.g_fWaitTime;
int num = 0;
if (g_fWaitTime <= (float)num)
{
int num2 = 0;
this.InitFightingType((AI_GhostC_Lightning.AIFighting)num2);
return;
}
this.g_fWaitTime = g_fWaitTime;
}
// Token: 0x060004ED RID: 1261 RVA: 0x000020D3 File Offset: 0x000002D3
[Token(Token = "0x60004ED")]
[Address(RVA = "0x18B1A70", Offset = "0x18B0270", VA = "0x1818B1A70")]
private void FCharge()
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x060004EE RID: 1262 RVA: 0x0000C688 File Offset: 0x0000A888
[Token(Token = "0x60004EE")]
[Address(RVA = "0x18B3020", Offset = "0x18B1820", VA = "0x1818B3020")]
public void OpenLightningSpeedUp()
{
/*
An exception occurred when decompiling this method (060004EE)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void AI_GhostC_Lightning::OpenLightningSpeedUp()
---> System.ArgumentOutOfRangeException: Non-negative number required. (Parameter 'length')
at System.Array.Copy(Array sourceArray, Int32 sourceIndex, Array destinationArray, Int32 destinationIndex, Int32 length, Boolean reliable)
at System.Array.Copy(Array sourceArray, Array destinationArray, Int32 length)
at ICSharpCode.Decompiler.ILAst.ILAstBuilder.StackSlot.ModifyStack(StackSlot[] stack, Int32 popCount, Int32 pushCount, ByteCode pushDefinition) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstBuilder.cs:line 51
at ICSharpCode.Decompiler.ILAst.ILAstBuilder.StackAnalysis(MethodDef methodDef) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstBuilder.cs:line 401
at ICSharpCode.Decompiler.ILAst.ILAstBuilder.Build(MethodDef methodDef, Boolean optimize, DecompilerContext context) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstBuilder.cs:line 276
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 112
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: 0x060004EF RID: 1263 RVA: 0x0000C710 File Offset: 0x0000A910
[Token(Token = "0x60004EF")]
[Address(RVA = "0x18B31C0", Offset = "0x18B19C0", VA = "0x1818B31C0")]
public void StopLightningSpeedUp()
{
/*
An exception occurred when decompiling this method (060004EF)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void AI_GhostC_Lightning::StopLightningSpeedUp()
---> System.ArgumentOutOfRangeException: Non-negative number required. (Parameter 'length')
at System.Array.Copy(Array sourceArray, Int32 sourceIndex, Array destinationArray, Int32 destinationIndex, Int32 length, Boolean reliable)
at System.Array.Copy(Array sourceArray, Array destinationArray, Int32 length)
at ICSharpCode.Decompiler.ILAst.ILAstBuilder.StackSlot.ModifyStack(StackSlot[] stack, Int32 popCount, Int32 pushCount, ByteCode pushDefinition) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstBuilder.cs:line 51
at ICSharpCode.Decompiler.ILAst.ILAstBuilder.StackAnalysis(MethodDef methodDef) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstBuilder.cs:line 401
at ICSharpCode.Decompiler.ILAst.ILAstBuilder.Build(MethodDef methodDef, Boolean optimize, DecompilerContext context) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstBuilder.cs:line 276
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 112
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: 0x060004F0 RID: 1264 RVA: 0x0000C78C File Offset: 0x0000A98C
[Token(Token = "0x60004F0")]
[Address(RVA = "0x18B3100", Offset = "0x18B1900", VA = "0x1818B3100", Slot = "35")]
public override void SetTimeScale(float fTimeScale)
{
/*
An exception occurred when decompiling this method (060004F0)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void AI_GhostC_Lightning::SetTimeScale(System.Single)
---> System.ArgumentOutOfRangeException: Non-negative number required. (Parameter 'length')
at System.Array.Copy(Array sourceArray, Int32 sourceIndex, Array destinationArray, Int32 destinationIndex, Int32 length, Boolean reliable)
at System.Array.Copy(Array sourceArray, Array destinationArray, Int32 length)
at ICSharpCode.Decompiler.ILAst.ILAstBuilder.StackSlot.ModifyStack(StackSlot[] stack, Int32 popCount, Int32 pushCount, ByteCode pushDefinition) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstBuilder.cs:line 51
at ICSharpCode.Decompiler.ILAst.ILAstBuilder.StackAnalysis(MethodDef methodDef) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstBuilder.cs:line 401
at ICSharpCode.Decompiler.ILAst.ILAstBuilder.Build(MethodDef methodDef, Boolean optimize, DecompilerContext context) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstBuilder.cs:line 276
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 112
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: 0x060004F1 RID: 1265 RVA: 0x0000C7D8 File Offset: 0x0000A9D8
[Token(Token = "0x60004F1")]
[Address(RVA = "0x18B3690", Offset = "0x18B1E90", VA = "0x1818B3690")]
public AI_GhostC_Lightning()
{
this.g_fAttackRadius = 1.2f;
base..ctor();
}
// Token: 0x040005BA RID: 1466
[FieldOffset(Offset = "0x200")]
[Token(Token = "0x40005BA")]
private float g_fAniMoveSpeed;
// Token: 0x040005BB RID: 1467
[FieldOffset(Offset = "0x204")]
[Token(Token = "0x40005BB")]
private AI_GhostC_Lightning.AIFighting g_Fightting;
// Token: 0x040005BC RID: 1468
[FieldOffset(Offset = "0x208")]
[Token(Token = "0x40005BC")]
private float g_fWorldTimeDeltaTime = 1f;
// Token: 0x040005BD RID: 1469
[FieldOffset(Offset = "0x20C")]
[Token(Token = "0x40005BD")]
private bool g_bLightningSpeedUp;
// Token: 0x040005BE RID: 1470
[Token(Token = "0x40005BE")]
private const float g_fLightningModeTime = 7.5f;
// Token: 0x040005BF RID: 1471
[FieldOffset(Offset = "0x210")]
[Token(Token = "0x40005BF")]
private float g_fLightningModeTimeVal;
// Token: 0x040005C0 RID: 1472
[Token(Token = "0x40005C0")]
private const float g_fTimeScaleLightning = 1.8f;
// Token: 0x040005C1 RID: 1473
[FieldOffset(Offset = "0x214")]
[Token(Token = "0x40005C1")]
private float g_fTimeScaleLightningVal = 1f;
// Token: 0x02000079 RID: 121
[Token(Token = "0x2000079")]
private enum AIFighting
{
// Token: 0x040005C3 RID: 1475
[Token(Token = "0x40005C3")]
Watch,
// Token: 0x040005C4 RID: 1476
[Token(Token = "0x40005C4")]
Bite,
// Token: 0x040005C5 RID: 1477
[Token(Token = "0x40005C5")]
RunBite01,
// Token: 0x040005C6 RID: 1478
[Token(Token = "0x40005C6")]
RunBite02,
// Token: 0x040005C7 RID: 1479
[Token(Token = "0x40005C7")]
Track,
// Token: 0x040005C8 RID: 1480
[Token(Token = "0x40005C8")]
Charge
}
}