mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-09-27 19:00:44 +00:00
refactor: begin unglobbing std::vector
This commit is contained in:
@@ -101,17 +101,17 @@ public:
|
||||
void set(int id, std::shared_ptr<ItemInstance>);
|
||||
void markDirty(int id);
|
||||
bool isDirty();
|
||||
static void pack(vector<std::shared_ptr<DataItem> > *items, DataOutputStream *output); // TODO throws IOException
|
||||
vector<std::shared_ptr<DataItem> > *packDirty();
|
||||
static void pack(std::vector<std::shared_ptr<DataItem> > *items, DataOutputStream *output); // TODO throws IOException
|
||||
std::vector<std::shared_ptr<DataItem> > *packDirty();
|
||||
void packAll(DataOutputStream *output); // throws IOException
|
||||
vector<std::shared_ptr<DataItem> > *getAll();
|
||||
std::vector<std::shared_ptr<DataItem> > *getAll();
|
||||
|
||||
private:
|
||||
static void writeDataItem(DataOutputStream *output, std::shared_ptr<DataItem> dataItem); //throws IOException
|
||||
|
||||
|
||||
public:
|
||||
static vector<std::shared_ptr<DataItem> > *unpack(DataInputStream *input); // throws IOException
|
||||
static std::vector<std::shared_ptr<DataItem> > *unpack(DataInputStream *input); // throws IOException
|
||||
|
||||
/**
|
||||
* Assigns values from a list of data items.
|
||||
@@ -119,7 +119,7 @@ public:
|
||||
* @param items
|
||||
*/
|
||||
public:
|
||||
void assignValues(vector<std::shared_ptr<DataItem> > *items);
|
||||
void assignValues(std::vector<std::shared_ptr<DataItem> > *items);
|
||||
bool isEmpty();
|
||||
|
||||
// 4J Added
|
||||
|
||||
Reference in New Issue
Block a user