go into command manager
Signed-off-by: Aleksey Selihov <faumaray@gmail.com>
This commit is contained in:
1 parent
b94b634a87
commit
1153721546
19 files changed
+752
-229
No files matched your search
@@ -1,4 +1,5 @@
|
||||
#pragma once
|
||||
#include "CommandManager.hpp"
|
||||
#include "PluginInterface.hpp"
|
||||
// #include "Youtube/Client.hpp"
|
||||
#include "ts6bot/AudioDecoder.hpp"
|
||||
@@ -14,13 +15,15 @@ class EchoionCore : public IEchoionPlugin
|
||||
{
|
||||
// Dependencies
|
||||
std::shared_ptr<TS3Functions> m_ts3;
|
||||
std::unique_ptr<MusicManager> m_musicManager;
|
||||
std::shared_ptr<MusicManager> m_musicManager;
|
||||
std::unique_ptr<CommandManager> m_commandManager;
|
||||
|
||||
public:
|
||||
|
||||
explicit EchoionCore(std::shared_ptr<TS3Functions> funcs)
|
||||
{
|
||||
m_ts3 = std::move(funcs);
|
||||
m_commandManager = std::make_unique<CommandManager>(m_ts3);
|
||||
}
|
||||
|
||||
void Initialize(bool start = true) override;
|
||||
@@ -633,10 +636,10 @@ class EchoionCore : public IEchoionPlugin
|
||||
};
|
||||
|
||||
extern "C" {
|
||||
IEchoionPlugin *CreatePlugin(const TS3Functions *funcs)
|
||||
IEchoionPlugin *CreatePlugin(const TS3Functions *funcs)
|
||||
{
|
||||
return new EchoionCore(std::make_shared<TS3Functions>(*funcs));
|
||||
}
|
||||
|
||||
void DestroyPlugin(const IEchoionPlugin *plugin) { delete plugin; }
|
||||
void DestroyPlugin(const IEchoionPlugin *plugin) { delete plugin; }
|
||||
}
|
||||
Reference in new issue
Block a user