mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Clean up rollback
This commit is contained in:
parent
da0f1e5497
commit
b1965ac209
12 changed files with 888 additions and 1255 deletions
|
@ -20,12 +20,13 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||
#ifndef INVENTORY_HEADER
|
||||
#define INVENTORY_HEADER
|
||||
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include "irrlichttypes.h"
|
||||
#include "debug.h"
|
||||
#include "itemdef.h"
|
||||
#include "irrlichttypes.h"
|
||||
#include <istream>
|
||||
#include <ostream>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
struct ToolCapabilities;
|
||||
|
||||
|
@ -39,8 +40,9 @@ struct ItemStack
|
|||
|
||||
// Serialization
|
||||
void serialize(std::ostream &os) const;
|
||||
void deSerialize(std::istream &is, IItemDefManager *itemdef);
|
||||
void deSerialize(const std::string &s, IItemDefManager *itemdef);
|
||||
// Deserialization. Pass itemdef unless you don't want aliases resolved.
|
||||
void deSerialize(std::istream &is, IItemDefManager *itemdef = NULL);
|
||||
void deSerialize(const std::string &s, IItemDefManager *itemdef = NULL);
|
||||
|
||||
// Returns the string used for inventory
|
||||
std::string getItemString() const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue