MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / Serialize

Method Serialize

Source/Engine/Physics/Actors/Cloth.cpp:292–309  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

290}
291
292void Cloth::Serialize(SerializeStream& stream, const void* otherObj)
293{
294 Actor::Serialize(stream, otherObj);
295
296 SERIALIZE_GET_OTHER_OBJ(Cloth);
297
298 SERIALIZE_MEMBER(Mesh, _mesh);
299 SERIALIZE_MEMBER(Force, _forceSettings);
300 SERIALIZE_MEMBER(Collision, _collisionSettings);
301 SERIALIZE_MEMBER(Simulation, _simulationSettings);
302 SERIALIZE_MEMBER(Fabric, _fabricSettings);
303 if (Serialization::ShouldSerialize(_paint, other ? &other->_paint : nullptr))
304 {
305 // Serialize as Base64
306 stream.JKEY("Paint");
307 stream.Blob(_paint.Get(), _paint.Count() * sizeof(float));
308 }
309}
310
311void Cloth::Deserialize(DeserializeStream& stream, ISerializeModifier* modifier)
312{

Callers

nothing calls this directly

Calls 5

SerializeFunction · 0.50
ShouldSerializeFunction · 0.50
BlobMethod · 0.45
GetMethod · 0.45
CountMethod · 0.45

Tested by

no test coverage detected