mirror of
				https://github.com/DarkflameUniverse/DarkflameServer.git
				synced 2025-10-30 20:22:04 +00:00 
			
		
		
		
	Donation Component serialization
This commit is contained in:
		| @@ -6,8 +6,6 @@ DonationVendorComponent::DonationVendorComponent(Entity* parent) : VendorCompone | ||||
| 	m_TotalRemaining = 0; | ||||
| } | ||||
|  | ||||
|  | ||||
|  | ||||
| void DonationVendorComponent::Serialize(RakNet::BitStream* outBitStream, bool bIsInitialUpdate, unsigned int& flags) { | ||||
| 	VendorComponent::Serialize(outBitStream, bIsInitialUpdate, flags); | ||||
| 	outBitStream->Write(bIsInitialUpdate || m_DirtyDonationVendor); | ||||
| @@ -15,6 +13,7 @@ void DonationVendorComponent::Serialize(RakNet::BitStream* outBitStream, bool bI | ||||
| 		outBitStream->Write(m_PercentComplete); | ||||
| 		outBitStream->Write(m_TotalDonated); | ||||
| 		outBitStream->Write(m_TotalRemaining); | ||||
| 		if (!bIsInitialUpdate) m_DirtyDonationVendor = false; | ||||
| 	} | ||||
| } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 David Markowitz
					David Markowitz