285 lines
10 KiB
C#
285 lines
10 KiB
C#
using System;
|
|
using Cpp2IlInjected;
|
|
using UnityEngine;
|
|
|
|
// Token: 0x02000192 RID: 402
|
|
[Token(Token = "0x2000192")]
|
|
public class DamageObject : AttackableObject
|
|
{
|
|
// Token: 0x06001280 RID: 4736 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x6001280")]
|
|
[Address(RVA = "0x148E2E0", Offset = "0x148CAE0", VA = "0x18148E2E0", Slot = "4")]
|
|
public override void Init()
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06001281 RID: 4737 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x6001281")]
|
|
[Address(RVA = "0x148F360", Offset = "0x148DB60", VA = "0x18148F360", Slot = "6")]
|
|
protected override void Update()
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06001282 RID: 4738 RVA: 0x0002A97C File Offset: 0x00028B7C
|
|
[Token(Token = "0x6001282")]
|
|
[Address(RVA = "0x148E6E0", Offset = "0x148CEE0", VA = "0x18148E6E0", Slot = "8")]
|
|
protected override void LateUpdate()
|
|
{
|
|
if (!this.g_bDamage)
|
|
{
|
|
base.LateUpdate();
|
|
return;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06001283 RID: 4739 RVA: 0x0002A99C File Offset: 0x00028B9C
|
|
[Token(Token = "0x6001283")]
|
|
[Address(RVA = "0x148E700", Offset = "0x148CF00", VA = "0x18148E700", 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;
|
|
if (!this.FadeOut)
|
|
{
|
|
return;
|
|
}
|
|
GameObject damage = this.Damage;
|
|
int num5 = 0;
|
|
int childCount = damage.transform.childCount;
|
|
if (num5 >= childCount)
|
|
{
|
|
return;
|
|
}
|
|
Material material = this.Damage.transform.GetChild(num5).GetComponent<MeshRenderer>().GetMaterial();
|
|
float num6 = this.g_fAlpha;
|
|
material.SetFloat("_Alpha", num6);
|
|
GameObject damage2 = this.Damage;
|
|
num5++;
|
|
while (damage2 != 0)
|
|
{
|
|
}
|
|
}
|
|
if (this.Damage.GetComponent<BoxCollider>().enabled)
|
|
{
|
|
BoxCollider component = this.Damage.GetComponent<BoxCollider>();
|
|
int num7 = 0;
|
|
component.enabled = num7 != 0;
|
|
}
|
|
float num8 = this.g_fDisTimeVal;
|
|
this.g_fDisTimeVal = num8;
|
|
if (!this.FadeOut)
|
|
{
|
|
GameObject damage3 = this.Damage;
|
|
int num9 = 0;
|
|
int childCount2 = damage3.transform.childCount;
|
|
if (num9 < childCount2)
|
|
{
|
|
MeshCollider component2 = this.Damage.transform.GetChild(num9).GetComponent<MeshCollider>();
|
|
int num10 = 0;
|
|
component2.enabled = num10 != 0;
|
|
GameObject damage4 = this.Damage;
|
|
num9++;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06001284 RID: 4740 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x6001284")]
|
|
[Address(RVA = "0x148E1F0", Offset = "0x148C9F0", VA = "0x18148E1F0", Slot = "9")]
|
|
public override void HitPhysical(AttackData AD)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06001285 RID: 4741 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x6001285")]
|
|
[Address(RVA = "0x148E020", Offset = "0x148C820", VA = "0x18148E020", Slot = "13")]
|
|
public virtual void HitPhysical(float fStrength)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06001286 RID: 4742 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x6001286")]
|
|
[Address(RVA = "0x148DEB0", Offset = "0x148C6B0", VA = "0x18148DEB0", Slot = "10")]
|
|
public override void HitMagic(AttackData AD)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06001287 RID: 4743 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x6001287")]
|
|
[Address(RVA = "0x148E9C0", Offset = "0x148D1C0", VA = "0x18148E9C0", Slot = "14")]
|
|
public virtual void SetDamage()
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06001288 RID: 4744 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x6001288")]
|
|
[Address(RVA = "0x148EF30", Offset = "0x148D730", VA = "0x18148EF30", Slot = "15")]
|
|
public virtual void SetRecovery()
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06001289 RID: 4745 RVA: 0x0002AAF0 File Offset: 0x00028CF0
|
|
[Token(Token = "0x6001289")]
|
|
[Address(RVA = "0x148F210", Offset = "0x148DA10", VA = "0x18148F210", Slot = "11")]
|
|
public override void SetTimeScale(float fTimeScale)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06001289)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void DamageObject::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: 0x0600128A RID: 4746 RVA: 0x0002AB74 File Offset: 0x00028D74
|
|
[Token(Token = "0x600128A")]
|
|
[Address(RVA = "0x148DEA0", Offset = "0x148C6A0", VA = "0x18148DEA0")]
|
|
public bool GetIsDamage()
|
|
{
|
|
return this.g_bDamage;
|
|
}
|
|
|
|
// Token: 0x0600128B RID: 4747 RVA: 0x0002AB88 File Offset: 0x00028D88
|
|
[Token(Token = "0x600128B")]
|
|
[Address(RVA = "0x148AF20", Offset = "0x1489720", VA = "0x18148AF20")]
|
|
public DamageObject()
|
|
{
|
|
}
|
|
|
|
// Token: 0x04001CC8 RID: 7368
|
|
[FieldOffset(Offset = "0x68")]
|
|
[Token(Token = "0x4001CC8")]
|
|
public GameObject Original;
|
|
|
|
// Token: 0x04001CC9 RID: 7369
|
|
[FieldOffset(Offset = "0x70")]
|
|
[Token(Token = "0x4001CC9")]
|
|
public GameObject Damage;
|
|
|
|
// Token: 0x04001CCA RID: 7370
|
|
[FieldOffset(Offset = "0x78")]
|
|
[Token(Token = "0x4001CCA")]
|
|
public int DamageMoney;
|
|
|
|
// Token: 0x04001CCB RID: 7371
|
|
[FieldOffset(Offset = "0x7C")]
|
|
[Token(Token = "0x4001CCB")]
|
|
public int DamageHP;
|
|
|
|
// Token: 0x04001CCC RID: 7372
|
|
[FieldOffset(Offset = "0x80")]
|
|
[Token(Token = "0x4001CCC")]
|
|
public int DamageMP;
|
|
|
|
// Token: 0x04001CCD RID: 7373
|
|
[FieldOffset(Offset = "0x84")]
|
|
[Token(Token = "0x4001CCD")]
|
|
public ItemSystem.ItemType ItemType;
|
|
|
|
// Token: 0x04001CCE RID: 7374
|
|
[FieldOffset(Offset = "0x88")]
|
|
[Token(Token = "0x4001CCE")]
|
|
public int PropertyID = (int)((ulong)4294967295L);
|
|
|
|
// Token: 0x04001CCF RID: 7375
|
|
[FieldOffset(Offset = "0x90")]
|
|
[Token(Token = "0x4001CCF")]
|
|
public GameObject DamageEffectObject;
|
|
|
|
// Token: 0x04001CD0 RID: 7376
|
|
[FieldOffset(Offset = "0x98")]
|
|
[Token(Token = "0x4001CD0")]
|
|
public GameObject HitEffectObject;
|
|
|
|
// Token: 0x04001CD1 RID: 7377
|
|
[FieldOffset(Offset = "0xA0")]
|
|
[Token(Token = "0x4001CD1")]
|
|
public SceneEvent[] OpenEvent;
|
|
|
|
// Token: 0x04001CD2 RID: 7378
|
|
[FieldOffset(Offset = "0xA8")]
|
|
[Token(Token = "0x4001CD2")]
|
|
protected Vector3 g_v3Center;
|
|
|
|
// Token: 0x04001CD3 RID: 7379
|
|
[FieldOffset(Offset = "0xB4")]
|
|
[Token(Token = "0x4001CD3")]
|
|
private float g_fOriginalMass = 1f;
|
|
|
|
// Token: 0x04001CD4 RID: 7380
|
|
[FieldOffset(Offset = "0xB8")]
|
|
[Token(Token = "0x4001CD4")]
|
|
private float g_fOriginalAngularDrag = 0.05f;
|
|
|
|
// Token: 0x04001CD5 RID: 7381
|
|
[FieldOffset(Offset = "0xBC")]
|
|
[Token(Token = "0x4001CD5")]
|
|
protected bool g_bDamage;
|
|
|
|
// Token: 0x04001CD6 RID: 7382
|
|
[Token(Token = "0x4001CD6")]
|
|
protected const float g_fDisTime = 4.5f;
|
|
|
|
// Token: 0x04001CD7 RID: 7383
|
|
[Token(Token = "0x4001CD7")]
|
|
protected const float g_fDisSpeed = 1f;
|
|
|
|
// Token: 0x04001CD8 RID: 7384
|
|
[FieldOffset(Offset = "0xC0")]
|
|
[Token(Token = "0x4001CD8")]
|
|
protected float g_fDisTimeVal;
|
|
|
|
// Token: 0x04001CD9 RID: 7385
|
|
[FieldOffset(Offset = "0xC4")]
|
|
[Token(Token = "0x4001CD9")]
|
|
protected float g_fAlpha = 1f;
|
|
|
|
// Token: 0x04001CDA RID: 7386
|
|
[FieldOffset(Offset = "0xC8")]
|
|
[Token(Token = "0x4001CDA")]
|
|
protected float g_fOriginalHP;
|
|
|
|
// Token: 0x04001CDB RID: 7387
|
|
[FieldOffset(Offset = "0xD0")]
|
|
[Token(Token = "0x4001CDB")]
|
|
protected EffectPool g_DamageEffect;
|
|
|
|
// Token: 0x04001CDC RID: 7388
|
|
[FieldOffset(Offset = "0xD8")]
|
|
[Token(Token = "0x4001CDC")]
|
|
protected EffectPool g_HitEffect;
|
|
|
|
// Token: 0x04001CDD RID: 7389
|
|
[FieldOffset(Offset = "0xE0")]
|
|
[Token(Token = "0x4001CDD")]
|
|
public bool FadeOut = true;
|
|
}
|