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
|
|
|
|
{
|
|
|
|
public NavMeshParams read(ByteBuffer bb)
|
|
|
|
{
|
|
|
|
NavMeshParams option = new NavMeshParams();
|
2023-04-29 06:48:56 +03:00
|
|
|
option.orig.x = bb.getFloat();
|
|
|
|
option.orig.y = bb.getFloat();
|
|
|
|
option.orig.z = bb.getFloat();
|
2023-03-16 19:48:49 +03:00
|
|
|
option.tileWidth = bb.getFloat();
|
|
|
|
option.tileHeight = bb.getFloat();
|
|
|
|
option.maxTiles = bb.getInt();
|
|
|
|
option.maxPolys = bb.getInt();
|
|
|
|
return option;
|
|
|
|
}
|
|
|
|
}
|
2023-03-16 19:09:10 +03:00
|
|
|
}
|