![]() |
Lysa
0.0
Lysa 3D Engine
|
Base class for resources.
Inheritance diagram for Resource:Public Member Functions | |
| Resource (const std::string &name) | |
| auto | getId () const |
| const auto & | getName () const |
| bool | operator== (const Resource &other) const |
| bool | operator< (const Resource &other) const |
| bool | operator> (const Resource &other) const |
| virtual std::shared_ptr< Resource > | duplicate () const |
Public Member Functions inherited from Object | |
| void | connect (const Signal::signal &name, const Signal::Handler &handler) |
| void | connect (const Signal::signal &name, const std::function< void ()> &handler) |
| void | emit (const Signal::signal &name, void *params=nullptr) |
| virtual std::string | toString () const |
| Object () = default | |
| virtual | ~Object () = default |
| Resource | ( | const std::string & | name | ) |
|
virtual |
Duplicates a resource. Warning: not implemented on all resource types, check documentation for the resource type before using it.
Reimplemented in lysa::BoxShape::duplicate(), lysa::ConvexHullShape::duplicate()
|
inline |
Returns the unique id of the resource
|
inline |
Return the name of the resource
|
inline |
|
inline |
|
inline |