mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-01-22 12:47:01 +00:00
corrected serialization
This commit is contained in:
parent
5afeb265cd
commit
cacf4fcd97
@ -13,11 +13,6 @@ VendorComponent::VendorComponent(Entity* parent) : Component(parent) {
|
|||||||
VendorComponent::~VendorComponent() = default;
|
VendorComponent::~VendorComponent() = default;
|
||||||
|
|
||||||
void VendorComponent::Serialize(RakNet::BitStream* outBitStream, bool bIsInitialUpdate, unsigned int& flags) {
|
void VendorComponent::Serialize(RakNet::BitStream* outBitStream, bool bIsInitialUpdate, unsigned int& flags) {
|
||||||
// Only serialize this entity on construction.
|
|
||||||
// [bool] hasVendorInfo
|
|
||||||
// [bool] hasStandardItems (always true?)
|
|
||||||
// [bool] hasMulticostItems (only true for umami with their cooking for now.)
|
|
||||||
if (!bIsInitialUpdate) return;
|
|
||||||
outBitStream->Write1();
|
outBitStream->Write1();
|
||||||
outBitStream->Write1();
|
outBitStream->Write1();
|
||||||
outBitStream->Write(HasCraftingStation());
|
outBitStream->Write(HasCraftingStation());
|
||||||
|
Loading…
Reference in New Issue
Block a user