nanoMMO 0.97.8
Building an MMO: The Engineering Series
Loading...
Searching...
No Matches
items.h File Reference
#include <cstdint>
#include <map>
#include <string_view>
#include <vector>
#include "absl/status/statusor.h"
#include "content/items.pb.h"

Go to the source code of this file.

Classes

struct  nanommo::ItemTable
 The items in the items file, by id. More...

Namespaces

namespace  nanommo

Functions

absl::StatusOr< ItemTable > nanommo::ParseItems (std::string_view text)
uint32_t nanommo::StackSize (const items::Item &item)
 How many of the item go in one slot of a bag.
uint32_t nanommo::CountOf (const items::Stack &stack)
 How many are in the stack, which is one when it doesn't say.
std::string_view nanommo::SlotName (items::Slot slot)
 The slot's name, as a player would say it, such as "main hand".

Variables

constexpr uint32_t nanommo::kBagSlots = 24
 How many slots each player's bag has.