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

Method Serialize

Source/Engine/Level/Actors/PostFxVolume.cpp:104–159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102}
103
104void PostFxVolume::Serialize(SerializeStream& stream, const void* otherObj)
105{
106 // Base
107 BoxVolume::Serialize(stream, otherObj);
108
109 SERIALIZE_GET_OTHER_OBJ(PostFxVolume);
110
111 SERIALIZE_MEMBER(Priority, _priority);
112 SERIALIZE_MEMBER(BlendRadius, _blendRadius);
113 SERIALIZE_MEMBER(BlendWeight, _blendWeight);
114 SERIALIZE_MEMBER(IsBounded, _isBounded);
115
116 stream.JKEY("Settings");
117 stream.StartObject();
118 {
119 stream.JKEY("AO");
120 stream.Object(&AmbientOcclusion, other ? &other->AmbientOcclusion : nullptr);
121
122 stream.JKEY("GI");
123 stream.Object(&GlobalIllumination, other ? &other->GlobalIllumination : nullptr);
124
125 stream.JKEY("Bloom");
126 stream.Object(&Bloom, other ? &other->Bloom : nullptr);
127
128 stream.JKEY("ToneMapping");
129 stream.Object(&ToneMapping, other ? &other->ToneMapping : nullptr);
130
131 stream.JKEY("ColorGrading");
132 stream.Object(&ColorGrading, other ? &other->ColorGrading : nullptr);
133
134 stream.JKEY("EyeAdaptation");
135 stream.Object(&EyeAdaptation, other ? &other->EyeAdaptation : nullptr);
136
137 stream.JKEY("CameraArtifacts");
138 stream.Object(&CameraArtifacts, other ? &other->CameraArtifacts : nullptr);
139
140 stream.JKEY("LensFlares");
141 stream.Object(&LensFlares, other ? &other->LensFlares : nullptr);
142
143 stream.JKEY("DepthOfField");
144 stream.Object(&DepthOfField, other ? &other->DepthOfField : nullptr);
145
146 stream.JKEY("MotionBlur");
147 stream.Object(&MotionBlur, other ? &other->MotionBlur : nullptr);
148
149 stream.JKEY("SSR");
150 stream.Object(&ScreenSpaceReflections, other ? &other->ScreenSpaceReflections : nullptr);
151
152 stream.JKEY("AA");
153 stream.Object(&AntiAliasing, other ? &other->AntiAliasing : nullptr);
154
155 stream.JKEY("PostFxMaterials");
156 stream.Object(&PostFxMaterials, other ? &other->PostFxMaterials : nullptr);
157 }
158 stream.EndObject();
159}
160
161void PostFxVolume::Deserialize(DeserializeStream& stream, ISerializeModifier* modifier)

Callers

nothing calls this directly

Calls 4

SerializeFunction · 0.50
StartObjectMethod · 0.45
ObjectMethod · 0.45
EndObjectMethod · 0.45

Tested by

no test coverage detected