XNet/XNet.Business/Entity/ControlPlayer.cs
2025-12-28 17:28:40 +08:00

60 lines
1.7 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using XNet.Business.Dto;
namespace XNet.Business.Entity
{
public class ControlPlayer
{
/// <summary>
/// 用户ID
/// </summary>
public string Id { get; set; } = string.Empty;
/// <summary>
/// 是否碰到非地面障碍物或者碰到其他对象,需要转向
/// </summary>
public bool IsNeedToOtherDir { get; set; } = false;
/// <summary>
/// 是否可以控制动作
/// </summary>
public bool IsCanControl { get; set; } = false;
/// <summary>
/// 上一次位置计时的时候的时间用来判断AI是否走死
/// </summary>
public DateTime PrevToDirTime { get; set; } = DateTime.MinValue;
/// <summary>
/// 临时存储的位置
/// </summary>
public Vec3 TmpPos { get; set; } = new Vec3();
/// <summary>
/// 将要去的位置
/// </summary>
public Vec3 ToPos { get; set; } = new Vec3();
/// <summary>
/// 存储当前的位置
/// </summary>
public Vec3 CurrentPos { get; set; } = new Vec3();
/// <summary>
/// 临时存储的欧拉角
/// </summary>
public Vec3 TmpEuler { get; set; } = new Vec3();
/// <summary>
/// 目标欧拉角,角色朝向
/// </summary>
public Vec3 ToEuler { get; set; } = new Vec3();
/// <summary>
/// 当前线性插值欧拉角,角色朝向
/// </summary>
public Vec3 CurrentEuler { get; set; } = new Vec3();
/// <summary>
/// 路径导航索引下标
/// </summary>
public int AgentIndex { get; set; } = 0;
}
}