Update plugin documentation document (#5185)
* Add blurb about LuaLS type definitions * Add c2.Channel documentation replacing c2.send_msg and c2.system_msg * Use snake_case for command names in examples to align to Lua naming convention * Unrelated: add missing ChannelType
This commit is contained in:
@@ -166,6 +166,9 @@ void PluginController::openLibrariesFor(lua_State *L, const PluginMeta &meta,
|
||||
lua::pushEnumTable<lua::api::LPlatform>(L);
|
||||
lua_setfield(L, c2libIdx, "Platform");
|
||||
|
||||
lua::pushEnumTable<Channel::Type>(L);
|
||||
lua_setfield(L, c2libIdx, "ChannelType");
|
||||
|
||||
// Initialize metatables for objects
|
||||
lua::api::ChannelRef::createMetatable(L);
|
||||
lua_setfield(L, c2libIdx, "Channel");
|
||||
|
||||
Reference in New Issue
Block a user