Lysa  0.0
Lysa 3D Engine
Resource Class Reference

Detailed Description

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
 

Constructor & Destructor Documentation

Resource ( const std::string &  name)

Member Function Documentation

virtual std::shared_ptr<Resource> duplicate ( ) const
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()

auto getId ( ) const
inline

Returns the unique id of the resource

const auto& getName ( ) const
inline

Return the name of the resource

bool operator< ( const Resource &  other) const
inline
bool operator== ( const Resource &  other) const
inline
bool operator> ( const Resource &  other) const
inline