Files
test/Assets/PerfectWorld/Scripts/Players/CECActionSwitcherBase.cs
T
2025-11-07 18:01:47 +07:00

35 lines
936 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BrewMonster.Assets.PerfectWorld.Scripts.Players
{
public class CECActionSwitcherBase
{
CECHostPlayer m_pHostPlayer;
bool m_bCanAddMsg;
protected List<int> m_msgs = new List<int>();
List<CECActionContext> m_actionContexts;
public CECActionSwitcherBase(CECHostPlayer pHost)
{
m_pHostPlayer = pHost;
}
public virtual bool OnRideToSkillAction(int skill, bool bCom, int iSel, int iForceAtk) { return false; }
public bool CanAddMessage() { return m_bCanAddMsg; }
public void PostMessge(int msg)
{
if (CanAddMessage())
m_msgs.UniquelyAdd(msg);
}
}
public enum EMsgActionSwitcher
{
MSG_FLY = 0,
MSG_MOUNTPET,
MSG_CASTSKILL,
};
}