|
MT Showcase SDK
|
Showcase package will contain one or more components. More...
#include <Package.hpp>
Public Member Functions | |
| void | preparePackage () |
| This should be called when the package is selected for loading In case there are multiple versions of the same package, only the selected version should call this Currently just adds search paths. | |
| void | load () |
| bool | canBeUsed () const |
| Checks that version matches and everything is available. More... | |
Showcase package will contain one or more components.
Components are compiled into one or multiple dynamic libraries that are loaded by Showcase runtime. In addition components can also have data and CSS-files.
Each package file consists of single JSON-object. Below is an example of package file. Fields are exmplained below the example.
{ "name" : "awesome-background", "libraries" : [ "awesome-bg-SHOWCASE_VERSION" ], "required-showcase-version" : "SHOWCASE_VERSION", "version" : "0.9.6", "components" : { "awesome-bg" : { "type" : "ui", "data-folders" : [ "data" ], "css-files" : [ "awesome-bg.css" ], "schema" : "awesome-bg.schema" } } }
Fields of package definition:
| bool Showcase::Package::canBeUsed | ( | ) | const |
Checks that version matches and everything is available.
| void Showcase::Package::load | ( | ) |