GDevelop Core
Core library for developing platforms and tools compatible with GDevelop.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
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 objectt.
 

Member Function Documentation

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

Add a resource from an already existing resource.

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

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

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

Return the name of the folder.

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

Return a reference to a resource.

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

Return a reference to a resource.

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

Return true if a resource is in the folder.

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

Move a resource down in the list

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

Move a resource up in the list

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

Remove a resource

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: