Пример #1
0
        public void UserSkill(UserInfo user, AbstractUserStateLogic logic, int skillId, int targetId, ScriptRuntime.Vector3 targetPos, float targetAngle, int itemId)
        {
            UserSkillCommand cmd = m_UserSkillCommandPool.Alloc();

            if (null != cmd)
            {
                cmd.SetContext(user, logic);
                cmd.Init(skillId, targetId, targetPos, targetAngle, itemId);
                user.GetAiStateInfo().CommandQueue.Enqueue(cmd);
            }
        }
Пример #2
0
        public void UserFace(UserInfo user, AbstractUserStateLogic logic)
        {
            UserFaceCommand cmd = m_UserFaceCommandPool.Alloc();

            if (null != cmd)
            {
                cmd.SetContext(user, logic);
                cmd.Init();
                user.GetAiStateInfo().CommandQueue.Enqueue(cmd);
            }
        }
Пример #3
0
 public void SetContext(UserInfo user, AbstractUserStateLogic logic)
 {
     m_User  = user;
     m_Logic = logic;
 }