nanoMMO 0.97.8
Building an MMO: The Engineering Series
Loading...
Searching...
No Matches
bag_window.h File Reference
#include <cstdint>
#include <optional>
#include <string>
#include <utility>
#include <vector>
#include "content/items.h"
#include "protocol/nanommo.pb.h"

Go to the source code of this file.

Classes

class  nanommo::BagWindow

Namespaces

namespace  nanommo

Functions

std::vector< std::string > nanommo::ItemLines (const ItemTable &items, const items::Stack &stack)
std::optional< uint32_t > nanommo::FirstEmptySlot (const protocol::Inventory &bag)
 The first slot of the bag with nothing in it, if it has one.
std::optional< protocol::ItemAction > nanommo::QuickAction (const ItemTable &items, const protocol::Inventory &bag, const protocol::Place &place)
std::optional< protocol::ItemAction > nanommo::ItemSlot (const ItemTable &items, const protocol::Inventory &bag, const protocol::Place &place, float size, bool locked)
bool nanommo::StackSlot (const ItemTable &items, const items::Stack *stack, float size, uint32_t edge)
std::optional< protocol::Place > nanommo::AcceptItem ()