예제 #1
0
 public override void Read(PackFileDeserializer des, BinaryReaderEx br)
 {
     base.Read(des, br);
     m_userData = br.ReadUInt64();
     br.ReadUInt64();
     m_position           = des.ReadVector4(br);
     m_forward            = des.ReadVector4(br);
     m_velocity           = des.ReadVector4(br);
     m_up                 = des.ReadVector4(br);
     m_currentNavMeshFace = br.ReadUInt32();
     m_radius             = br.ReadSingle();
     m_desiredSpeed       = br.ReadSingle();
     m_adaptiveRanger     = new hkaiAdaptiveRanger();
     m_adaptiveRanger.Read(des, br);
     m_costModifier = des.ReadClassPointer <hkaiAstarCostModifier>(br);
     m_edgeFilter   = des.ReadClassPointer <hkaiAstarEdgeFilter>(br);
     br.ReadUInt64();
     br.ReadUInt64();
     m_agentFilterInfo = br.ReadUInt32();
     br.ReadUInt32();
     m_avoidanceProperties  = des.ReadClassPointer <hkaiAvoidanceProperties>(br);
     m_avoidanceState       = br.ReadSingle();
     m_agentPriority        = br.ReadUInt32();
     m_avoidanceType        = br.ReadUInt16();
     m_avoidanceEnabledMask = br.ReadByte();
     br.ReadByte();
     m_state = (State)br.ReadInt32();
     br.ReadUInt64();
     br.ReadUInt64();
     m_layer = br.ReadUInt32();
     br.ReadUInt64();
     br.ReadUInt32();
 }
예제 #2
0
 public virtual void Read(PackFileDeserializer des, BinaryReaderEx br)
 {
     m_startPoint            = des.ReadVector4(br);
     m_up                    = des.ReadVector4(br);
     m_startFaceKey          = br.ReadUInt32();
     m_maxNumberOfIterations = br.ReadInt32();
     m_agentInfo             = new hkaiAgentTraversalInfo();
     m_agentInfo.Read(des, br);
     m_searchRadius                = br.ReadSingle();
     m_maximumPathLength           = br.ReadSingle();
     m_costModifier                = des.ReadClassPointer <hkaiAstarCostModifier>(br);
     m_edgeFilter                  = des.ReadClassPointer <hkaiAstarEdgeFilter>(br);
     m_outputEdgesOnFailure        = br.ReadBoolean();
     m_projectedRadiusCheck        = br.ReadBoolean();
     m_exactInternalVertexHandling = br.ReadBoolean();
     m_isWallClimbing              = br.ReadBoolean();
     m_mode                  = (QueryMode)br.ReadByte();
     m_userEdgeHandling      = br.ReadByte();
     m_ignoreBackfacingEdges = br.ReadBoolean();
     br.ReadByte();
 }