using System;
using Cpp2IlInjected;
using Obi;
using UnityEngine;

// Token: 0x020003B7 RID: 951
[Token(Token = "0x20003B7")]
public class SackGenerator : MonoBehaviour
{
	// Token: 0x060023F7 RID: 9207 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x60023F7")]
	[Address(RVA = "0x50B4B0", Offset = "0x50A4B0", VA = "0x18050B4B0")]
	private Mesh GenerateSheetMesh()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x060023F8 RID: 9208 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x60023F8")]
	[Address(RVA = "0x50AC10", Offset = "0x509C10", VA = "0x18050AC10")]
	private void GenerateSack()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x060023F9 RID: 9209 RVA: 0x00055D5C File Offset: 0x00053F5C
	[Token(Token = "0x60023F9")]
	[Address(RVA = "0x50BA10", Offset = "0x50AA10", VA = "0x18050BA10")]
	public void Update()
	{
		if (Input.GetKeyDownInt(KeyCode.Space))
		{
			this.GenerateSack();
			UnityEngine.Object.Destroy(this);
			return;
		}
	}

	// Token: 0x060023FA RID: 9210 RVA: 0x00055D80 File Offset: 0x00053F80
	[Token(Token = "0x60023FA")]
	[Address(RVA = "0x50BA80", Offset = "0x50AA80", VA = "0x18050BA80")]
	public SackGenerator()
	{
	}

	// Token: 0x04002D75 RID: 11637
	[FieldOffset(Offset = "0x18")]
	[Token(Token = "0x4002D75")]
	public ObiSolver solver;

	// Token: 0x04002D76 RID: 11638
	[FieldOffset(Offset = "0x20")]
	[Token(Token = "0x4002D76")]
	public ObiMeshTopology topology;

	// Token: 0x04002D77 RID: 11639
	[FieldOffset(Offset = "0x28")]
	[Token(Token = "0x4002D77")]
	public Material outsideMaterial;

	// Token: 0x04002D78 RID: 11640
	[FieldOffset(Offset = "0x30")]
	[Token(Token = "0x4002D78")]
	public Material insideMaterial;

	// Token: 0x04002D79 RID: 11641
	[FieldOffset(Offset = "0x38")]
	[Token(Token = "0x4002D79")]
	public float sackSize = 1f;

	// Token: 0x04002D7A RID: 11642
	[FieldOffset(Offset = "0x3C")]
	[Token(Token = "0x4002D7A")]
	public int resolution = (int)((ulong)10L);
}
