DotRecastNetSim/src/DotRecast.Detour/Io/NavMeshParamReader.cs

20 lines
566 B
C#
Raw Normal View History

2023-03-14 08:02:43 +03:00
using DotRecast.Core;
2023-03-16 19:09:10 +03:00
namespace DotRecast.Detour.Io
{
2023-03-16 19:48:49 +03:00
public class NavMeshParamReader
{
2023-05-10 16:44:51 +03:00
public NavMeshParams Read(RcByteBuffer bb)
2023-03-16 19:48:49 +03:00
{
NavMeshParams option = new NavMeshParams();
2023-05-05 02:44:48 +03:00
option.orig.x = bb.GetFloat();
option.orig.y = bb.GetFloat();
option.orig.z = bb.GetFloat();
option.tileWidth = bb.GetFloat();
option.tileHeight = bb.GetFloat();
option.maxTiles = bb.GetInt();
option.maxPolys = bb.GetInt();
2023-03-16 19:48:49 +03:00
return option;
}
}
2023-03-16 19:09:10 +03:00
}