summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/XOpposer.cs
blob: 48c24b5e8eb3bc7e8c250fb6095efe0cfd049eda (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
using System;
using XUtliPoolLib;

namespace XMainClient
{
	internal class XOpposer : XEnemy
	{
		public override bool Initilize(int flag)
		{
			base.Initilize(flag);
			this._eEntity_Type |= XEntity.EnitityType.Entity_Opposer;
			bool flag2 = base.Ator != null;
			if (flag2)
			{
				XSingleton<XComponentMgr>.singleton.CreateComponent(this, XMoveComponent.uuID);
			}
			bool flag3 = (flag & XFastEnumIntEqualityComparer<XEntity.InitFlag>.ToInt(XEntity.InitFlag.Entity_Transform)) == 0;
			if (flag3)
			{
				bool flag4 = !XSingleton<XGame>.singleton.SyncMode;
				if (flag4)
				{
					XSingleton<XComponentMgr>.singleton.CreateComponent(this, XManipulationComponent.uuID);
				}
				XSingleton<XComponentMgr>.singleton.CreateComponent(this, XChargeComponent.uuID);
				this._buff = (XSingleton<XComponentMgr>.singleton.CreateComponent(this, XBuffComponent.uuID) as XBuffComponent);
				this._rotate = (XSingleton<XComponentMgr>.singleton.CreateComponent(this, XRotationComponent.uuID) as XRotationComponent);
				this._audio = (XSingleton<XComponentMgr>.singleton.CreateComponent(this, XAudioComponent.uuID) as XAudioComponent);
				XSingleton<XComponentMgr>.singleton.CreateComponent(this, XEndureComponent.uuID);
				bool flag5 = XSingleton<XSceneMgr>.singleton.SceneCanNavi(XSingleton<XScene>.singleton.SceneID);
				if (flag5)
				{
					this._nav = (XSingleton<XComponentMgr>.singleton.CreateComponent(this, XNavigationComponent.uuID) as XNavigationComponent);
				}
				bool flag6 = !XSingleton<XGame>.singleton.SyncMode;
				if (flag6)
				{
					this._ai = (XSingleton<XComponentMgr>.singleton.CreateComponent(this, XAIComponent.uuID) as XAIComponent);
				}
			}
			return true;
		}
	}
}