nanoMMO 0.97.8
Building an MMO: The Engineering Series
Loading...
Searching...
No Matches
bag_window.cc File Reference
#include "client/bag_window.h"
#include <imgui.h>
#include <algorithm>
#include <cfloat>
#include <cstddef>
#include <cstdint>
#include <cstring>
#include <optional>
#include <string>
#include <utility>
#include <vector>
#include "absl/strings/str_cat.h"
#include "absl/strings/substitute.h"
#include "client/icon.h"
#include "client/names.h"
#include "client/theme.h"
#include "client/translations.h"
#include "extras/IconsFontAwesome6.h"
#include "protocol/places.h"
#include "server/inventory.h"

Go to the source code of this file.

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 ()