RecastBuilderResult.cs 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. using DotRecast.Core;
  2. namespace DotRecast.Recast
  3. {
  4. public class RecastBuilderResult
  5. {
  6. public readonly int tileX;
  7. public readonly int tileZ;
  8. private readonly RcCompactHeightfield chf;
  9. private readonly RcContourSet cs;
  10. private readonly RcPolyMesh pmesh;
  11. private readonly RcPolyMeshDetail dmesh;
  12. private readonly RcHeightfield solid;
  13. private readonly RcTelemetry telemetry;
  14. public RecastBuilderResult(int tileX, int tileZ, RcHeightfield solid, RcCompactHeightfield chf, RcContourSet cs, RcPolyMesh pmesh, RcPolyMeshDetail dmesh, RcTelemetry ctx)
  15. {
  16. this.tileX = tileX;
  17. this.tileZ = tileZ;
  18. this.solid = solid;
  19. this.chf = chf;
  20. this.cs = cs;
  21. this.pmesh = pmesh;
  22. this.dmesh = dmesh;
  23. telemetry = ctx;
  24. }
  25. public RcPolyMesh GetMesh()
  26. {
  27. return pmesh;
  28. }
  29. public RcPolyMeshDetail GetMeshDetail()
  30. {
  31. return dmesh;
  32. }
  33. public RcCompactHeightfield GetCompactHeightfield()
  34. {
  35. return chf;
  36. }
  37. public RcContourSet GetContourSet()
  38. {
  39. return cs;
  40. }
  41. public RcHeightfield GetSolidHeightfield()
  42. {
  43. return solid;
  44. }
  45. public RcTelemetry GetTelemetry()
  46. {
  47. return telemetry;
  48. }
  49. }
  50. }