2021-04-08 20:09:59 +08:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
|
|
namespace ET
|
|
|
|
|
{
|
2021-05-25 01:14:19 +08:00
|
|
|
|
public enum AutoBattleAIType
|
|
|
|
|
{
|
|
|
|
|
MainStory,
|
|
|
|
|
StarSoul
|
|
|
|
|
}
|
2021-04-08 20:09:59 +08:00
|
|
|
|
public enum MainStoryAIType
|
|
|
|
|
{
|
|
|
|
|
None,
|
|
|
|
|
Normal,
|
|
|
|
|
VIP
|
|
|
|
|
}
|
|
|
|
|
public class MainStoryAI : Entity
|
|
|
|
|
{
|
|
|
|
|
public enum State
|
|
|
|
|
{
|
|
|
|
|
Idle,
|
|
|
|
|
Transfer,
|
|
|
|
|
Battle,
|
|
|
|
|
Move
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public enum MapType
|
|
|
|
|
{
|
|
|
|
|
City,
|
|
|
|
|
Map
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public enum Produrce
|
|
|
|
|
{
|
|
|
|
|
Idle,
|
|
|
|
|
MoveToCityTransPoint,
|
|
|
|
|
CityTrans,
|
|
|
|
|
MoveToMonster,
|
|
|
|
|
Battle,
|
|
|
|
|
MoveToMapTransPoint,
|
|
|
|
|
MapTrans
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public int sceneId;
|
|
|
|
|
|
2021-05-25 01:14:19 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// 仅用于主线
|
|
|
|
|
/// </summary>
|
2021-04-08 20:09:59 +08:00
|
|
|
|
public int layer;
|
|
|
|
|
|
|
|
|
|
public Team team;
|
|
|
|
|
|
2021-05-25 01:14:19 +08:00
|
|
|
|
public AutoBattleAIType battleAIType;
|
|
|
|
|
|
2021-04-08 20:09:59 +08:00
|
|
|
|
public MapType mapType;
|
|
|
|
|
|
|
|
|
|
public State state;
|
|
|
|
|
|
|
|
|
|
public Produrce currProdurce;
|
|
|
|
|
|
|
|
|
|
public Produrce nextProdurce;
|
|
|
|
|
|
|
|
|
|
public Vector2 targetPos;
|
|
|
|
|
|
|
|
|
|
public long timerId;
|
2021-05-25 01:14:19 +08:00
|
|
|
|
|
|
|
|
|
public byte type;
|
|
|
|
|
public byte diffculty;
|
2021-04-08 20:09:59 +08:00
|
|
|
|
}
|
|
|
|
|
}
|