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

// Token: 0x0200035F RID: 863
[Token(Token = "0x200035F")]
public class SackGenerator : MonoBehaviour
{
	// Token: 0x0600212E RID: 8494 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x600212E")]
	[Address(RVA = "0x431130", Offset = "0x42FF30", VA = "0x180431130")]
	private Mesh GenerateSheetMesh()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x0600212F RID: 8495 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x600212F")]
	[Address(RVA = "0x430890", Offset = "0x42F690", VA = "0x180430890")]
	private void GenerateSack()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06002130 RID: 8496 RVA: 0x0004EAC0 File Offset: 0x0004CCC0
	[Token(Token = "0x6002130")]
	[Address(RVA = "0x431690", Offset = "0x430490", VA = "0x180431690")]
	public void Update()
	{
		if (Input.GetKeyDownInt(KeyCode.Space))
		{
			this.GenerateSack();
			UnityEngine.Object.Destroy(this);
			return;
		}
	}

	// Token: 0x06002131 RID: 8497 RVA: 0x0004EAE4 File Offset: 0x0004CCE4
	[Token(Token = "0x6002131")]
	[Address(RVA = "0x431700", Offset = "0x430500", VA = "0x180431700")]
	public SackGenerator()
	{
	}

	// Token: 0x04002A8B RID: 10891
	[FieldOffset(Offset = "0x18")]
	[Token(Token = "0x4002A8B")]
	public ObiSolver solver;

	// Token: 0x04002A8C RID: 10892
	[FieldOffset(Offset = "0x20")]
	[Token(Token = "0x4002A8C")]
	public ObiMeshTopology topology;

	// Token: 0x04002A8D RID: 10893
	[FieldOffset(Offset = "0x28")]
	[Token(Token = "0x4002A8D")]
	public Material outsideMaterial;

	// Token: 0x04002A8E RID: 10894
	[FieldOffset(Offset = "0x30")]
	[Token(Token = "0x4002A8E")]
	public Material insideMaterial;

	// Token: 0x04002A8F RID: 10895
	[FieldOffset(Offset = "0x38")]
	[Token(Token = "0x4002A8F")]
	public float sackSize = 1f;

	// Token: 0x04002A90 RID: 10896
	[FieldOffset(Offset = "0x3C")]
	[Token(Token = "0x4002A90")]
	public int resolution = (int)((ulong)10L);
}
