|
Game of Ur 0.3.3
This is a computer adaptation of Game of Ur, written in C++ mainly using SDL and OpenGL.
|
Resource constructor for creating new NineSlicePanel resources from their descriptions in JSON. More...
#include <nine_slice_panel.hpp>
Public Member Functions | |
| NineSlicePanelFromDescription () | |
| creates an instance of this constructor. | |
Public Member Functions inherited from ToyMaker::ResourceConstructor< NineSlicePanel, NineSlicePanelFromDescription > | |
| std::string | getResourceConstructorName_ () const override |
| Gets the resource constructor type string of the constructor. | |
Public Member Functions inherited from ToyMaker::IResourceConstructor | |
| virtual | ~IResourceConstructor ()=default |
| Destroys this resource constructor (when the application is terminated.) | |
Static Public Member Functions | |
| static std::string | getResourceConstructorName () |
| Gets the resource constructor type string associated with this class. | |
Private Member Functions | |
| std::shared_ptr< ToyMaker::IResource > | createResource (const nlohmann::json &methodParameters) override |
| Creates a NineSlicePanel resource from its JSON description. | |
Additional Inherited Members | |
Protected Member Functions inherited from ToyMaker::ResourceConstructor< NineSlicePanel, NineSlicePanelFromDescription > | |
| ResourceConstructor (int explicitlyInitializeMe) | |
| Construct a new ResourceConstructor object. | |
Protected Member Functions inherited from ToyMaker::IResourceConstructor | |
| IResourceConstructor ()=default | |
| Construct a new IResourceConstructor object. | |
Static Protected Member Functions inherited from ToyMaker::IResourceConstructor | |
| template<typename TResource, typename TResourceConstructor> | |
| static void | RegisterResourceConstructor () |
| Registers this resource constructor against its respective ResourceFactory during static initialization. | |
Resource constructor for creating new NineSlicePanel resources from their descriptions in JSON.
Its appearance in JSON is as follows:
|
overrideprivatevirtual |
Creates a NineSlicePanel resource from its JSON description.
| methodParameters | The description of the NineSlicePanel, in JSON. |
Implements ToyMaker::IResourceConstructor.
|
inlinestatic |
Gets the resource constructor type string associated with this class.