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

Method readObject

Engine/source/console/simSerialize.cpp:88–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86}
87
88bool SimObject::readObject(Stream *stream)
89{
90 const char *name = stream->readSTString(true);
91 if(name && *name)
92 assignName(name);
93
94 U32 numFields;
95 stream->read(&numFields);
96
97 for(S32 i = 0;i < numFields;i++)
98 {
99 const char *fieldName = stream->readSTString();
100 const char *data = stream->readSTString();
101
102 setDataField(fieldName, NULL, data);
103 }
104 return true;
105}
106
107//-----------------------------------------------------------------------------
108// SimSet Methods

Callers 1

loadObjectStreamFunction · 0.80

Calls 3

loadObjectStreamFunction · 0.85
readSTStringMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected