GDevelop Core
Core library for developing platforms and tools compatible with GDevelop.
Public Member Functions | List of all members
gd::ResourceFolder Class Reference

Public Member Functions

 ResourceFolder (const ResourceFolder &)
 
ResourceFolderoperator= (const ResourceFolder &rhs)
 
virtual void SetName (const gd::String &name_)
 
virtual const gd::StringGetName () const
 
virtual void AddResource (const gd::String &name, gd::ResourcesManager &parentManager)
 
virtual void RemoveResource (const gd::String &name)
 
virtual bool HasResource (const gd::String &name) const
 
virtual ResourceGetResource (const gd::String &name)
 
virtual const ResourceGetResource (const gd::String &name) const
 
virtual std::vector< gd::StringGetAllResourceNames ()
 
virtual bool MoveResourceUpInList (const gd::String &name)
 
virtual bool MoveResourceDownInList (const gd::String &name)
 
void SerializeTo (SerializerElement &element) const
 Serialize the object.
 
void UnserializeFrom (const SerializerElement &element, gd::ResourcesManager &parentManager)
 Unserialize the object.
 

Member Function Documentation

◆ AddResource()

void gd::ResourceFolder::AddResource ( const gd::String name,
gd::ResourcesManager parentManager 
)
virtual

Add a resource from an already existing resource.

◆ GetAllResourceNames()

std::vector< gd::String > gd::ResourceFolder::GetAllResourceNames ( )
virtual

Get a list containing the name of all of the resources.

◆ GetName()

virtual const gd::String& gd::ResourceFolder::GetName ( ) const
inlinevirtual

Return the name of the folder.

◆ GetResource() [1/2]

Resource & gd::ResourceFolder::GetResource ( const gd::String name)
virtual

Return a reference to a resource.

◆ GetResource() [2/2]

const Resource & gd::ResourceFolder::GetResource ( const gd::String name) const
virtual

Return a reference to a resource.

◆ HasResource()

bool gd::ResourceFolder::HasResource ( const gd::String name) const
virtual

Return true if a resource is in the folder.

◆ MoveResourceDownInList()

bool gd::ResourceFolder::MoveResourceDownInList ( const gd::String name)
virtual

Move a resource down in the list

◆ MoveResourceUpInList()

bool gd::ResourceFolder::MoveResourceUpInList ( const gd::String name)
virtual

Move a resource up in the list

◆ RemoveResource()

void gd::ResourceFolder::RemoveResource ( const gd::String name)
virtual

Remove a resource

◆ SetName()

virtual void gd::ResourceFolder::SetName ( const gd::String name_)
inlinevirtual

Change the name of the folder with the name passed as parameter.


The documentation for this class was generated from the following files: