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

// Token: 0x02000080 RID: 128
[Token(Token = "0x2000080")]
public class AI_GhostE : AI_NPC
{
	// Token: 0x0600053F RID: 1343 RVA: 0x0000C90C File Offset: 0x0000AB0C
	[Token(Token = "0x600053F")]
	[Address(RVA = "0x18234B0", Offset = "0x18224B0", VA = "0x1818234B0", Slot = "4")]
	public override void Start(GameObject This, NPCManage NPCM)
	{
		base.Start(This, NPCM);
		Animator component = Common.FindChild(this.g_This.transform, "GhostE_Face").GetComponent<Animator>();
		this.g_AniFace = component;
		Animator component2 = Common.FindChild(this.g_This.transform, "GhostE_Face_ZWrite").GetComponent<Animator>();
		this.g_AniFaceZWrite = component2;
		GhostEEffectPlay component3 = This.GetComponent<GhostEEffectPlay>();
		this.g_Effect = component3;
		GhostEEffectPlay ghostEEffectPlay = this.g_Effect;
		MoveController g_Move = this.g_Move;
		ghostEEffectPlay.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;
		int num = 0;
		this.g_fGravity = (float)num;
		g_Move3.gravity = (float)num;
		this.g_fVisionDistance = 200f;
		this.g_fVisionAngle = 60f;
		this.g_fWalkSpeed = 6f;
		this.g_fRunSpeed = 9f;
		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 num2 = 0;
		shake2.Start(transform, num2 != 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 num3 = 0;
		shake4.Start(transform2, num3 != 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 num4 = 0;
		shake6.Start(transform3, num4 != 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 num5 = 0;
		shake8.Start(transform4, num5 != 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 num6 = 0;
		shake10.Start(transform5, num6 != 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 num7 = 0;
		shake12.Start(transform6, num7 != 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 num8 = 0;
		shake14.Start(transform7, num8 != 0);
		Animator g_Anim = this.g_Anim;
		this.g_fAniSkirtWeights = 1f;
		g_Anim.SetLayerWeight(1, 1f);
		this.g_Status = (AI_NPC.AIStatus)((ulong)17L);
	}

	// Token: 0x06000540 RID: 1344 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6000540")]
	[Address(RVA = "0x1823A80", Offset = "0x1822A80", VA = "0x181823A80", Slot = "5")]
	public override void Update(float fDeltaTime)
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06000541 RID: 1345 RVA: 0x0000CBFC File Offset: 0x0000ADFC
	[Token(Token = "0x6000541")]
	[Address(RVA = "0x1823110", Offset = "0x1822110", VA = "0x181823110", 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: 0x06000542 RID: 1346 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6000542")]
	[Address(RVA = "0x18219F0", Offset = "0x18209F0", VA = "0x1818219F0", Slot = "22")]
	public override void Fighting()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06000543 RID: 1347 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6000543")]
	[Address(RVA = "0x1822620", Offset = "0x1821620", VA = "0x181822620")]
	private void InitFightStatus(AI_GhostE.AIFighting Status)
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06000544 RID: 1348 RVA: 0x0000CC5C File Offset: 0x0000AE5C
	[Token(Token = "0x6000544")]
	[Address(RVA = "0x18203C0", Offset = "0x181F3C0", VA = "0x1818203C0")]
	private void AttackSelect()
	{
		int num = UnityEngine.Random.Range(0, 6);
		if (num == 0)
		{
			this.g_NextFighting = (AI_GhostE.AIFighting)((ulong)4L);
			this.g_fPlayerDistanceFar = 12f;
			this.g_fPlayerDistanceNear = 9f;
			return;
		}
		if (num == 0)
		{
			this.g_NextFighting = (AI_GhostE.AIFighting)((ulong)7L);
			this.g_fPlayerDistanceNear = 4.5f;
			this.g_fPlayerDistanceFar = 6f;
			return;
		}
		if (num == 0)
		{
			this.g_NextFighting = (AI_GhostE.AIFighting)((ulong)8L);
			this.g_fPlayerDistanceFar = 15f;
			this.g_fPlayerDistanceNear = 9f;
			return;
		}
		if (num != 0)
		{
			if (num != 1)
			{
				this.g_NextFighting = (AI_GhostE.AIFighting)((ulong)11L);
			}
			this.g_NextFighting = (AI_GhostE.AIFighting)((ulong)10L);
			this.g_fPlayerDistanceNear = 6f;
			this.g_fPlayerDistanceFar = 7.5f;
			return;
		}
		this.g_NextFighting = (AI_GhostE.AIFighting)((ulong)9L);
		this.g_fPlayerDistanceNear = 12f;
		this.g_fPlayerDistanceFar = 18f;
	}

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

	// Token: 0x06000546 RID: 1350 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6000546")]
	[Address(RVA = "0x1821600", Offset = "0x1820600", VA = "0x181821600")]
	private void FWatch()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06000547 RID: 1351 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6000547")]
	[Address(RVA = "0x18208B0", Offset = "0x181F8B0", VA = "0x1818208B0")]
	private void FAttackMove()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06000548 RID: 1352 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6000548")]
	[Address(RVA = "0x18212E0", Offset = "0x18202E0", VA = "0x1818212E0")]
	private void FDodge()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06000549 RID: 1353 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6000549")]
	[Address(RVA = "0x1820C70", Offset = "0x181FC70", VA = "0x181820C70")]
	private void FAttack()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x0600054A RID: 1354 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x600054A")]
	[Address(RVA = "0x1820640", Offset = "0x181F640", VA = "0x181820640")]
	private void FAttack01()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x0600054B RID: 1355 RVA: 0x0000CD38 File Offset: 0x0000AF38
	[Token(Token = "0x600054B")]
	[Address(RVA = "0x18210F0", Offset = "0x18200F0", VA = "0x1818210F0")]
	private void FDamage()
	{
		float g_fWaitTime = this.g_fWaitTime;
		int num = 0;
		if (g_fWaitTime <= (float)num)
		{
			this.InitFightStatus(AI_GhostE.AIFighting.WatchFast);
			return;
		}
		this.g_fWaitTime = g_fWaitTime;
	}

	// Token: 0x0600054C RID: 1356 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x600054C")]
	[Address(RVA = "0x1821120", Offset = "0x1820120", VA = "0x181821120")]
	private void FDeath()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x0600054D RID: 1357 RVA: 0x0000CD64 File Offset: 0x0000AF64
	[Token(Token = "0x600054D")]
	[Address(RVA = "0x18212B0", Offset = "0x18202B0", VA = "0x1818212B0")]
	private void FDestory()
	{
		float g_fWaitTime = this.g_fWaitTime;
		int num = 0;
		if (g_fWaitTime <= (float)num)
		{
			this.InitFightStatus(AI_GhostE.AIFighting.End);
			return;
		}
		this.g_fWaitTime = g_fWaitTime;
	}

	// Token: 0x0600054E RID: 1358 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x600054E")]
	[Address(RVA = "0x1821D00", Offset = "0x1820D00", VA = "0x181821D00", Slot = "33")]
	public override void Hit(AttackData Data)
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x0600054F RID: 1359 RVA: 0x0000CD90 File Offset: 0x0000AF90
	[Token(Token = "0x600054F")]
	[Address(RVA = "0x1823200", Offset = "0x1822200", VA = "0x181823200", Slot = "30")]
	public override void Resurrection()
	{
		this.g_bDeath = false;
		bool doUV = ((MB_IMeshBakerSettings)this).doUV7;
	}

	// Token: 0x06000550 RID: 1360 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6000550")]
	[Address(RVA = "0x18204C0", Offset = "0x181F4C0", VA = "0x1818204C0", Slot = "31")]
	public override void Create()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06000551 RID: 1361 RVA: 0x0000CDAC File Offset: 0x0000AFAC
	[Token(Token = "0x6000551")]
	[Address(RVA = "0x18231B0", Offset = "0x18221B0", VA = "0x1818231B0", 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: 0x06000552 RID: 1362 RVA: 0x0000CDEC File Offset: 0x0000AFEC
	[Token(Token = "0x6000552")]
	[Address(RVA = "0x1823460", Offset = "0x1822460", VA = "0x181823460", Slot = "35")]
	public override void SetTimeScale(float fTimeScale)
	{
		this.g_Anim.speed = fTimeScale;
		this.g_Effect.SetTimeScale(fTimeScale);
	}

	// Token: 0x06000553 RID: 1363 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6000553")]
	[Address(RVA = "0x1823220", Offset = "0x1822220", VA = "0x181823220", Slot = "36")]
	public override void SetAiStatus(AI_NPC.AIStatus Status)
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06000554 RID: 1364 RVA: 0x0000CE18 File Offset: 0x0000B018
	[Token(Token = "0x6000554")]
	[Address(RVA = "0x1823E70", Offset = "0x1822E70", VA = "0x181823E70")]
	public AI_GhostE()
	{
	}

	// Token: 0x0400061E RID: 1566
	[FieldOffset(Offset = "0x180")]
	[Token(Token = "0x400061E")]
	private Animator g_AniFace;

	// Token: 0x0400061F RID: 1567
	[FieldOffset(Offset = "0x188")]
	[Token(Token = "0x400061F")]
	private Animator g_AniFaceZWrite;

	// Token: 0x04000620 RID: 1568
	[FieldOffset(Offset = "0x190")]
	[Token(Token = "0x4000620")]
	private GhostEEffectPlay g_Effect;

	// Token: 0x04000621 RID: 1569
	[FieldOffset(Offset = "0x198")]
	[Token(Token = "0x4000621")]
	private Vector3 g_v3PrePosition;

	// Token: 0x04000622 RID: 1570
	[FieldOffset(Offset = "0x1A4")]
	[Token(Token = "0x4000622")]
	private Vector3 g_v3PreForward;

	// Token: 0x04000623 RID: 1571
	[FieldOffset(Offset = "0x1B0")]
	[Token(Token = "0x4000623")]
	private float g_fAnifMoveHorizontal;

	// Token: 0x04000624 RID: 1572
	[FieldOffset(Offset = "0x1B4")]
	[Token(Token = "0x4000624")]
	private float g_fAnifMoveVertical;

	// Token: 0x04000625 RID: 1573
	[FieldOffset(Offset = "0x1B8")]
	[Token(Token = "0x4000625")]
	private float g_fAniTrunAngle;

	// Token: 0x04000626 RID: 1574
	[FieldOffset(Offset = "0x1BC")]
	[Token(Token = "0x4000626")]
	private float g_fAniSkirtWeights;

	// Token: 0x04000627 RID: 1575
	[FieldOffset(Offset = "0x1C0")]
	[Token(Token = "0x4000627")]
	private Shake g_ShakeHead;

	// Token: 0x04000628 RID: 1576
	[FieldOffset(Offset = "0x1C8")]
	[Token(Token = "0x4000628")]
	private Shake g_ShakeSpine;

	// Token: 0x04000629 RID: 1577
	[FieldOffset(Offset = "0x1D0")]
	[Token(Token = "0x4000629")]
	private Shake g_ShakeUpperArmL;

	// Token: 0x0400062A RID: 1578
	[FieldOffset(Offset = "0x1D8")]
	[Token(Token = "0x400062A")]
	private Shake g_ShakeUpperArmR;

	// Token: 0x0400062B RID: 1579
	[FieldOffset(Offset = "0x1E0")]
	[Token(Token = "0x400062B")]
	private Shake g_ShakeThighL;

	// Token: 0x0400062C RID: 1580
	[FieldOffset(Offset = "0x1E8")]
	[Token(Token = "0x400062C")]
	private Shake g_ShakeThighR;

	// Token: 0x0400062D RID: 1581
	[FieldOffset(Offset = "0x1F0")]
	[Token(Token = "0x400062D")]
	private Shake g_ShakeAll;

	// Token: 0x0400062E RID: 1582
	[FieldOffset(Offset = "0x1F8")]
	[Token(Token = "0x400062E")]
	private AI_GhostE.AIFighting g_Fighting = (AI_GhostE.AIFighting)((ulong)1L);

	// Token: 0x0400062F RID: 1583
	[FieldOffset(Offset = "0x1FC")]
	[Token(Token = "0x400062F")]
	private AI_GhostE.AIFighting g_NextFighting;

	// Token: 0x04000630 RID: 1584
	[FieldOffset(Offset = "0x200")]
	[Token(Token = "0x4000630")]
	private int g_iAWatchMoveDir;

	// Token: 0x04000631 RID: 1585
	[FieldOffset(Offset = "0x204")]
	[Token(Token = "0x4000631")]
	private float g_fPlayerDistanceNear;

	// Token: 0x04000632 RID: 1586
	[FieldOffset(Offset = "0x208")]
	[Token(Token = "0x4000632")]
	private float g_fPlayerDistanceFar;

	// Token: 0x04000633 RID: 1587
	[FieldOffset(Offset = "0x20C")]
	[Token(Token = "0x4000633")]
	private float g_fAttackMove;

	// Token: 0x04000634 RID: 1588
	[FieldOffset(Offset = "0x210")]
	[Token(Token = "0x4000634")]
	private float g_fAttackRotate;

	// Token: 0x04000635 RID: 1589
	[FieldOffset(Offset = "0x214")]
	[Token(Token = "0x4000635")]
	private float g_fAttackNext;

	// Token: 0x04000636 RID: 1590
	[Token(Token = "0x4000636")]
	private const float g_fAttack01Number = 6f;

	// Token: 0x04000637 RID: 1591
	[FieldOffset(Offset = "0x218")]
	[Token(Token = "0x4000637")]
	private float g_fAttack01NumberVal;

	// Token: 0x04000638 RID: 1592
	[FieldOffset(Offset = "0x21C")]
	[Token(Token = "0x4000638")]
	private bool g_bDodge;

	// Token: 0x04000639 RID: 1593
	[FieldOffset(Offset = "0x220")]
	[Token(Token = "0x4000639")]
	private int g_iScript;

	// Token: 0x02000081 RID: 129
	[Token(Token = "0x2000081")]
	private enum AIFighting
	{
		// Token: 0x0400063B RID: 1595
		[Token(Token = "0x400063B")]
		Null,
		// Token: 0x0400063C RID: 1596
		[Token(Token = "0x400063C")]
		Watch,
		// Token: 0x0400063D RID: 1597
		[Token(Token = "0x400063D")]
		WatchFast,
		// Token: 0x0400063E RID: 1598
		[Token(Token = "0x400063E")]
		AttackMove,
		// Token: 0x0400063F RID: 1599
		[Token(Token = "0x400063F")]
		Attack0101,
		// Token: 0x04000640 RID: 1600
		[Token(Token = "0x4000640")]
		Attack0102,
		// Token: 0x04000641 RID: 1601
		[Token(Token = "0x4000641")]
		Attack0103,
		// Token: 0x04000642 RID: 1602
		[Token(Token = "0x4000642")]
		Attack02,
		// Token: 0x04000643 RID: 1603
		[Token(Token = "0x4000643")]
		Attack03,
		// Token: 0x04000644 RID: 1604
		[Token(Token = "0x4000644")]
		Attack04,
		// Token: 0x04000645 RID: 1605
		[Token(Token = "0x4000645")]
		Attack05,
		// Token: 0x04000646 RID: 1606
		[Token(Token = "0x4000646")]
		Attack06,
		// Token: 0x04000647 RID: 1607
		[Token(Token = "0x4000647")]
		DodgeL,
		// Token: 0x04000648 RID: 1608
		[Token(Token = "0x4000648")]
		DodgeR,
		// Token: 0x04000649 RID: 1609
		[Token(Token = "0x4000649")]
		Damage,
		// Token: 0x0400064A RID: 1610
		[Token(Token = "0x400064A")]
		Death,
		// Token: 0x0400064B RID: 1611
		[Token(Token = "0x400064B")]
		Destroy,
		// Token: 0x0400064C RID: 1612
		[Token(Token = "0x400064C")]
		End,
		// Token: 0x0400064D RID: 1613
		[Token(Token = "0x400064D")]
		Debut
	}
}
