Files
DanhengServer-OpenSource/Common/Data/Config/PositionInfo.cs
2024-03-24 15:38:49 +08:00

44 lines
1.1 KiB
C#

using EggLink.DanhengServer.Data.Excel;
using EggLink.DanhengServer.Util;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace EggLink.DanhengServer.Data.Config
{
public class PositionInfo
{
public int ID { get; set; }
public float PosX { get; set; }
public float PosY { get; set; }
public float PosZ { get; set; }
public bool IsDelete { get; set; }
public string Name { get; set; } = "";
public float RotX { get; set; }
public float RotY { get; set; }
public float RotZ { get; set; }
public Position ToPositionProto()
{
return new()
{
X = (int)(PosX * 1000f),
Y = (int)(PosY * 1000f),
Z = (int)(PosZ * 1000f),
};
}
public Position ToRotationProto()
{
return new()
{
Y = (int)(RotY * 1000f),
X = (int)(RotX * 1000f),
Z = (int)(RotZ * 1000f),
};
}
}
}