-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreward.proto
executable file
·99 lines (88 loc) · 1.92 KB
/
reward.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
syntax = "proto3"
package retro.ai;
//
// Reward message
//
// This message contains the cumulative reward for entering the state.
//
message Reward {
//
// Version of the Reward message
//
uint32 version = 1;
//
// Achievements from RetroAchievements.org
//
optional RetroAchievements retro_achievements = 2;
}
//
// Achievements provided by RetroAchievement.org
//
message RetroAchievements {
//
// RetroAchievements.org console ID
//
// The enum values must match the console IDs on RetroAchievements.org.
//
enum ConsoleID {
CONSOLE_UNKNOWN = 0;
CONSOLE_MEGA_DRIVE = 1;
CONSOLE_NINTENDO_64 = 2;
CONSOLE_SUPER_NINTENDO = 3;
CONSOLE_GAMEBOY = 4;
CONSOLE_GAMEBOY_ADVANCE = 5;
CONSOLE_GAMEBOY_COLOR = 6;
CONSOLE_NINTENDO = 7;
CONSOLE_PC_ENGINE = 8;
CONSOLE_SEGA_CD = 9;
CONSOLE_SEGA_32X = 10;
CONSOLE_MASTER_SYSTEM = 11;
}
ConsoleID = 1;
//
// The list of achievements
//
repeated RetroAchievement achievements = 2;
}
//
// Achievement from RetroAchievement.org
//
messave RetroAchievement
{
//
// Achievement description
//
RetroAchievementDescription description = 1;
//
// Mechanics needed to obtain the achievement
//
RetroAchievementMechanics mechanics = 2;
//
// True if this achievement has been achieved, False otherwise
//
bool achieved = 2;
// TODO: Scalar values of achievement progress, goal, etc
}
//
// Descriptive fields for each RetroAchievement
//
message RetroAchievementDescription {
uint32 id = 1;
string title = 2;
string description = 3;
string author = 4;
string badge = 5;
uint32 points = 6;
uint32 dirty = 7;
bool softcore = 8;
bool hardcore = 9;
uint32 created = 10;
uint32 modified = 11;
bool official = 12;
}
//
// The operations needed to obtain the achievement
//
message RetroAchievementMechanics {
// TODO
}