using System;
using Cpp2IlInjected;
using DigitalOpus.MB.Core;
using UnityEngine;

// Token: 0x02000087 RID: 135
[Token(Token = "0x2000087")]
public class AI_SealGhost : AI_NPC
{
	// Token: 0x060005B1 RID: 1457 RVA: 0x0000D6A0 File Offset: 0x0000B8A0
	[Token(Token = "0x60005B1")]
	[Address(RVA = "0x182B530", Offset = "0x182A530", VA = "0x18182B530", Slot = "4")]
	public override void Start(GameObject This, NPCManage NPCM)
	{
		base.Start(This, NPCM);
		SealGhostEffectPlay component = This.GetComponent<SealGhostEffectPlay>();
		this.g_Effect = component;
		SealGhostEffectPlay sealGhostEffectPlay = this.g_Effect;
		MoveController g_Move = this.g_Move;
		sealGhostEffectPlay.InitData(g_Move);
		MoveController g_Move2 = this.g_Move;
		this.g_fDragRotation = 0.6f;
		g_Move2.SetDragRotation(0.6f);
		this.g_Move.SetDragMove(9f);
		MoveController g_Move3 = this.g_Move;
		this.g_fGravity = 0f;
		g_Move3.gravity = 0f;
		this.g_fVisionDistance = 200f;
		this.g_fVisionAngle = 60f;
		this.g_fWalkSpeed = 7.5f;
		this.g_fRunSpeed = 12f;
		this.g_fDashSpeed = 18f;
		Shake shake = new Shake();
		this.g_ShakeHead = shake;
		GameObject g_This = this.g_This;
		Shake shake2 = this.g_ShakeHead;
		Transform transform = Common.FindChild(g_This.transform, "Bip001 Head");
		int num = 0;
		shake2.Start(transform, num != 0);
		Shake shake3 = new Shake();
		this.g_ShakeSpine = shake3;
		GameObject g_This2 = this.g_This;
		Shake shake4 = this.g_ShakeSpine;
		Transform transform2 = Common.FindChild(g_This2.transform, "Bip001 Spine1");
		int num2 = 0;
		shake4.Start(transform2, num2 != 0);
		Shake shake5 = new Shake();
		this.g_ShakeUpperArmL = shake5;
		GameObject g_This3 = this.g_This;
		Shake shake6 = this.g_ShakeUpperArmL;
		Transform transform3 = Common.FindChild(g_This3.transform, "Bip001 L UpperArm");
		int num3 = 0;
		shake6.Start(transform3, num3 != 0);
		Shake shake7 = new Shake();
		this.g_ShakeUpperArmR = shake7;
		GameObject g_This4 = this.g_This;
		Shake shake8 = this.g_ShakeUpperArmR;
		Transform transform4 = Common.FindChild(g_This4.transform, "Bip001 R UpperArm");
		int num4 = 0;
		shake8.Start(transform4, num4 != 0);
		Shake shake9 = new Shake();
		this.g_ShakeThighL = shake9;
		GameObject g_This5 = this.g_This;
		Shake shake10 = this.g_ShakeThighL;
		Transform transform5 = Common.FindChild(g_This5.transform, "Bip001 L Thigh");
		int num5 = 0;
		shake10.Start(transform5, num5 != 0);
		Shake shake11 = new Shake();
		this.g_ShakeThighR = shake11;
		GameObject g_This6 = this.g_This;
		Shake shake12 = this.g_ShakeThighR;
		Transform transform6 = Common.FindChild(g_This6.transform, "Bip001 R Thigh");
		int num6 = 0;
		shake12.Start(transform6, num6 != 0);
		Shake shake13 = new Shake();
		this.g_ShakeAll = shake13;
		GameObject g_This7 = this.g_This;
		Shake shake14 = this.g_ShakeAll;
		Transform transform7 = Common.FindChild(g_This7.transform, "Bip_GhostE");
		int num7 = 0;
		shake14.Start(transform7, num7 != 0);
		Animator g_Anim = this.g_Anim;
		this.g_fAniSkirtWeights = 0.3f;
		g_Anim.SetLayerWeight(1, 0.3f);
		Animator g_Anim2 = this.g_Anim;
		this.g_fAniDamageHead = 0f;
		int num8 = 0;
		g_Anim2.SetLayerWeight(2, (float)num8);
		this.g_Status = (AI_NPC.AIStatus)((ulong)17L);
	}

	// Token: 0x060005B2 RID: 1458 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x60005B2")]
	[Address(RVA = "0x182BA70", Offset = "0x182AA70", VA = "0x18182BA70", Slot = "5")]
	public override void Update(float fDeltaTime)
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x060005B3 RID: 1459 RVA: 0x0000D96C File Offset: 0x0000BB6C
	[Token(Token = "0x60005B3")]
	[Address(RVA = "0x182ACE0", Offset = "0x1829CE0", VA = "0x18182ACE0", Slot = "6")]
	public override void LateUpdate()
	{
		this.g_ShakeHead.Update();
		this.g_ShakeSpine.Update();
		this.g_ShakeUpperArmL.Update();
		this.g_ShakeUpperArmR.Update();
		this.g_ShakeThighL.Update();
		this.g_ShakeThighR.Update();
		this.g_ShakeAll.Update();
	}

	// Token: 0x060005B4 RID: 1460 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x60005B4")]
	[Address(RVA = "0x18292D0", Offset = "0x18282D0", VA = "0x1818292D0", Slot = "22")]
	public override void Fighting()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x060005B5 RID: 1461 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x60005B5")]
	[Address(RVA = "0x182A090", Offset = "0x1829090", VA = "0x18182A090", Slot = "38")]
	protected virtual void InitFightStatus(AI_SealGhost.AIFighting Status)
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x060005B6 RID: 1462 RVA: 0x0000D9CC File Offset: 0x0000BBCC
	[Token(Token = "0x60005B6")]
	[Address(RVA = "0x1827CB0", Offset = "0x1826CB0", VA = "0x181827CB0", Slot = "39")]
	protected virtual void AttackSelect()
	{
		int num = UnityEngine.Random.Range(0, 6);
		if (num == 0)
		{
			this.g_NextFighting = (AI_SealGhost.AIFighting)((ulong)4L);
			this.g_fPlayerDistanceFar = 12f;
			this.g_fPlayerDistanceNear = 9f;
			return;
		}
		if (num == 0)
		{
			this.g_NextFighting = (AI_SealGhost.AIFighting)((ulong)7L);
			this.g_fPlayerDistanceNear = 4.5f;
			this.g_fPlayerDistanceFar = 6f;
			return;
		}
		if (num == 0)
		{
			this.g_NextFighting = (AI_SealGhost.AIFighting)((ulong)8L);
			this.g_fPlayerDistanceFar = 15f;
			this.g_fPlayerDistanceNear = 9f;
			return;
		}
		if (num != 0)
		{
			if (num != 1)
			{
				this.g_NextFighting = (AI_SealGhost.AIFighting)((ulong)11L);
			}
			this.g_NextFighting = (AI_SealGhost.AIFighting)((ulong)10L);
			this.g_fPlayerDistanceNear = 6f;
			this.g_fPlayerDistanceFar = 7.5f;
			return;
		}
		this.g_NextFighting = (AI_SealGhost.AIFighting)((ulong)9L);
		this.g_fPlayerDistanceNear = 12f;
		this.g_fPlayerDistanceFar = 18f;
	}

	// Token: 0x060005B7 RID: 1463 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x60005B7")]
	[Address(RVA = "0x29E8B0", Offset = "0x29D8B0", VA = "0x18029E8B0")]
	private void FDebut()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x060005B8 RID: 1464 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x60005B8")]
	[Address(RVA = "0x1828EF0", Offset = "0x1827EF0", VA = "0x181828EF0")]
	private void FWatch()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x060005B9 RID: 1465 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x60005B9")]
	[Address(RVA = "0x18281C0", Offset = "0x18271C0", VA = "0x1818281C0")]
	private void FAttackMove()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x060005BA RID: 1466 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x60005BA")]
	[Address(RVA = "0x1828BC0", Offset = "0x1827BC0", VA = "0x181828BC0")]
	private void FDodge()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x060005BB RID: 1467 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x60005BB")]
	[Address(RVA = "0x1828590", Offset = "0x1827590", VA = "0x181828590", Slot = "40")]
	protected virtual void FAttack()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x060005BC RID: 1468 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x60005BC")]
	[Address(RVA = "0x1827F40", Offset = "0x1826F40", VA = "0x181827F40", Slot = "41")]
	protected virtual void FAttack01()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x060005BD RID: 1469 RVA: 0x0000DAA8 File Offset: 0x0000BCA8
	[Token(Token = "0x60005BD")]
	[Address(RVA = "0x1828A20", Offset = "0x1827A20", VA = "0x181828A20")]
	private void FDamage()
	{
		float g_fWaitTime = this.g_fWaitTime;
		int num = 0;
		if (g_fWaitTime <= (float)num)
		{
			bool doUV = ((MB_IMeshBakerSettings)this).doUV7;
			return;
		}
		this.g_fWaitTime = g_fWaitTime;
	}

	// Token: 0x060005BE RID: 1470 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x60005BE")]
	[Address(RVA = "0x1828A60", Offset = "0x1827A60", VA = "0x181828A60")]
	private void FDeath()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x060005BF RID: 1471 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x60005BF")]
	[Address(RVA = "0x1829590", Offset = "0x1828590", VA = "0x181829590", Slot = "33")]
	public override void Hit(AttackData Data)
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x060005C0 RID: 1472 RVA: 0x0000DAD4 File Offset: 0x0000BCD4
	[Token(Token = "0x60005C0")]
	[Address(RVA = "0x1823200", Offset = "0x1822200", VA = "0x181823200", Slot = "30")]
	public override void Resurrection()
	{
		this.g_bDeath = false;
		bool doUV = ((MB_IMeshBakerSettings)this).doUV7;
	}

	// Token: 0x060005C1 RID: 1473 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x60005C1")]
	[Address(RVA = "0x1827DB0", Offset = "0x1826DB0", VA = "0x181827DB0", Slot = "31")]
	public override void Create()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x060005C2 RID: 1474 RVA: 0x0000DAF0 File Offset: 0x0000BCF0
	[Token(Token = "0x60005C2")]
	[Address(RVA = "0x182AD80", Offset = "0x1829D80", VA = "0x18182AD80", Slot = "32")]
	public override void Remove()
	{
		NPCManage g_NPCM = this.g_NPCM;
		int num = 0;
		g_NPCM.SetLockPoint(num != 0);
		this.g_Effect.RemoveEnemy();
		GameObject g_This = this.g_This;
		int num2 = 0;
		g_This.SetActive(num2 != 0);
	}

	// Token: 0x060005C3 RID: 1475 RVA: 0x0000DB30 File Offset: 0x0000BD30
	[Token(Token = "0x60005C3")]
	[Address(RVA = "0x182B4E0", Offset = "0x182A4E0", VA = "0x18182B4E0", Slot = "35")]
	public override void SetTimeScale(float fTimeScale)
	{
		this.g_Anim.speed = fTimeScale;
		this.g_Effect.SetTimeScale(fTimeScale);
	}

