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

Function writeDatablockID

Engine/source/afx/arcaneFX.h:186–191  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

184//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//
185
186inline void writeDatablockID(BitStream* s, SimObject* simobj, bool packed=false)
187{
188 if (s->writeFlag(simobj))
189 s->writeRangedU32(packed ? SimObjectId((uintptr_t)simobj) : simobj->getId(),
190 DataBlockObjectIdFirst, DataBlockObjectIdLast);
191}
192
193inline S32 readDatablockID(BitStream* s)
194{

Callers 10

pack_fxMethod · 0.85
packDataMethod · 0.85
pack_fxMethod · 0.85
packDataMethod · 0.85
pack_fxMethod · 0.85
pack_fxMethod · 0.85
packDataMethod · 0.85
pack_modsMethod · 0.85
packDataMethod · 0.85
pack_fxMethod · 0.85

Calls 3

writeRangedU32Method · 0.80
getIdMethod · 0.65
writeFlagMethod · 0.45

Tested by

no test coverage detected