mirror of
				https://github.com/DarkflameUniverse/DarkflameServer.git
				synced 2025-10-31 12:41:55 +00:00 
			
		
		
		
	Move empty definitions to header
This commit is contained in:
		| @@ -5,39 +5,3 @@ Component::Component(Entity* owningEntity) { | ||||
| 	DluAssert(owningEntity != nullptr); | ||||
| 	m_ParentEntity = owningEntity; | ||||
| } | ||||
|  | ||||
| Component::~Component() { | ||||
|  | ||||
| } | ||||
|  | ||||
| void Component::Update(float deltaTime) { | ||||
|  | ||||
| } | ||||
|  | ||||
| void Component::OnUse(Entity* originator) { | ||||
|  | ||||
| } | ||||
|  | ||||
| void Component::UpdateXml(tinyxml2::XMLDocument* doc) { | ||||
|  | ||||
| } | ||||
|  | ||||
| void Component::LoadFromXml(tinyxml2::XMLDocument* doc) { | ||||
|  | ||||
| } | ||||
|  | ||||
| void Component::Startup() { | ||||
|  | ||||
| } | ||||
|  | ||||
| void Component::LoadConfigData() { | ||||
|  | ||||
| } | ||||
|  | ||||
| void Component::LoadTemplateData() { | ||||
|  | ||||
| } | ||||
|  | ||||
| void Component::Serialize(RakNet::BitStream* bitStream, bool isConstruction) { | ||||
|  | ||||
| } | ||||
|   | ||||
| @@ -14,7 +14,7 @@ namespace RakNet { | ||||
| class Component { | ||||
| public: | ||||
| 	Component(Entity* owningEntity); | ||||
| 	virtual ~Component(); | ||||
| 	virtual ~Component() {}; | ||||
|  | ||||
| 	/** | ||||
| 	 * Gets the owner of this component | ||||
| @@ -26,45 +26,45 @@ public: | ||||
| 	 * Event called when this component is being used, e.g. when some entity interacted with it | ||||
| 	 * @param originator | ||||
| 	 */ | ||||
| 	virtual void OnUse(Entity* originator); | ||||
| 	virtual void OnUse(Entity* originator) {}; | ||||
|  | ||||
| 	/** | ||||
| 	 * Save data from this componennt to character XML | ||||
| 	 * @param doc the document to write data to | ||||
| 	 */ | ||||
| 	virtual void UpdateXml(tinyxml2::XMLDocument* doc); | ||||
| 	virtual void UpdateXml(tinyxml2::XMLDocument* doc) {}; | ||||
|  | ||||
| 	/** | ||||
| 	 * Load base data for this component from character XML | ||||
| 	 * @param doc the document to read data from | ||||
| 	 */ | ||||
| 	virtual void LoadFromXml(tinyxml2::XMLDocument* doc); | ||||
| 	virtual void LoadFromXml(tinyxml2::XMLDocument* doc) {}; | ||||
|  | ||||
| 	/** | ||||
| 	 * Call after you have newed the component to initialize it | ||||
| 	 */ | ||||
| 	virtual void Startup(); | ||||
| 	virtual void Startup() {}; | ||||
|  | ||||
| 	/** | ||||
| 	 * Updates the component in the game loop | ||||
| 	 * @param deltaTime time passed since last update | ||||
| 	 */ | ||||
| 	virtual void Update(float deltaTime); | ||||
| 	virtual void Update(float deltaTime) {}; | ||||
|  | ||||
| 	/** | ||||
| 	 * Loads the data of this component from the luz/lvl configuration | ||||
| 	 */ | ||||
| 	virtual void LoadConfigData(); | ||||
| 	virtual void LoadConfigData() {}; | ||||
|  | ||||
| 	/** | ||||
| 	 * Loads the data of this component from the cdclient database | ||||
| 	 */ | ||||
| 	virtual void LoadTemplateData(); | ||||
| 	virtual void LoadTemplateData() {}; | ||||
|  | ||||
| 	/** | ||||
| 	 * Serializes the component for delivery to the client(s) | ||||
| 	 */ | ||||
| 	virtual void Serialize(RakNet::BitStream* bitStream, bool isConstruction = false); | ||||
| 	virtual void Serialize(RakNet::BitStream* bitStream, bool isConstruction = false) {}; | ||||
| protected: | ||||
|  | ||||
| 	/** | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 David Markowitz
					David Markowitz