	// Token: 0x060005C4 RID: 1476 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x60005C4")]
	[Address(RVA = "0x182ADD0", Offset = "0x1829DD0", VA = "0x18182ADD0", Slot = "36")]
	public override void SetAiStatus(AI_NPC.AIStatus Status)
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x060005C5 RID: 1477 RVA: 0x0000DB5C File Offset: 0x0000BD5C
	[Token(Token = "0x60005C5")]
	[Address(RVA = "0x15B52E0", Offset = "0x15B42E0", VA = "0x1815B52E0")]
	public AI_SealGhost()
	{
	}

	// Token: 0x040006C5 RID: 1733
	[FieldOffset(Offset = "0x180")]
	[Token(Token = "0x40006C5")]
	protected SealGhostEffectPlay g_Effect;

	// Token: 0x040006C6 RID: 1734
	[FieldOffset(Offset = "0x188")]
	[Token(Token = "0x40006C6")]
	protected Vector3 g_v3PrePosition;

	// Token: 0x040006C7 RID: 1735
	[FieldOffset(Offset = "0x194")]
	[Token(Token = "0x40006C7")]
	protected Vector3 g_v3PreForward;

	// Token: 0x040006C8 RID: 1736
	[FieldOffset(Offset = "0x1A0")]
	[Token(Token = "0x40006C8")]
	protected float g_fAnifMoveHorizontal;

	// Token: 0x040006C9 RID: 1737
	[FieldOffset(Offset = "0x1A4")]
	[Token(Token = "0x40006C9")]
	protected float g_fAnifMoveVertical;

	// Token: 0x040006CA RID: 1738
	[FieldOffset(Offset = "0x1A8")]
	[Token(Token = "0x40006CA")]
	protected float g_fAniTrunAngle;

	// Token: 0x040006CB RID: 1739
	[FieldOffset(Offset = "0x1AC")]
	[Token(Token = "0x40006CB")]
	protected float g_fAniSkirtWeights;

	// Token: 0x040006CC RID: 1740
	[FieldOffset(Offset = "0x1B0")]
	[Token(Token = "0x40006CC")]
	protected float g_fAniDamageHead;

	// Token: 0x040006CD RID: 1741
	[FieldOffset(Offset = "0x1B8")]
	[Token(Token = "0x40006CD")]
	private Shake g_ShakeHead;

	// Token: 0x040006CE RID: 1742
	[FieldOffset(Offset = "0x1C0")]
	[Token(Token = "0x40006CE")]
	private Shake g_ShakeSpine;

	// Token: 0x040006CF RID: 1743
	[FieldOffset(Offset = "0x1C8")]
	[Token(Token = "0x40006CF")]
	private Shake g_ShakeUpperArmL;

	// Token: 0x040006D0 RID: 1744
	[FieldOffset(Offset = "0x1D0")]
	[Token(Token = "0x40006D0")]
	private Shake g_ShakeUpperArmR;

	// Token: 0x040006D1 RID: 1745
	[FieldOffset(Offset = "0x1D8")]
	[Token(Token = "0x40006D1")]
	private Shake g_ShakeThighL;

	// Token: 0x040006D2 RID: 1746
	[FieldOffset(Offset = "0x1E0")]
	[Token(Token = "0x40006D2")]
	private Shake g_ShakeThighR;

	// Token: 0x040006D3 RID: 1747
	[FieldOffset(Offset = "0x1E8")]
	[Token(Token = "0x40006D3")]
	private Shake g_ShakeAll;

	// Token: 0x040006D4 RID: 1748
	[FieldOffset(Offset = "0x1F0")]
	[Token(Token = "0x40006D4")]
	protected AI_SealGhost.AIFighting g_Fighting = (AI_SealGhost.AIFighting)((ulong)1L);

	// Token: 0x040006D5 RID: 1749
	[FieldOffset(Offset = "0x1F4")]
	[Token(Token = "0x40006D5")]
	protected AI_SealGhost.AIFighting g_NextFighting;

	// Token: 0x040006D6 RID: 1750
	[FieldOffset(Offset = "0x1F8")]
	[Token(Token = "0x40006D6")]
	protected int g_iAWatchMoveDir;

	// Token: 0x040006D7 RID: 1751
	[FieldOffset(Offset = "0x1FC")]
	[Token(Token = "0x40006D7")]
	protected float g_fPlayerDistanceNear;

	// Token: 0x040006D8 RID: 1752
	[FieldOffset(Offset = "0x200")]
	[Token(Token = "0x40006D8")]
	protected float g_fPlayerDistanceFar;

	// Token: 0x040006D9 RID: 1753
	[FieldOffset(Offset = "0x204")]
	[Token(Token = "0x40006D9")]
	protected float g_fAttackMove;

	// Token: 0x040006DA RID: 1754
	[FieldOffset(Offset = "0x208")]
	[Token(Token = "0x40006DA")]
	protected float g_fAttackRotate;

	// Token: 0x040006DB RID: 1755
	[FieldOffset(Offset = "0x20C")]
	[Token(Token = "0x40006DB")]
	protected float g_fAttackNext;

	// Token: 0x040006DC RID: 1756
	[Token(Token = "0x40006DC")]
	protected const float g_fAttack01Number = 6f;

	// Token: 0x040006DD RID: 1757
	[FieldOffset(Offset = "0x210")]
	[Token(Token = "0x40006DD")]
	protected float g_fAttack01NumberVal;

	// Token: 0x040006DE RID: 1758
	[FieldOffset(Offset = "0x214")]
	[Token(Token = "0x40006DE")]
	protected bool g_bDodge;

	// Token: 0x040006DF RID: 1759
	[FieldOffset(Offset = "0x218")]
	[Token(Token = "0x40006DF")]
	protected int g_iScript;

	// Token: 0x02000088 RID: 136
	[Token(Token = "0x2000088")]
	protected enum AIFighting
	{
		// Token: 0x040006E1 RID: 1761
		[Token(Token = "0x40006E1")]
		Null,
		// Token: 0x040006E2 RID: 1762
		[Token(Token = "0x40006E2")]
		Watch,
		// Token: 0x040006E3 RID: 1763
		[Token(Token = "0x40006E3")]
		WatchFast,
		// Token: 0x040006E4 RID: 1764
		[Token(Token = "0x40006E4")]
		AttackMove,
		// Token: 0x040006E5 RID: 1765
		[Token(Token = "0x40006E5")]
		Attack0101,
		// Token: 0x040006E6 RID: 1766
		[Token(Token = "0x40006E6")]
		Attack0102,
		// Token: 0x040006E7 RID: 1767
		[Token(Token = "0x40006E7")]
		Attack0103,
		// Token: 0x040006E8 RID: 1768
		[Token(Token = "0x40006E8")]
		Attack02,
		// Token: 0x040006E9 RID: 1769
		[Token(Token = "0x40006E9")]
		Attack03,
		// Token: 0x040006EA RID: 1770
		[Token(Token = "0x40006EA")]
		Attack04,
		// Token: 0x040006EB RID: 1771
		[Token(Token = "0x40006EB")]
		Attack05,
		// Token: 0x040006EC RID: 1772
		[Token(Token = "0x40006EC")]
		Attack06,
		// Token: 0x040006ED RID: 1773
		[Token(Token = "0x40006ED")]
		DodgeL,
		// Token: 0x040006EE RID: 1774
		[Token(Token = "0x40006EE")]
		DodgeR,
		// Token: 0x040006EF RID: 1775
		[Token(Token = "0x40006EF")]
		Damage,
		// Token: 0x040006F0 RID: 1776
		[Token(Token = "0x40006F0")]
		Death,
		// Token: 0x040006F1 RID: 1777
		[Token(Token = "0x40006F1")]
		End,
		// Token: 0x040006F2 RID: 1778
		[Token(Token = "0x40006F2")]
		Debut
	}
}
