|
nanoMMO 0.97.8
Building an MMO: The Engineering Series
|
#include <bag_window.h>
Public Member Functions | |
| BagWindow (ItemTable items) | |
| bool * | mutable_visible () |
| bool | visible () const |
| void | Toggle () |
| std::optional< protocol::ItemAction > | Build (const protocol::Inventory &bag, const protocol::TradeSide &offered={}) |
| What's offered in a trade stays in its slot until the trade's over. | |
The bag, in a window of its own, which I opens and closes. An item dragged out of it, or off the player, and let go of over nothing is thrown away, once the player says so. Build it each frame, open or not, so that it sees an item let go of from what's worn too.
Definition at line 58 of file bag_window.h.
|
inlineexplicit |
Definition at line 60 of file bag_window.h.
| std::optional< protocol::ItemAction > nanommo::BagWindow::Build | ( | const protocol::Inventory & | bag, |
| const protocol::TradeSide & | offered = {} ) |
What's offered in a trade stays in its slot until the trade's over.
Definition at line 406 of file bag_window.cc.
|
inline |
Definition at line 62 of file bag_window.h.
|
inline |
Definition at line 64 of file bag_window.h.
|
inline |
Definition at line 63 of file bag_window.h.