| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- using DotRecast.Core;
- namespace DotRecast.Recast
- {
- public class RecastBuilderResult
- {
- public readonly int tileX;
- public readonly int tileZ;
-
- private readonly RcCompactHeightfield chf;
- private readonly RcContourSet cs;
- private readonly RcPolyMesh pmesh;
- private readonly RcPolyMeshDetail dmesh;
- private readonly RcHeightfield solid;
- private readonly RcTelemetry telemetry;
- public RecastBuilderResult(int tileX, int tileZ, RcHeightfield solid, RcCompactHeightfield chf, RcContourSet cs, RcPolyMesh pmesh, RcPolyMeshDetail dmesh, RcTelemetry ctx)
- {
- this.tileX = tileX;
- this.tileZ = tileZ;
- this.solid = solid;
- this.chf = chf;
- this.cs = cs;
- this.pmesh = pmesh;
- this.dmesh = dmesh;
- telemetry = ctx;
- }
- public RcPolyMesh GetMesh()
- {
- return pmesh;
- }
- public RcPolyMeshDetail GetMeshDetail()
- {
- return dmesh;
- }
- public RcCompactHeightfield GetCompactHeightfield()
- {
- return chf;
- }
- public RcContourSet GetContourSet()
- {
- return cs;
- }
- public RcHeightfield GetSolidHeightfield()
- {
- return solid;
- }
- public RcTelemetry GetTelemetry()
- {
- return telemetry;
- }
- }
- }
|