nanoMMO 0.97.8
Building an MMO: The Engineering Series
Loading...
Searching...
No Matches
quests.h
Go to the documentation of this file.
1#ifndef NANOMMO_CONTENT_QUESTS_H_
2#define NANOMMO_CONTENT_QUESTS_H_
3
4#include <cstdint>
5#include <map>
6#include <string_view>
7
8#include "absl/status/statusor.h"
9#include "content/quests.pb.h"
10
11namespace nanommo {
12
13/// The quests in text format, by id, or what's wrong with them: a field
14/// quests.proto doesn't have, a quest with no id or with another's, one with
15/// no giver, one that asks for no kills, or a prize of none of an item.
16absl::StatusOr<std::map<uint32_t, quests::Quest>> ParseQuests(
17 std::string_view text);
18
19} // namespace nanommo
20
21#endif // NANOMMO_CONTENT_QUESTS_H_
Definition chat.cc:9
absl::StatusOr< std::map< uint32_t, quests::Quest > > ParseQuests(std::string_view text)
Definition quests.cc:13