| 12 | } |
| 13 | |
| 14 | void 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 | |
| 51 | void SceneInfo::Deserialize(DeserializeStream& stream, ISerializeModifier* modifier) |
| 52 | { |
nothing calls this directly
no test coverage detected