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

namespace Obi
{
	// Token: 0x0200053B RID: 1339
	public class ObiEmitterMaterialGranular : ObiEmitterMaterial
	{
		// Token: 0x06009812 RID: 38930 RVA: 0x00272628 File Offset: 0x00270828
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 643792, XrefRangeEnd = 643795, 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: 0x06009813 RID: 38931 RVA: 0x0027266C File Offset: 0x0027086C
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 643795, XrefRangeEnd = 643797, 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: 0x06009814 RID: 38932 RVA: 0x002726DC File Offset: 0x002708DC
		[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: 0x06009815 RID: 38933 RVA: 0x00272728 File Offset: 0x00270928
		// 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, 100675142);
			ObiEmitterMaterialGranular.NativeMethodInfoPtr_GetEquivalentOniMaterial_Public_Virtual_FluidMaterial_Mode_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ObiEmitterMaterialGranular>.NativeClassPtr, 100675143);
			ObiEmitterMaterialGranular.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ObiEmitterMaterialGranular>.NativeClassPtr, 100675144);
		}

		// Token: 0x06009816 RID: 38934 RVA: 0x00272408 File Offset: 0x00270608
		public ObiEmitterMaterialGranular(IntPtr pointer)
			: base(pointer)
		{
		}

		// Token: 0x17003366 RID: 13158
		// (get) Token: 0x06009817 RID: 38935 RVA: 0x002727A8 File Offset: 0x002709A8
		// (set) Token: 0x06009818 RID: 38936 RVA: 0x002727D0 File Offset: 0x002709D0
		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: 0x04006572 RID: 25970
		private static readonly IntPtr NativeFieldInfoPtr_randomness;

		// Token: 0x04006573 RID: 25971
		private static readonly IntPtr NativeMethodInfoPtr_OnValidate_Public_Void_0;

		// Token: 0x04006574 RID: 25972
		private static readonly IntPtr NativeMethodInfoPtr_GetEquivalentOniMaterial_Public_Virtual_FluidMaterial_Mode_0;

		// Token: 0x04006575 RID: 25973
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
	}
}
