MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / writeFields

Method writeFields

Engine/source/Verve/VPath/VPath.cpp:565–584  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

563}
564
565void VPath::writeFields( Stream &pStream, U32 pTabStop )
566{
567 // Field Name.
568 StringTableEntry fieldName = StringTable->insert( "node" );
569
570 for ( VPathNodeIterator itr = mNodeList.begin(); itr != mNodeList.end(); itr++ )
571 {
572 // Set Field.
573 setDataField( fieldName, avar( "%d" , ( itr - mNodeList.begin() ) ), ( *itr )->toString().c_str() );
574 }
575
576 // Write Fields.
577 Parent::writeFields( pStream, pTabStop );
578
579 for ( VPathNodeIterator itr = mNodeList.begin(); itr != mNodeList.end(); itr++ )
580 {
581 // Clear Field.
582 setDataField( fieldName, avar( "%d" , ( itr - mNodeList.begin() ) ), "" );
583 }
584}
585
586U32 VPath::packUpdate( NetConnection *pConnection, U32 pMask, BitStream *pStream )
587{

Callers

nothing calls this directly

Calls 6

avarFunction · 0.85
insertMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
c_strMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected