MCPcopy Create free account
hub / github.com/GarageGames/Torque3D / write

Method write

Engine/source/materials/materialList.cpp:192–201  ·  view source on GitHub ↗

--------------------------------------

Source from the content-addressed store, hash-verified

190
191//--------------------------------------
192bool MaterialList::write(Stream &stream)
193{
194 stream.write((U8)BINARY_FILE_VERSION); // version
195 stream.write((U32)mMaterialNames.size()); // material count
196
197 for(S32 i=0; i < mMaterialNames.size(); i++) // material names
198 stream.writeString(mMaterialNames[i]);
199
200 return (stream.getStatus() == Stream::Ok);
201}
202
203//--------------------------------------
204bool MaterialList::readText(Stream &stream, U8 firstByte)

Callers 2

saveMethod · 0.45
mathWriteFunction · 0.45

Calls 3

sizeMethod · 0.45
writeStringMethod · 0.45
getStatusMethod · 0.45

Tested by

no test coverage detected