Update LOOT API wrapped

To dc3a93ecf331465b17a28ac39e6c17370438331b.
This commit is contained in:
Oliver Hamlet
2016-08-24 19:02:18 +01:00
parent fc30a3f0bb
commit 7838f3aa5b
5 changed files with 15 additions and 12 deletions
+3 -3
View File
@@ -28,9 +28,9 @@ add_subdirectory(${PYBIND11_EXTRACTED_PATH})
# LOOT API
#######################################
set(LOOT_API_URL "https://bintray.com/wrinklyninja/loot/download_file?file_path=loot-api_0.9.2-47-gd1524b8_c%2B%2B-api.7z")
set(LOOT_API_DOWNLOAD_PATH "${EXTERNAL_PROJECTS_PATH}/loot-api_0.9.2-47-gd1524b8_c++-api.7z")
set(LOOT_API_EXTRACTED_PATH "${EXTERNAL_PROJECTS_PATH}/loot-api_0.9.2-47-gd1524b8_c++-api")
set(LOOT_API_URL "https://bintray.com/wrinklyninja/loot/download_file?file_path=loot-api_0.9.2-49-gdc3a93e_dev.7z")
set(LOOT_API_DOWNLOAD_PATH "${EXTERNAL_PROJECTS_PATH}/loot-api_0.9.2-49-gdc3a93e_dev.7z")
set(LOOT_API_EXTRACTED_PATH "${EXTERNAL_PROJECTS_PATH}/loot-api_0.9.2-49-gdc3a93e_dev")
if (NOT EXISTS ${LOOT_API_DOWNLOAD_PATH})
file(DOWNLOAD ${LOOT_API_URL} ${LOOT_API_DOWNLOAD_PATH})
-2
View File
@@ -6,8 +6,6 @@ LOOT API Python Module
A Python module that wraps the LOOT API, generated by [pybind11](https://github.com/pybind/pybind11).
The module is at a very early stage of development and wraps an API that is itself still a work-in-progress.
## Downloads
Snapshot builds are available on [Bintray](https://bintray.com/wrinklyninja/loot/loot-api-python). The snapshot build archives are named like so:
+5 -1
View File
@@ -82,12 +82,16 @@ Classes with public fields and no member functions.
.. py:class:: loot_api.Message
Wraps :cpp:class:`loot::PluginMessage`.
Wraps :cpp:class:`loot::SimpleMessage`.
.. py:attribute:: type
A :py:class:`loot_api.MessageType` giving the message type.
.. py:attribute:: language
A :py:class:`loot_api.LanguageCode` giving the message text language.
.. py:attribute:: text
A Unicode string containing the message text.
+2 -2
View File
@@ -38,12 +38,12 @@ releases, so snapshot builds created from commits between releases may use the
last release's version number, and so appear compatible, but contain breaking
changes that aren't yet reflected by the version numbering.
The module is currently built against revision `d1524b8`_
The module is currently built against revision `dc3a93e`_
of the API, which is post-0.9.2 and pre-0.10.0, but uses the v0.10 metadata
syntax (as specified at that revision, in case there are further changes before
the v0.10 release).
.. _d1524b8: https://github.com/loot/loot/tree/d1524b83d216efd2744b6575510bb4dbe390c102
.. _dc3a93e: https://github.com/loot/loot/tree/dc3a93ecf331465b17a28ac39e6c17370438331b
Getting a Plugin's Bash Tag Suggestions
***************************************
+5 -4
View File
@@ -38,7 +38,7 @@ PYBIND11_PLUGIN(loot_api) {
using loot::MessageType;
using loot::MasterlistInfo;
using loot::PluginCleanliness;
using loot::PluginMessage;
using loot::SimpleMessage;
using loot::PluginTags;
using pybind11::arg;
@@ -85,9 +85,10 @@ PYBIND11_PLUGIN(loot_api) {
.def_readwrite("revision_date", &MasterlistInfo::revision_date)
.def_readwrite("is_modified", &MasterlistInfo::is_modified);
class_<PluginMessage>(module, "Message")
.def_readwrite("type", &PluginMessage::type)
.def_readwrite("text", &PluginMessage::text);
class_<SimpleMessage>(module, "Message")
.def_readwrite("type", &SimpleMessage::type)
.def_readwrite("language", &SimpleMessage::language)
.def_readwrite("text", &SimpleMessage::text);
class_<PluginTags>(module, "PluginTags")
.def_readwrite("added", &PluginTags::added)