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

Method writeClassId

Engine/source/core/stream/bitStream.cpp:200–209  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

198}
199
200void BitStream::writeClassId(U32 classId, U32 classType, U32 classGroup)
201{
202 AssertFatal(classType < NetClassTypesCount, "Out of range class type.");
203 AssertFatal(classGroup < NetClassGroupsCount, "Out of range class group.");
204 AssertFatal(classId < AbstractClassRep::NetClassCount[classGroup][classType], "Out of range class id.");
205 AssertFatal(AbstractClassRep::NetClassCount[classGroup][classType] < (1 << AbstractClassRep::NetClassBitSize[classGroup][classType]),
206 "NetClassBitSize too small!");
207
208 writeInt(classId, AbstractClassRep::NetClassBitSize[classGroup][classType]);
209}
210
211S32 BitStream::readClassId(U32 classType, U32 classGroup)
212{

Callers 9

packMethod · 0.80
writeMethod · 0.80
ghostWritePacketMethod · 0.80
ghostWriteStartBlockMethod · 0.80
eventWritePacketMethod · 0.80
eventWriteStartBlockMethod · 0.80
saveDatablockCacheMethod · 0.80
packMethod · 0.80
writeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected