mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-22 13:37:22 +00:00
Update ActivityComponent.cpp
This commit is contained in:
parent
20f7a8ff88
commit
3b0ca7fe35
@ -30,6 +30,12 @@
|
|||||||
#include "LeaderboardManager.h"
|
#include "LeaderboardManager.h"
|
||||||
|
|
||||||
ActivityComponent::ActivityComponent(Entity* parent, int32_t activityID) : Component(parent) {
|
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;
|
m_ActivityID = activityID;
|
||||||
LoadActivityData(activityID);
|
LoadActivityData(activityID);
|
||||||
if (m_Parent->HasVar(u"activityID")) {
|
if (m_Parent->HasVar(u"activityID")) {
|
||||||
|
Loading…
Reference in New Issue
Block a user