using System;
using System.Linq;
using Cpp2IlInjected;
using UnityEngine;

// Token: 0x0200022E RID: 558
[Token(Token = "0x200022E")]
[Serializable]
public class DialogueAssetData
{
	// Token: 0x170000BC RID: 188
	// (get) Token: 0x060015B5 RID: 5557 RVA: 0x000313DC File Offset: 0x0002F5DC
	[Token(Token = "0x170000BC")]
	public Sprite Body
	{
		[Token(Token = "0x60015B5")]
		[Address(RVA = "0x32FD80", Offset = "0x32ED80", VA = "0x18032FD80")]
		get
		{
			return this.body;
		}
	}

	// Token: 0x170000BD RID: 189
	// (get) Token: 0x060015B6 RID: 5558 RVA: 0x000313F0 File Offset: 0x0002F5F0
	[Token(Token = "0x170000BD")]
	public Sprite Mask
	{
		[Token(Token = "0x60015B6")]
		[Address(RVA = "0x2EF530", Offset = "0x2EE530", VA = "0x1802EF530")]
		get
		{
			return this.mask;
		}
	}

	// Token: 0x060015B7 RID: 5559 RVA: 0x00031404 File Offset: 0x0002F604
	[Token(Token = "0x60015B7")]
	[Address(RVA = "0x17E0440", Offset = "0x17DF440", VA = "0x1817E0440")]
	public Sprite GetFace(string name)
	{
		Sprite[] array = this.faces;
		Func<Sprite, bool> func = delegate(Sprite f)
		{
			string name2 = f.name;
			string name3 = name;
			return string.Equals(name2, name3);
		};
		return Enumerable.FirstOrDefault<Sprite>(array, func);
	}

	// Token: 0x060015B8 RID: 5560 RVA: 0x00031440 File Offset: 0x0002F640
	[Token(Token = "0x60015B8")]
	[Address(RVA = "0x17E0530", Offset = "0x17DF530", VA = "0x1817E0530")]
	public Sprite GetFace(int index)
	{
		return this.faces[index];
	}

	// Token: 0x060015B9 RID: 5561 RVA: 0x00031460 File Offset: 0x0002F660
	[Token(Token = "0x60015B9")]
	[Address(RVA = "0x36ABD0", Offset = "0x369BD0", VA = "0x18036ABD0")]
	public DialogueAssetData()
	{
	}

	// Token: 0x040020F6 RID: 8438
	[FieldOffset(Offset = "0x10")]
	[Token(Token = "0x40020F6")]
	[SerializeField]
	private Sprite body;

	// Token: 0x040020F7 RID: 8439
	[FieldOffset(Offset = "0x18")]
	[Token(Token = "0x40020F7")]
	[SerializeField]
	private Sprite mask;

	// Token: 0x040020F8 RID: 8440
	[FieldOffset(Offset = "0x20")]
	[Token(Token = "0x40020F8")]
	[SerializeField]
	private Sprite[] faces;
}
