Snowflake/RPG.Services.Gameserver/Game/Util/MazeUtil.cs
2024-01-25 13:55:10 +03:00

25 lines
642 B
C#

using RPG.GameCore.Level.Objects;
using RPG.GameCore.Util;
using RPG.Network.Proto;
namespace RPG.Services.Gameserver.Game.Util;
internal static class MazeUtil
{
public static MotionInfo CreateDefaultMotion(NamedLevelObjectInfo info)
{
return new()
{
Pos = new()
{
X = MathUtil.GetLogicCoordValue(info.PosX),
Y = MathUtil.GetLogicCoordValue(info.PosY),
Z = MathUtil.GetLogicCoordValue(info.PosZ)
},
Rot = new()
{
Y = MathUtil.GetLogicCoordValue(info.RotY)
}
};
}
}