171 lines
7.1 KiB
C#
171 lines
7.1 KiB
C#
using System;
|
|
using Cpp2IlInjected;
|
|
using UnityEngine;
|
|
|
|
// Token: 0x02000198 RID: 408
|
|
[Token(Token = "0x2000198")]
|
|
public class DamagedObjectFloor_BossBig03 : AttackableObject
|
|
{
|
|
// Token: 0x060012A9 RID: 4777 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x60012A9")]
|
|
[Address(RVA = "0x148FAE0", Offset = "0x148E2E0", VA = "0x18148FAE0", Slot = "4")]
|
|
public override void Init()
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x060012AA RID: 4778 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x60012AA")]
|
|
[Address(RVA = "0x1490370", Offset = "0x148EB70", VA = "0x181490370", Slot = "6")]
|
|
protected override void Update()
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x060012AB RID: 4779 RVA: 0x0002AF00 File Offset: 0x00029100
|
|
[Token(Token = "0x60012AB")]
|
|
[Address(RVA = "0x148FD30", Offset = "0x148E530", VA = "0x18148FD30", Slot = "12")]
|
|
protected virtual void SetDamageColor()
|
|
{
|
|
float num = this.g_fDisTimeVal;
|
|
int num2 = 0;
|
|
if (num <= (float)num2)
|
|
{
|
|
float num3 = this.g_fAlpha;
|
|
if (num3 <= (float)num2)
|
|
{
|
|
GameObject gameObject = base.gameObject;
|
|
int num4 = 0;
|
|
gameObject.SetActive(num4 != 0);
|
|
}
|
|
this.g_fAlpha = num3;
|
|
GameObject damageObject = this.DamageObject;
|
|
int num5 = 0;
|
|
int childCount = damageObject.transform.childCount;
|
|
if (num5 >= childCount)
|
|
{
|
|
return;
|
|
}
|
|
MeshRenderer component = this.DamageObject.transform.GetChild(num5).GetComponent<MeshRenderer>();
|
|
int num6 = 0;
|
|
if (component != num6)
|
|
{
|
|
Material material = component.GetMaterial();
|
|
float num7 = this.g_fAlpha;
|
|
material.SetFloat("_Alpha", num7);
|
|
}
|
|
GameObject damageObject2 = this.DamageObject;
|
|
num5++;
|
|
}
|
|
if (this.DamageObject.GetComponent<SphereCollider>().enabled)
|
|
{
|
|
SphereCollider component2 = this.DamageObject.GetComponent<SphereCollider>();
|
|
int num8 = 0;
|
|
component2.enabled = num8 != 0;
|
|
}
|
|
float num9 = this.g_fDisTimeVal;
|
|
this.g_fDisTimeVal = num9;
|
|
}
|
|
|
|
// Token: 0x060012AC RID: 4780 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x60012AC")]
|
|
[Address(RVA = "0x148FF60", Offset = "0x148E760", VA = "0x18148FF60")]
|
|
public void SetDamage()
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x060012AD RID: 4781 RVA: 0x0002AFFC File Offset: 0x000291FC
|
|
[Token(Token = "0x60012AD")]
|
|
[Address(RVA = "0x1490220", Offset = "0x148EA20", VA = "0x181490220", Slot = "11")]
|
|
public override void SetTimeScale(float fTimeScale)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (060012AD)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void DamagedObjectFloor_BossBig03::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: 0x060012AE RID: 4782 RVA: 0x0002B080 File Offset: 0x00029280
|
|
[Token(Token = "0x60012AE")]
|
|
[Address(RVA = "0x9911E0", Offset = "0x98F9E0", VA = "0x1809911E0")]
|
|
public bool GetIsDamage()
|
|
{
|
|
return this.g_bDamage;
|
|
}
|
|
|
|
// Token: 0x060012AF RID: 4783 RVA: 0x0002B094 File Offset: 0x00029294
|
|
[Token(Token = "0x60012AF")]
|
|
[Address(RVA = "0x14903C0", Offset = "0x148EBC0", VA = "0x1814903C0")]
|
|
public DamagedObjectFloor_BossBig03()
|
|
{
|
|
}
|
|
|
|
// Token: 0x04001CFC RID: 7420
|
|
[FieldOffset(Offset = "0x68")]
|
|
[Token(Token = "0x4001CFC")]
|
|
public GameObject DamageObject;
|
|
|
|
// Token: 0x04001CFD RID: 7421
|
|
[FieldOffset(Offset = "0x70")]
|
|
[Token(Token = "0x4001CFD")]
|
|
public GameObject DamageEffectObject;
|
|
|
|
// Token: 0x04001CFE RID: 7422
|
|
[FieldOffset(Offset = "0x78")]
|
|
[Token(Token = "0x4001CFE")]
|
|
public GameObject HitEffectObject;
|
|
|
|
// Token: 0x04001CFF RID: 7423
|
|
[FieldOffset(Offset = "0x80")]
|
|
[Token(Token = "0x4001CFF")]
|
|
private float g_fOriginalMass = 1f;
|
|
|
|
// Token: 0x04001D00 RID: 7424
|
|
[FieldOffset(Offset = "0x84")]
|
|
[Token(Token = "0x4001D00")]
|
|
private float g_fOriginalAngularDrag = 0.05f;
|
|
|
|
// Token: 0x04001D01 RID: 7425
|
|
[FieldOffset(Offset = "0x88")]
|
|
[Token(Token = "0x4001D01")]
|
|
protected bool g_bDamage;
|
|
|
|
// Token: 0x04001D02 RID: 7426
|
|
[Token(Token = "0x4001D02")]
|
|
protected const float g_fDisTime = 5f;
|
|
|
|
// Token: 0x04001D03 RID: 7427
|
|
[FieldOffset(Offset = "0x8C")]
|
|
[Token(Token = "0x4001D03")]
|
|
protected float g_fDisTimeVal;
|
|
|
|
// Token: 0x04001D04 RID: 7428
|
|
[FieldOffset(Offset = "0x90")]
|
|
[Token(Token = "0x4001D04")]
|
|
protected float g_fAlpha = 1f;
|
|
|
|
// Token: 0x04001D05 RID: 7429
|
|
[FieldOffset(Offset = "0x98")]
|
|
[Token(Token = "0x4001D05")]
|
|
private EffectPool g_DamageEffect;
|
|
|
|
// Token: 0x04001D06 RID: 7430
|
|
[FieldOffset(Offset = "0xA0")]
|
|
[Token(Token = "0x4001D06")]
|
|
private EffectPool g_HitEffect;
|
|
}
|