mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-15 04:38:21 +00:00
28ce8ac54d
resolves a memory leak in BrickDatabase, adds stability to character save doc. Tested that saving manually via force-save, logout and /crash all saved my position and my removed banana as expected. The doc was always deleted on character destruction and on any updates, so this is just a semantic change (and now we no longer have new'd tinyxml2::documents on the heap)
35 lines
484 B
C++
35 lines
484 B
C++
#include "Component.h"
|
|
|
|
|
|
Component::Component(Entity* parent) {
|
|
m_Parent = parent;
|
|
}
|
|
|
|
Component::~Component() {
|
|
|
|
}
|
|
|
|
Entity* Component::GetParent() const {
|
|
return m_Parent;
|
|
}
|
|
|
|
void Component::Update(float deltaTime) {
|
|
|
|
}
|
|
|
|
void Component::OnUse(Entity* originator) {
|
|
|
|
}
|
|
|
|
void Component::UpdateXml(tinyxml2::XMLDocument& doc) {
|
|
|
|
}
|
|
|
|
void Component::LoadFromXml(const tinyxml2::XMLDocument& doc) {
|
|
|
|
}
|
|
|
|
void Component::Serialize(RakNet::BitStream& outBitStream, bool isConstruction) {
|
|
|
|
}
|