[General] Add REPLY_TO_REQUEST container sub-action

pull/444/head
David Cernat 7 years ago
parent c24157f6f9
commit 494edbe5cb

@ -29,6 +29,7 @@ namespace mwmp
objectList.reset(); objectList.reset();
objectList.cell = *ptrCellStore->getCell(); objectList.cell = *ptrCellStore->getCell();
objectList.action = mwmp::BaseObjectList::SET; objectList.action = mwmp::BaseObjectList::SET;
objectList.containerSubAction = mwmp::BaseObjectList::REPLY_TO_REQUEST;
objectList.addAllContainers(ptrCellStore); objectList.addAllContainers(ptrCellStore);
objectList.sendContainer(); objectList.sendContainer();
} }

@ -94,7 +94,8 @@ namespace mwmp
NONE = 0, NONE = 0,
DRAG = 1, DRAG = 1,
DROP = 2, DROP = 2,
TAKE_ALL = 3 TAKE_ALL = 3,
REPLY_TO_REQUEST = 4
}; };
RakNet::RakNetGUID guid; RakNet::RakNetGUID guid;
@ -106,7 +107,7 @@ namespace mwmp
std::string consoleCommand; std::string consoleCommand;
unsigned char action; // 0 - Clear and set in entirety, 1 - Add item, 2 - Remove item, 3 - Request items unsigned char action; // 0 - Clear and set in entirety, 1 - Add item, 2 - Remove item, 3 - Request items
unsigned char containerSubAction; // 0 - None, 1 - Drag, 2 - Take all unsigned char containerSubAction; // 0 - None, 1 - Drag, 2 - Drop, 3 - Take all, 4 - Reply to request
bool isValid; bool isValid;
}; };

Loading…
Cancel
Save