1#ifndef NANOMMO_CLIENT_CHAT_WINDOW_H_
2#define NANOMMO_CLIENT_CHAT_WINDOW_H_
13#include "protocol/nanommo.pb.h"
20std::optional<std::string>
GuildLine(std::string_view typed);
24std::optional<std::string>
TradeName(std::string_view typed);
28std::optional<std::string>
WarName(std::string_view typed);
33std::optional<protocol::DuelAction>
DuelLine(std::string_view typed);
43 std::optional<std::string>
Build(
const std::deque<protocol::Chat>& lines,
47 static std::size_t
Unread(
const std::deque<protocol::Chat>& lines,
48 const std::optional<protocol::Chat>& seen);
55 std::optional<protocol::Chat> seen_;
57 std::array<char, kMaxChatLength + 1> typing_{};
std::optional< std::string > Build(const std::deque< protocol::Chat > &lines, const Content &content)
static std::size_t Unread(const std::deque< protocol::Chat > &lines, const std::optional< protocol::Chat > &seen)
How many of the lines came after the last one seen while it was open.
std::optional< std::string > WarName(std::string_view typed)
std::optional< std::string > TradeName(std::string_view typed)
std::optional< protocol::DuelAction > DuelLine(std::string_view typed)
std::optional< std::string > GuildLine(std::string_view typed)