diff --git a/CMakeLists.txt b/CMakeLists.txt index 6870f9c..2cef2b9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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}) diff --git a/README.md b/README.md index c3e80e8..21882b3 100644 --- a/README.md +++ b/README.md @@ -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: diff --git a/docs/reference.rst b/docs/reference.rst index 019e897..61345a5 100644 --- a/docs/reference.rst +++ b/docs/reference.rst @@ -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. diff --git a/docs/usage.rst b/docs/usage.rst index 9352c94..64f35d7 100644 --- a/docs/usage.rst +++ b/docs/usage.rst @@ -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 *************************************** diff --git a/src/main.cpp b/src/main.cpp index eb9feef..9ea2051 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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_(module, "Message") - .def_readwrite("type", &PluginMessage::type) - .def_readwrite("text", &PluginMessage::text); + class_(module, "Message") + .def_readwrite("type", &SimpleMessage::type) + .def_readwrite("language", &SimpleMessage::language) + .def_readwrite("text", &SimpleMessage::text); class_(module, "PluginTags") .def_readwrite("added", &PluginTags::added)