mirror of
https://github.com/EggLinks/DanhengServer-OpenSource.git
synced 2026-01-02 20:26:03 +08:00
44 lines
1.1 KiB
C#
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),
|
|
};
|
|
}
|
|
}
|
|
}
|