Add v1.0.3.1
This commit is contained in:
18
Cpp2IL/Assembly-CSharp/Bitgem/Core/FlagEnumAttribute.cs
Normal file
18
Cpp2IL/Assembly-CSharp/Bitgem/Core/FlagEnumAttribute.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Bitgem.Core
|
||||
{
|
||||
// Token: 0x0200038B RID: 907
|
||||
[Token(Token = "0x200038B")]
|
||||
public class FlagEnumAttribute : PropertyAttribute
|
||||
{
|
||||
// Token: 0x0600223A RID: 8762 RVA: 0x0004F5D0 File Offset: 0x0004D7D0
|
||||
[Token(Token = "0x600223A")]
|
||||
[Address(RVA = "0x4C4970", Offset = "0x4C3770", VA = "0x1804C4970")]
|
||||
public FlagEnumAttribute()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,167 @@
|
||||
using System;
|
||||
using Bitgem.Core;
|
||||
using Cpp2IlInjected;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Bitgem.VFX.StylisedWater
|
||||
{
|
||||
// Token: 0x02000385 RID: 901
|
||||
[Token(Token = "0x2000385")]
|
||||
[ExecuteInEditMode]
|
||||
[RequireComponent(typeof(MeshFilter))]
|
||||
public class WaterVolumeBase : MonoBehaviour
|
||||
{
|
||||
// Token: 0x06002224 RID: 8740 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x6002224")]
|
||||
[Address(RVA = "0x942310", Offset = "0x941110", VA = "0x180942310")]
|
||||
private void ensureReferences()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x06002225 RID: 8741 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x6002225")]
|
||||
[Address(RVA = "0x940350", Offset = "0x93F150", VA = "0x180940350")]
|
||||
public float? GetHeight(Vector3 _position)
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x06002226 RID: 8742 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x6002226")]
|
||||
[Address(RVA = "0x940590", Offset = "0x93F390", VA = "0x180940590")]
|
||||
public void Rebuild()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x06002227 RID: 8743 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x6002227")]
|
||||
[Address(RVA = "0x297F00", Offset = "0x296D00", VA = "0x180297F00", Slot = "4")]
|
||||
protected virtual void GenerateTiles(ref bool[,,] _tiles)
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x06002228 RID: 8744 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x6002228")]
|
||||
[Address(RVA = "0x297F00", Offset = "0x296D00", VA = "0x180297F00", Slot = "5")]
|
||||
public virtual void Validate()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x06002229 RID: 8745 RVA: 0x0004F428 File Offset: 0x0004D628
|
||||
[Token(Token = "0x6002229")]
|
||||
[Address(RVA = "0x940540", Offset = "0x93F340", VA = "0x180940540")]
|
||||
private void OnValidate()
|
||||
{
|
||||
float num = Mathf.Clamp(this.TileSize, 0.1f, 100f);
|
||||
this.TileSize = num;
|
||||
this.Validate();
|
||||
this.isDirty = true;
|
||||
}
|
||||
|
||||
// Token: 0x0600222A RID: 8746 RVA: 0x0004F460 File Offset: 0x0004D660
|
||||
[Token(Token = "0x600222A")]
|
||||
[Address(RVA = "0x9422A0", Offset = "0x9410A0", VA = "0x1809422A0")]
|
||||
private void Update()
|
||||
{
|
||||
if (!this.isDirty)
|
||||
{
|
||||
bool isPlaying = Application.isPlaying;
|
||||
if (isPlaying || this.RealtimeUpdates == isPlaying)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
this.Rebuild();
|
||||
}
|
||||
|
||||
// Token: 0x0600222B RID: 8747 RVA: 0x0004F494 File Offset: 0x0004D694
|
||||
[Token(Token = "0x600222B")]
|
||||
[Address(RVA = "0x9422E0", Offset = "0x9410E0", VA = "0x1809422E0")]
|
||||
public WaterVolumeBase()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x04002B73 RID: 11123
|
||||
[Token(Token = "0x4002B73")]
|
||||
public const int MAX_TILES_X = 100;
|
||||
|
||||
// Token: 0x04002B74 RID: 11124
|
||||
[Token(Token = "0x4002B74")]
|
||||
public const int MAX_TILES_Y = 50;
|
||||
|
||||
// Token: 0x04002B75 RID: 11125
|
||||
[Token(Token = "0x4002B75")]
|
||||
public const int MAX_TILES_Z = 100;
|
||||
|
||||
// Token: 0x04002B76 RID: 11126
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4002B76")]
|
||||
protected bool isDirty = true;
|
||||
|
||||
// Token: 0x04002B77 RID: 11127
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4002B77")]
|
||||
private Mesh mesh;
|
||||
|
||||
// Token: 0x04002B78 RID: 11128
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4002B78")]
|
||||
private MeshFilter meshFilter;
|
||||
|
||||
// Token: 0x04002B79 RID: 11129
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4002B79")]
|
||||
private bool[,,] tiles;
|
||||
|
||||
// Token: 0x04002B7A RID: 11130
|
||||
[FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x4002B7A")]
|
||||
[FlagEnum]
|
||||
public WaterVolumeBase.TileFace IncludeFaces = (WaterVolumeBase.TileFace)((ulong)15L);
|
||||
|
||||
// Token: 0x04002B7B RID: 11131
|
||||
[FieldOffset(Offset = "0x3C")]
|
||||
[Token(Token = "0x4002B7B")]
|
||||
[FlagEnum]
|
||||
public WaterVolumeBase.TileFace IncludeFoam = (WaterVolumeBase.TileFace)((ulong)15L);
|
||||
|
||||
// Token: 0x04002B7C RID: 11132
|
||||
[FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x4002B7C")]
|
||||
[Range(0.1f, 100f)]
|
||||
public float TileSize = 1f;
|
||||
|
||||
// Token: 0x04002B7D RID: 11133
|
||||
[FieldOffset(Offset = "0x44")]
|
||||
[Token(Token = "0x4002B7D")]
|
||||
public bool ShowDebug = true;
|
||||
|
||||
// Token: 0x04002B7E RID: 11134
|
||||
[FieldOffset(Offset = "0x45")]
|
||||
[Token(Token = "0x4002B7E")]
|
||||
public bool RealtimeUpdates;
|
||||
|
||||
// Token: 0x02000386 RID: 902
|
||||
[Token(Token = "0x2000386")]
|
||||
[Flags]
|
||||
public enum TileFace
|
||||
{
|
||||
// Token: 0x04002B80 RID: 11136
|
||||
[Token(Token = "0x4002B80")]
|
||||
NegX = 1,
|
||||
// Token: 0x04002B81 RID: 11137
|
||||
[Token(Token = "0x4002B81")]
|
||||
PosX = 2,
|
||||
// Token: 0x04002B82 RID: 11138
|
||||
[Token(Token = "0x4002B82")]
|
||||
NegZ = 4,
|
||||
// Token: 0x04002B83 RID: 11139
|
||||
[Token(Token = "0x4002B83")]
|
||||
PosZ = 8
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Bitgem.VFX.StylisedWater
|
||||
{
|
||||
// Token: 0x02000387 RID: 903
|
||||
[Token(Token = "0x2000387")]
|
||||
[AddComponentMenu("Bitgem/Water Volume (Box)")]
|
||||
public class WaterVolumeBox : WaterVolumeBase
|
||||
{
|
||||
// Token: 0x0600222C RID: 8748 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x600222C")]
|
||||
[Address(RVA = "0x942600", Offset = "0x941400", VA = "0x180942600", Slot = "4")]
|
||||
protected override void GenerateTiles(ref bool[,,] _tiles)
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x0600222D RID: 8749 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x600222D")]
|
||||
[Address(RVA = "0x942710", Offset = "0x941510", VA = "0x180942710", Slot = "5")]
|
||||
public override void Validate()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x0600222E RID: 8750 RVA: 0x0004F4D4 File Offset: 0x0004D6D4
|
||||
[Token(Token = "0x600222E")]
|
||||
[Address(RVA = "0x942790", Offset = "0x941590", VA = "0x180942790")]
|
||||
public WaterVolumeBox()
|
||||
{
|
||||
float z = Vector3.zero.z;
|
||||
this.Dimensions.z = z;
|
||||
this.isDirty = true;
|
||||
this.IncludeFaces = (WaterVolumeBase.TileFace)((ulong)15L);
|
||||
this.IncludeFoam = (WaterVolumeBase.TileFace)((ulong)15L);
|
||||
this.TileSize = 1f;
|
||||
this.ShowDebug = true;
|
||||
base..ctor();
|
||||
}
|
||||
|
||||
// Token: 0x04002B84 RID: 11140
|
||||
[FieldOffset(Offset = "0x48")]
|
||||
[Token(Token = "0x4002B84")]
|
||||
public Vector3 Dimensions;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,79 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Bitgem.VFX.StylisedWater
|
||||
{
|
||||
// Token: 0x02000388 RID: 904
|
||||
[Token(Token = "0x2000388")]
|
||||
public class WaterVolumeHelper : MonoBehaviour
|
||||
{
|
||||
// Token: 0x170001E9 RID: 489
|
||||
// (get) Token: 0x0600222F RID: 8751 RVA: 0x0004F52C File Offset: 0x0004D72C
|
||||
[Token(Token = "0x170001E9")]
|
||||
public static WaterVolumeHelper Instance
|
||||
{
|
||||
[Token(Token = "0x600222F")]
|
||||
[Address(RVA = "0x942BA0", Offset = "0x9419A0", VA = "0x180942BA0")]
|
||||
get
|
||||
{
|
||||
return WaterVolumeHelper.instance;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06002230 RID: 8752 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x6002230")]
|
||||
[Address(RVA = "0x942850", Offset = "0x941650", VA = "0x180942850")]
|
||||
public float? GetHeight(Vector3 _position)
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x06002231 RID: 8753 RVA: 0x0004F540 File Offset: 0x0004D740
|
||||
[Token(Token = "0x6002231")]
|
||||
[Address(RVA = "0x9427E0", Offset = "0x9415E0", VA = "0x1809427E0")]
|
||||
private void Awake()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06002231)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void Bitgem.VFX.StylisedWater.WaterVolumeHelper::Awake()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{; Block_0:; stsfld:WaterVolumeHelper(WaterVolumeHelper::instance, ldloc:WaterVolumeHelper(this)); };
|
||||
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: 0x06002232 RID: 8754 RVA: 0x0004F554 File Offset: 0x0004D754
|
||||
[Token(Token = "0x6002232")]
|
||||
[Address(RVA = "0x3088F0", Offset = "0x3076F0", VA = "0x1803088F0")]
|
||||
public WaterVolumeHelper()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06002233 RID: 8755 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
// Note: this type is marked as 'beforefieldinit'.
|
||||
[Token(Token = "0x6002233")]
|
||||
[Address(RVA = "0x297F00", Offset = "0x296D00", VA = "0x180297F00")]
|
||||
static WaterVolumeHelper()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x04002B85 RID: 11141
|
||||
[Token(Token = "0x4002B85")]
|
||||
private static WaterVolumeHelper instance;
|
||||
|
||||
// Token: 0x04002B86 RID: 11142
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4002B86")]
|
||||
public WaterVolumeBase WaterVolume;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,49 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Bitgem.VFX.StylisedWater
|
||||
{
|
||||
// Token: 0x02000389 RID: 905
|
||||
[Token(Token = "0x2000389")]
|
||||
[AddComponentMenu("Bitgem/Water Volume (Transforms)")]
|
||||
public class WaterVolumeTransforms : WaterVolumeBase
|
||||
{
|
||||
// Token: 0x06002234 RID: 8756 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x6002234")]
|
||||
[Address(RVA = "0x942E80", Offset = "0x941C80", VA = "0x180942E80")]
|
||||
private void OnDrawGizmos()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x06002235 RID: 8757 RVA: 0x0004F568 File Offset: 0x0004D768
|
||||
[Token(Token = "0x6002235")]
|
||||
[Address(RVA = "0x9431C0", Offset = "0x941FC0", VA = "0x1809431C0")]
|
||||
private void OnTransformChildrenChanged()
|
||||
{
|
||||
base.Rebuild();
|
||||
}
|
||||
|
||||
// Token: 0x06002236 RID: 8758 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x6002236")]
|
||||
[Address(RVA = "0x942C00", Offset = "0x941A00", VA = "0x180942C00", Slot = "4")]
|
||||
protected override void GenerateTiles(ref bool[,,] _tiles)
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x06002237 RID: 8759 RVA: 0x0004F57C File Offset: 0x0004D77C
|
||||
[Token(Token = "0x6002237")]
|
||||
[Address(RVA = "0x9422E0", Offset = "0x9410E0", VA = "0x1809422E0")]
|
||||
public WaterVolumeTransforms()
|
||||
{
|
||||
this.isDirty = true;
|
||||
this.IncludeFaces = (WaterVolumeBase.TileFace)((ulong)15L);
|
||||
this.IncludeFoam = (WaterVolumeBase.TileFace)((ulong)15L);
|
||||
this.TileSize = 1f;
|
||||
this.ShowDebug = true;
|
||||
base..ctor();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Bitgem.VFX.StylisedWater
|
||||
{
|
||||
// Token: 0x0200038A RID: 906
|
||||
[Token(Token = "0x200038A")]
|
||||
public class WateverVolumeFloater : MonoBehaviour
|
||||
{
|
||||
// Token: 0x06002238 RID: 8760 RVA: 0x000020D3 File Offset: 0x000002D3
|
||||
[Token(Token = "0x6002238")]
|
||||
[Address(RVA = "0x9431D0", Offset = "0x941FD0", VA = "0x1809431D0")]
|
||||
private void Update()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x06002239 RID: 8761 RVA: 0x0004F5BC File Offset: 0x0004D7BC
|
||||
[Token(Token = "0x6002239")]
|
||||
[Address(RVA = "0x3088F0", Offset = "0x3076F0", VA = "0x1803088F0")]
|
||||
public WateverVolumeFloater()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x04002B87 RID: 11143
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4002B87")]
|
||||
public WaterVolumeHelper WaterVolumeHelper;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user