mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-19 02:23:01 +08:00
* fix. MistEO's fault with incomplete rename * perf. code enhance * fix. callback bug * perf. use darkred Co-authored-by: MistEO <mistereo@hotmail.com>
29 lines
702 B
C++
29 lines
702 B
C++
#pragma once
|
|
|
|
#include "AbstractTaskPlugin.h"
|
|
#include "AsstTypes.h"
|
|
|
|
namespace asst
|
|
{
|
|
inline static const std::string ClientTypeKey = "client_type";
|
|
|
|
class StartGameTaskPlugin : public AbstractTaskPlugin
|
|
{
|
|
public:
|
|
using AbstractTaskPlugin::AbstractTaskPlugin;
|
|
virtual ~StartGameTaskPlugin() noexcept override = default;
|
|
|
|
virtual bool verify(AsstMsg msg, const json::value& details) const override
|
|
{
|
|
std::ignore = msg; std::ignore = details; return true;
|
|
}
|
|
|
|
StartGameTaskPlugin& set_client_type(std::string client_type) noexcept;
|
|
|
|
protected:
|
|
bool _run() override;
|
|
|
|
std::string m_client_type = "";
|
|
};
|
|
}
|