DtTileCacheLayerHeader.cs 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /*
  2. Copyright (c) 2009-2010 Mikko Mononen memon@inside.org
  3. recast4j copyright (c) 2015-2019 Piotr Piastucki piotr@jtilia.org
  4. DotRecast Copyright (c) 2023 Choi Ikpil ikpil@naver.com
  5. This software is provided 'as-is', without any express or implied
  6. warranty. In no event will the authors be held liable for any damages
  7. arising from the use of this software.
  8. Permission is granted to anyone to use this software for any purpose,
  9. including commercial applications, and to alter it and redistribute it
  10. freely, subject to the following restrictions:
  11. 1. The origin of this software must not be misrepresented; you must not
  12. claim that you wrote the original software. If you use this software
  13. in a product, an acknowledgment in the product documentation would be
  14. appreciated but is not required.
  15. 2. Altered source versions must be plainly marked as such, and must not be
  16. misrepresented as being the original software.
  17. 3. This notice may not be removed or altered from any source distribution.
  18. */
  19. using DotRecast.Core;
  20. namespace DotRecast.Detour.TileCache
  21. {
  22. public class DtTileCacheLayerHeader
  23. {
  24. public const int DT_TILECACHE_MAGIC = 'D' << 24 | 'T' << 16 | 'L' << 8 | 'R'; // < 'DTLR';
  25. public const int DT_TILECACHE_VERSION = 1;
  26. public int magic; // < Data magic
  27. public int version; // < Data version
  28. public int tx, ty, tlayer;
  29. public RcVec3f bmin = new RcVec3f();
  30. public RcVec3f bmax = new RcVec3f();
  31. public int hmin, hmax; // < Height min/max range
  32. public int width, height; // < Dimension of the layer.
  33. public int minx, maxx, miny, maxy; // < Usable sub-region.
  34. }
  35. }