11 #include "GDCore/String.h"
12 #include "GDCore/Project/ObjectGroupsContainer.h"
13 #include "GDCore/Project/ObjectFolderOrObject.h"
17 class SerializerElement;
56 SourceType GetSourceType()
const {
return sourceType; }
66 bool HasObjectNamed(
const gd::String& name)
const;
88 const gd::Object& GetObject(std::size_t index)
const;
98 std::size_t GetObjectPosition(
const gd::String& name)
const;
103 std::size_t GetObjectsCount()
const;
115 std::size_t position);
128 std::size_t position);
153 void MoveObject(std::size_t oldIndex, std::size_t newIndex);
163 void MoveObjectFolderOrObjectToAnotherContainerInFolder(
167 std::size_t newPosition);
173 return initialObjects;
179 const std::vector<std::unique_ptr<gd::Object> >&
GetObjects()
const {
180 return initialObjects;
183 std::set<gd::String> GetAllObjectNames()
const;
191 std::vector<const ObjectFolderOrObject*> GetAllObjectFolderOrObjects()
const;
197 void AddMissingObjectsInRootFolder();
206 void SerializeObjectsTo(SerializerElement& element)
const;
212 const SerializerElement& element);
216 void SerializeFoldersTo(SerializerElement& element)
const;
222 const SerializerElement& element);
243 std::vector<std::unique_ptr<gd::Object> >
248 SourceType sourceType = Unknown;
249 std::unique_ptr<gd::ObjectFolderOrObject> rootFolder;
Represent a layout ( also called a scene ) of a project.
Definition: Layout.h:40
Class representing a folder structure in order to organize objects in folders (to be used with an Obj...
Definition: ObjectFolderOrObject.h:30
A container for objects groups.
Definition: ObjectGroupsContainer.h:29
Represent an object of a platform.
Definition: Object.h:37
Used as a base class for classes that will own objects (see gd::Object).
Definition: ObjectsContainer.h:37
std::vector< std::unique_ptr< gd::Object > > & GetObjects()
Definition: ObjectsContainer.h:172
const ObjectGroupsContainer & GetObjectGroups() const
Return a const reference to the project's objects groups.
Definition: ObjectsContainer.h:238
const std::vector< std::unique_ptr< gd::Object > > & GetObjects() const
Definition: ObjectsContainer.h:179
std::vector< std::unique_ptr< gd::Object > > initialObjects
Objects contained.
Definition: ObjectsContainer.h:244
ObjectGroupsContainer & GetObjectGroups()
Return a reference to the project's objects groups.
Definition: ObjectsContainer.h:233
Base class representing a project (game), including all resources, scenes, objects,...
Definition: Project.h:51
String represents an UTF8 encoded string.
Definition: String.h:33
Definition: CommonTools.h:24