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

Method write

Engine/source/ts/tsShapeOldRead.cpp:812–843  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

810}
811
812void TSShape::Sequence::write(Stream * s, bool writeNameIndex) const
813{
814 if (writeNameIndex)
815 s->write(nameIndex);
816 s->write(flags);
817 s->write(numKeyframes);
818 s->write(duration);
819 s->write(priority);
820 s->write(firstGroundFrame);
821 s->write(numGroundFrames);
822 s->write(baseRotation);
823 s->write(baseTranslation);
824 s->write(baseScale);
825 s->write(baseObjectState);
826 s->write(baseDecalState);
827 s->write(firstTrigger);
828 s->write(numTriggers);
829 s->write(toolBegin);
830
831 // now the membership sets:
832 rotationMatters.write(s);
833 translationMatters.write(s);
834 scaleMatters.write(s);
835
836 TSIntegerSet dummy;
837 dummy.write(s); // DEPRECIATED: Decals
838 dummy.write(s); // DEPRECIATED: Ifl materials
839
840 visMatters.write(s);
841 frameMatters.write(s);
842 matFrameMatters.write(s);
843}
844
845void TSShape::writeName(Stream * s, S32 nameIndex)
846{

Callers 3

exportSequencesMethod · 0.45
exportSequenceMethod · 0.45
writeNameMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected