Skip to content

Commit 959a4d6

Browse files
committed
level event context
1 parent 6c3d93a commit 959a4d6

34 files changed

+9241
-9018
lines changed

include/GameAnalytics/GATypes.h

Lines changed: 93 additions & 93 deletions
Original file line numberDiff line numberDiff line change
@@ -1,93 +1,93 @@
1-
#pragma once
2-
3-
#include <string>
4-
#include <vector>
5-
#include <cinttypes>
6-
#include <memory>
7-
#include <ostream>
8-
#include <utility>
9-
#include <cstring>
10-
#include <array>
11-
#include <functional>
12-
13-
namespace gameanalytics
14-
{
15-
/*!
16-
@enum
17-
@discussion
18-
This enum is used to specify flow in resource events
19-
@constant GAResourceFlowTypeSource
20-
Used when adding to a resource currency
21-
@constant GAResourceFlowTypeSink
22-
Used when subtracting from a resource currency
23-
*/
24-
enum EGAResourceFlowType
25-
{
26-
Source = 1,
27-
Sink = 2
28-
};
29-
30-
/*!
31-
@enum
32-
@discussion
33-
this enum is used to specify status for progression event
34-
@constant GAProgressionStatusStart
35-
User started progression
36-
@constant GAProgressionStatusComplete
37-
User succesfully ended a progression
38-
@constant GAProgressionStatusFail
39-
User failed a progression
40-
*/
41-
enum EGAProgressionStatus
42-
{
43-
Start = 1,
44-
Complete = 2,
45-
Fail = 3
46-
};
47-
48-
/*!
49-
@enum
50-
@discussion
51-
this enum is used to specify severity of an error event
52-
@constant GAErrorSeverityDebug
53-
@constant GAErrorSeverityInfo
54-
@constant GAErrorSeverityWarning
55-
@constant GAErrorSeverityError
56-
@constant GAErrorSeverityCritical
57-
*/
58-
enum EGAErrorSeverity
59-
{
60-
Debug = 1,
61-
Info = 2,
62-
Warning = 3,
63-
Error = 4,
64-
Critical = 5
65-
};
66-
67-
enum EGALoggerMessageType
68-
{
69-
LogError = 0,
70-
LogWarning = 1,
71-
LogInfo = 2,
72-
LogDebug = 3,
73-
LogVerbose = 4
74-
};
75-
76-
enum class EGALevelStatus
77-
{
78-
Abort = -1,
79-
Start = 0,
80-
Complete = 1,
81-
Failure = 2,
82-
};
83-
84-
using StringVector = std::vector<std::string>;
85-
86-
using LogHandler = std::function<void(std::string const&, EGALoggerMessageType)>;
87-
using FPSTracker = std::function<float()>;
88-
89-
struct IRemoteConfigsListener
90-
{
91-
virtual void onRemoteConfigsUpdated(std::string const& remoteConfigs) = 0;
92-
};
93-
}
1+
#pragma once
2+
3+
#include <string>
4+
#include <vector>
5+
#include <cinttypes>
6+
#include <memory>
7+
#include <ostream>
8+
#include <utility>
9+
#include <cstring>
10+
#include <array>
11+
#include <functional>
12+
13+
namespace gameanalytics
14+
{
15+
/*!
16+
@enum
17+
@discussion
18+
This enum is used to specify flow in resource events
19+
@constant GAResourceFlowTypeSource
20+
Used when adding to a resource currency
21+
@constant GAResourceFlowTypeSink
22+
Used when subtracting from a resource currency
23+
*/
24+
enum EGAResourceFlowType
25+
{
26+
Source = 1,
27+
Sink = 2
28+
};
29+
30+
/*!
31+
@enum
32+
@discussion
33+
this enum is used to specify status for progression event
34+
@constant GAProgressionStatusStart
35+
User started progression
36+
@constant GAProgressionStatusComplete
37+
User succesfully ended a progression
38+
@constant GAProgressionStatusFail
39+
User failed a progression
40+
*/
41+
enum EGAProgressionStatus
42+
{
43+
Start = 1,
44+
Complete = 2,
45+
Fail = 3
46+
};
47+
48+
/*!
49+
@enum
50+
@discussion
51+
this enum is used to specify severity of an error event
52+
@constant GAErrorSeverityDebug
53+
@constant GAErrorSeverityInfo
54+
@constant GAErrorSeverityWarning
55+
@constant GAErrorSeverityError
56+
@constant GAErrorSeverityCritical
57+
*/
58+
enum EGAErrorSeverity
59+
{
60+
Debug = 1,
61+
Info = 2,
62+
Warning = 3,
63+
Error = 4,
64+
Critical = 5
65+
};
66+
67+
enum EGALoggerMessageType
68+
{
69+
LogError = 0,
70+
LogWarning = 1,
71+
LogInfo = 2,
72+
LogDebug = 3,
73+
LogVerbose = 4
74+
};
75+
76+
enum class EGALevelStatus
77+
{
78+
Abort = -1,
79+
Start = 0,
80+
Complete = 1,
81+
Failure = 2,
82+
};
83+
84+
using StringVector = std::vector<std::string>;
85+
86+
using LogHandler = std::function<void(std::string const&, EGALoggerMessageType)>;
87+
using FPSTracker = std::function<float()>;
88+
89+
struct IRemoteConfigsListener
90+
{
91+
virtual void onRemoteConfigsUpdated(std::string const& remoteConfigs) = 0;
92+
};
93+
}

0 commit comments

Comments
 (0)