mirror of
				https://github.com/DarkflameUniverse/DarkflameServer.git
				synced 2025-10-31 20:52:01 +00:00 
			
		
		
		
	Update ActivityComponent.cpp
This commit is contained in:
		| @@ -30,6 +30,12 @@ | ||||
| #include "LeaderboardManager.h" | ||||
|  | ||||
| ActivityComponent::ActivityComponent(Entity* parent, int32_t activityID) : Component(parent) { | ||||
| 	/* | ||||
| 	* This is precisely what the client does functionally | ||||
| 	* Use the component id as the default activity id and load its data from the database | ||||
| 	* if activityID is specified and if that column exists in the activities table, update the activity info with that data. | ||||
| 	*/ | ||||
|  | ||||
| 	m_ActivityID = activityID; | ||||
| 	LoadActivityData(activityID); | ||||
| 	if (m_Parent->HasVar(u"activityID")) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 David Markowitz
					David Markowitz