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

Method Serialize

Source/Engine/Level/SceneInfo.cpp:14–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12}
13
14void SceneInfo::Serialize(SerializeStream& stream, const void* otherObj)
15{
16 SERIALIZE_GET_OTHER_OBJ(SceneInfo);
17
18 SERIALIZE(Title);
19 SERIALIZE(Description);
20 SERIALIZE(Copyright);
21
22 if (Lightmaps.HasItems())
23 {
24 stream.JKEY("Lightmaps");
25 stream.StartArray();
26 const int32 lightmapsCount = Lightmaps.Count();
27 for (int32 i = 0; i < lightmapsCount; i++)
28 {
29 auto& info = Lightmaps[i];
30
31 stream.StartObject();
32
33 stream.JKEY("Lightmap0");
34 stream.Guid(info.Lightmap0);
35
36 stream.JKEY("Lightmap1");
37 stream.Guid(info.Lightmap1);
38
39 stream.JKEY("Lightmap2");
40 stream.Guid(info.Lightmap2);
41
42 stream.EndObject();
43 }
44 stream.EndArray(lightmapsCount);
45 }
46
47 stream.JKEY("LightmapSettings");
48 stream.Object(&LightmapSettings, nullptr);
49}
50
51void SceneInfo::Deserialize(DeserializeStream& stream, ISerializeModifier* modifier)
52{

Callers

nothing calls this directly

Calls 8

GuidMethod · 0.80
HasItemsMethod · 0.45
StartArrayMethod · 0.45
CountMethod · 0.45
StartObjectMethod · 0.45
EndObjectMethod · 0.45
EndArrayMethod · 0.45
ObjectMethod · 0.45

Tested by

no test coverage detected