nanoMMO 0.97.8
Building an MMO: The Engineering Series
Loading...
Searching...
No Matches
messages.h File Reference
#include <concepts>
#include <cstdint>
#include <span>
#include <string>
#include <string_view>
#include <utility>
#include <vector>
#include "absl/status/status.h"
#include "content/content.h"
#include "protocol/nanommo.pb.h"

Go to the source code of this file.

Classes

struct  nanommo::Part
struct  nanommo::Sentence

Namespaces

namespace  nanommo
namespace  nanommo::messages_internal

Functions

std::string nanommo::Fill (std::string_view text, std::span< const std::string > args)
Part nanommo::Number (uint64_t number)
 A number, as it is.
Part nanommo::Name (std::string_view name)
Part nanommo::Of (const items::Item &item, uint32_t count)
Part nanommo::Of (const ItemTable &items, uint32_t item, uint32_t count)
Part nanommo::Of (const monsters::Kind &kind, uint32_t count)
Part nanommo::Of (const npcs::Kind &kind)
Part nanommo::Of (const quests::Quest &quest)
Part nanommo::Of (const skills::Skill &skill)
Part nanommo::Of (const factions::Faction &faction)
Part nanommo::Of (items::Slot slot)
Part nanommo::Of (Sentence phrase)
 A sentence inside another, which is translated on its own.
std::pair< std::string, std::string > nanommo::Counted (const items::Item &item)
std::pair< std::string, std::string > nanommo::Counted (const monsters::Kind &kind)
Part nanommo::messages_internal::ToPart (Part part)
Part nanommo::messages_internal::ToPart (Sentence phrase)
Part nanommo::messages_internal::ToPart (std::integral auto number)
Sentence nanommo::messages_internal::Make (std::string_view one, std::string_view many, uint64_t count, std::vector< Part > parts)
template<typename... Parts>
Sentence nanommo::Msg (std::string_view text, Parts... parts)
template<typename... Parts>
Sentence nanommo::MsgN (std::string_view one, std::string_view many, uint64_t count, Parts... parts)
absl::Status nanommo::Refusal (absl::StatusCode code, const Sentence &why)
Sentence nanommo::SentenceOf (const absl::Status &status)
std::string nanommo::English (const protocol::Message &message, const Content &content)