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

Method Serialize

Source/Engine/Graphics/Models/ModelInstanceEntry.cpp:24–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22}
23
24void 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
43void ModelInstanceEntries::Deserialize(DeserializeStream& stream, ISerializeModifier* modifier)
44{

Callers

nothing calls this directly

Calls 5

CountFunction · 0.85
StartArrayMethod · 0.45
CountMethod · 0.45
ObjectMethod · 0.45
EndArrayMethod · 0.45

Tested by

no test coverage detected