mirror of
https://github.com/vicliu624/trail-mate.git
synced 2026-07-19 18:16:22 +00:00
27 lines
561 B
C++
27 lines
561 B
C++
#pragma once
|
|
|
|
#include "ui/chat_ui_runtime.h"
|
|
|
|
namespace chat::ui
|
|
{
|
|
|
|
class GlobalChatUiRuntime final : public IChatUiRuntime
|
|
{
|
|
public:
|
|
GlobalChatUiRuntime();
|
|
~GlobalChatUiRuntime() override;
|
|
|
|
void setActiveRuntime(IChatUiRuntime* runtime);
|
|
IChatUiRuntime* getActiveRuntime() const;
|
|
|
|
void update() override;
|
|
void onChatEvent(sys::Event* event) override;
|
|
ChatUiState getState() const override;
|
|
bool isTeamConversationActive() const override;
|
|
|
|
private:
|
|
IChatUiRuntime* active_runtime_ = nullptr;
|
|
};
|
|
|
|
} // namespace chat::ui
|