using System;
using Il2CppInterop.Common.Attributes;
using Il2CppInterop.Runtime;

namespace Obi
{
	// Token: 0x020004E3 RID: 1251
	public class ObiEmitterMaterialGranular : ObiEmitterMaterial
	{
		// Token: 0x06008FBF RID: 36799 RVA: 0x0024F8EC File Offset: 0x0024DAEC
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 611482, XrefRangeEnd = 611485, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe void OnValidate()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(ObiEmitterMaterialGranular.NativeMethodInfoPtr_OnValidate_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x06008FC0 RID: 36800 RVA: 0x0024F930 File Offset: 0x0024DB30
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 611485, XrefRangeEnd = 611487, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe override Oni.FluidMaterial GetEquivalentOniMaterial(Oni.SolverParameters.Mode mode)
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			checked
			{
				IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
				*ptr = ref mode;
				IntPtr intPtr2;
				IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(IL2CPP.il2cpp_object_get_virtual_method(IL2CPP.Il2CppObjectBaseToPtr(this), ObiEmitterMaterialGranular.NativeMethodInfoPtr_GetEquivalentOniMaterial_Public_Virtual_FluidMaterial_Mode_0), IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
				Il2CppException.RaiseExceptionIfNecessary(intPtr2);
				return *IL2CPP.il2cpp_object_unbox(intPtr);
			}
		}

		// Token: 0x06008FC1 RID: 36801 RVA: 0x0024F9A0 File Offset: 0x0024DBA0
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 0, XrefRangeEnd = 0, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe ObiEmitterMaterialGranular()
			: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<ObiEmitterMaterialGranular>.NativeClassPtr))
		{
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(ObiEmitterMaterialGranular.NativeMethodInfoPtr__ctor_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x06008FC2 RID: 36802 RVA: 0x0024F9EC File Offset: 0x0024DBEC
		// Note: this type is marked as 'beforefieldinit'.
		static ObiEmitterMaterialGranular()
		{
			Il2CppClassPointerStore<ObiEmitterMaterialGranular>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "Obi", "ObiEmitterMaterialGranular");
			IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<ObiEmitterMaterialGranular>.NativeClassPtr);
			ObiEmitterMaterialGranular.NativeFieldInfoPtr_randomness = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<ObiEmitterMaterialGranular>.NativeClassPtr, "randomness");
			ObiEmitterMaterialGranular.NativeMethodInfoPtr_OnValidate_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ObiEmitterMaterialGranular>.NativeClassPtr, 100674429);
			ObiEmitterMaterialGranular.NativeMethodInfoPtr_GetEquivalentOniMaterial_Public_Virtual_FluidMaterial_Mode_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ObiEmitterMaterialGranular>.NativeClassPtr, 100674430);
			ObiEmitterMaterialGranular.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ObiEmitterMaterialGranular>.NativeClassPtr, 100674431);
		}

		// Token: 0x06008FC3 RID: 36803 RVA: 0x0024F6CC File Offset: 0x0024D8CC
		public ObiEmitterMaterialGranular(IntPtr pointer)
			: base(pointer)
		{
		}

		// Token: 0x170030CB RID: 12491
		// (get) Token: 0x06008FC4 RID: 36804 RVA: 0x0024FA6C File Offset: 0x0024DC6C
		// (set) Token: 0x06008FC5 RID: 36805 RVA: 0x0024FA94 File Offset: 0x0024DC94
		public unsafe float randomness
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ObiEmitterMaterialGranular.NativeFieldInfoPtr_randomness);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ObiEmitterMaterialGranular.NativeFieldInfoPtr_randomness)) = value;
			}
		}

		// Token: 0x04005FC9 RID: 24521
		private static readonly IntPtr NativeFieldInfoPtr_randomness;

		// Token: 0x04005FCA RID: 24522
		private static readonly IntPtr NativeMethodInfoPtr_OnValidate_Public_Void_0;

		// Token: 0x04005FCB RID: 24523
		private static readonly IntPtr NativeMethodInfoPtr_GetEquivalentOniMaterial_Public_Virtual_FluidMaterial_Mode_0;

		// Token: 0x04005FCC RID: 24524
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
	}
}
