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

Method write

Engine/source/materials/materialList.cpp:202–211  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

200
201//--------------------------------------
202bool MaterialList::write(Stream &stream)
203{
204 stream.write((U8)BINARY_FILE_VERSION); // version
205 stream.write((U32)mMaterialNames.size()); // material count
206
207 for(S32 i=0; i < mMaterialNames.size(); i++) // material names
208 stream.writeString(mMaterialNames[i]);
209
210 return (stream.getStatus() == Stream::Ok);
211}
212
213//--------------------------------------
214bool 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