| 290 | } |
| 291 | |
| 292 | void 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 | |
| 311 | void Cloth::Deserialize(DeserializeStream& stream, ISerializeModifier* modifier) |
| 312 | { |
nothing calls this directly
no test coverage detected