Beispiel #1
0
 public virtual void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     bw.WriteInt32(m_desiredFacesPerCluster);
     bw.WriteUInt64(0);
     bw.WriteUInt32(0);
     m_searchParameters.Write(s, bw);
     m_agentInfo.Write(s, bw);
     bw.WriteUInt64(0);
 }
Beispiel #2
0
 public virtual void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     s.WriteUInt32Array(bw, m_startNodeKeys);
     s.WriteSingleArray(bw, m_initialCosts);
     s.WriteUInt32Array(bw, m_goalNodeKeys);
     s.WriteSingleArray(bw, m_finalCosts);
     bw.WriteInt32(m_maxNumberOfIterations);
     m_agentInfo.Write(s, bw);
     bw.WriteUInt32(0);
     m_searchParameters.Write(s, bw);
     bw.WriteUInt64(0);
     bw.WriteUInt64(0);
     bw.WriteUInt64(0);
     bw.WriteUInt64(0);
 }
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     s.WriteVector4(bw, m_startPoint);
     s.WriteVector4Array(bw, m_goalPoints);
     bw.WriteUInt32(m_startCellKey);
     bw.WriteUInt32(0);
     s.WriteUInt32Array(bw, m_goalCellKeys);
     bw.WriteInt32(m_maxNumberOfIterations);
     m_agentInfo.Write(s, bw);
     bw.WriteUInt64(0);
     bw.WriteUInt32(0);
     m_searchParameters.Write(s, bw);
     bw.WriteUInt64(0);
     bw.WriteUInt64(0);
 }
Beispiel #4
0
 public virtual void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     s.WriteVector4(bw, m_startPoint);
     s.WriteVector4(bw, m_up);
     bw.WriteUInt32(m_startFaceKey);
     bw.WriteInt32(m_maxNumberOfIterations);
     m_agentInfo.Write(s, bw);
     bw.WriteSingle(m_searchRadius);
     bw.WriteSingle(m_maximumPathLength);
     s.WriteClassPointer <hkaiAstarCostModifier>(bw, m_costModifier);
     s.WriteClassPointer <hkaiAstarEdgeFilter>(bw, m_edgeFilter);
     bw.WriteBoolean(m_outputEdgesOnFailure);
     bw.WriteBoolean(m_projectedRadiusCheck);
     bw.WriteBoolean(m_exactInternalVertexHandling);
     bw.WriteBoolean(m_isWallClimbing);
     bw.WriteByte((byte)m_mode);
     bw.WriteByte(m_userEdgeHandling);
     bw.WriteBoolean(m_ignoreBackfacingEdges);
     bw.WriteByte(0);
 }