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