-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Expand file tree
/
Copy pathCinematicSequence.cpp
More file actions
25 lines (20 loc) · 865 Bytes
/
CinematicSequence.cpp
File metadata and controls
25 lines (20 loc) · 865 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/*
* GDevelop Core
* Copyright 2008-2026 Florian Rival (Florian.Rival@gmail.com). All rights
* reserved. This project is released under the MIT License.
*/
#include "CinematicSequence.h"
#include "GDCore/Serialization/SerializerElement.h"
namespace gd {
void CinematicSequence::SerializeTo(SerializerElement& element) const {
element.SetAttribute("name", name);
element.SetAttribute("sequenceData", sequenceData);
element.SetAttribute("associatedLayout", associatedLayout);
}
void CinematicSequence::UnserializeFrom(gd::Project& project,
const SerializerElement& element) {
name = element.GetStringAttribute("name", "", "Name");
sequenceData = element.GetStringAttribute("sequenceData", "");
associatedLayout = element.GetStringAttribute("associatedLayout", "", "AssociatedLayout");
}
} // namespace gd