diff options
Diffstat (limited to 'Sluift/ElementConvertors/PubSubItemConvertor.cpp')
-rw-r--r-- | Sluift/ElementConvertors/PubSubItemConvertor.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Sluift/ElementConvertors/PubSubItemConvertor.cpp b/Sluift/ElementConvertors/PubSubItemConvertor.cpp index e06065b..19bb936 100644 --- a/Sluift/ElementConvertors/PubSubItemConvertor.cpp +++ b/Sluift/ElementConvertors/PubSubItemConvertor.cpp @@ -70,3 +70,12 @@ void PubSubItemConvertor::doConvertToLua(lua_State* L, boost::shared_ptr<PubSubI lua_pushstring(L, payload->getID().c_str()); lua_setfield(L, -2, "id"); } + +boost::optional<LuaElementConvertor::Documentation> PubSubItemConvertor::getDocumentation() const { + return Documentation( + "PubSubItem", + "This table has the following fields:\n\n" + "- `data`: array<element (table)>\n" + "- `id`: string\n" + ); +} |