14 WriteValue<int>(OutFile, this->
LightId);
15 WriteValue<float>(OutFile, this->
Intensity);
16 WriteValue<FLinearColor>(OutFile, this->
Color);
17 WriteValue<bool>(OutFile, this->
bOn);
18 WriteValue<uint8>(OutFile, this->
Type);
22 ReadValue<int>(InFile, this->
LightId);
23 ReadValue<float>(InFile, this->
Intensity);
24 ReadValue<FLinearColor>(InFile, this->
Color);
25 ReadValue<bool>(InFile, this->
bOn);
26 ReadValue<uint8>(InFile, this->
Type);
38 Lights.push_back(Vehicle);
43 if (Lights.size() == 0)
50 std::streampos PosStart = OutFile.tellp();
54 WriteValue<uint32_t>(OutFile, Total);
57 Total = Lights.size();
58 WriteValue<uint16_t>(OutFile, Total);
60 for (
auto& Light : Lights)
73 ReadValue<uint16_t>(InFile, Total);
74 for (uint16_t i = 0; i < Total; ++i)
76 LightScene.
Read(InFile);
void Write(std::ostream &OutFile)
const std::vector< CarlaRecorderLightScene > & GetLights()
void Add(const CarlaRecorderLightScene &InObj)
void Read(std::istream &InFile)
void Write(std::ostream &OutFile)
void Read(std::istream &InFile)