Skip to content

Commit 0481217

Browse files
committed
update for unreal SDK
1 parent 05431cd commit 0481217

File tree

4 files changed

+4
-6
lines changed

4 files changed

+4
-6
lines changed

include/GameAnalytics/Server/GAServer.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,6 @@ namespace gameanalytics
4141
void startPlayerSession(std::string const& userId);
4242
void endPlayerSession(std::string const& userId);
4343

44-
void startPlayerSession(Player& player);
45-
void endPlayerSession(Player& player);
46-
4744
void addServerDesignEvent(std::string const& eventId, double value = 0.0, CustomFields const& customFields = {});
4845
void addServerBusinessEvent(std::string const& currency, int amount, std::string const& itemType, std::string const& itemId, std::string const& cartType, CustomFields const& customFields = {});
4946
void addServerResourceEvent(EGAResourceFlowType flowType, std::string const& currency, float amount, std::string const& itemType, std::string const& itemId, CustomFields const& customFields = {});

source/gameanalytics/GAEvents.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -695,7 +695,7 @@ namespace gameanalytics
695695

696696
void GAEvents::fixMissingSessionEndEvents()
697697
{
698-
if(!state::GAState::isEventSubmissionEnabled())
698+
if(!state::GAState::isEventSubmissionEnabled() || !getInstance().doFixMissingSessionEnd)
699699
{
700700
return;
701701
}

source/gameanalytics/GAEvents.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ namespace gameanalytics
3939

4040
bool enableSDKInitEvent{false};
4141
bool enableHealthEvent{false};
42+
bool doFixMissingSessionEnd{false};
4243

4344
void addEventToStore(json& eventData);
4445

source/gameanalytics/Server/GASerialize.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace gameanalytics
44
{
5-
json serializeCustomFields(CustomFields const& customFields)
5+
json serializeCustomFields(CustomFields const& customFields)
66
{
77
json j;
88

@@ -66,4 +66,4 @@ namespace gameanalytics
6666

6767
return customFields;
6868
}
69-
}
69+
}

0 commit comments

Comments
 (0)