| 22 | } |
| 23 | |
| 24 | void ModelInstanceEntries::Serialize(SerializeStream& stream, const void* otherObj) |
| 25 | { |
| 26 | SERIALIZE_GET_OTHER_OBJ(ModelInstanceEntries); |
| 27 | |
| 28 | stream.JKEY("Entries"); |
| 29 | stream.StartArray(); |
| 30 | if (other && other->Count() == Count()) |
| 31 | { |
| 32 | for (int32 i = 0; i < Count(); i++) |
| 33 | stream.Object(&At(i), &other->At(i)); |
| 34 | } |
| 35 | else |
| 36 | { |
| 37 | for (auto& e : *this) |
| 38 | stream.Object(&e, nullptr); |
| 39 | } |
| 40 | stream.EndArray(); |
| 41 | } |
| 42 | |
| 43 | void ModelInstanceEntries::Deserialize(DeserializeStream& stream, ISerializeModifier* modifier) |
| 44 | { |
nothing calls this directly
no test coverage detected