You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -54,7 +54,7 @@ When viewing level cells or pages, you may notice the changes in the background
54
54
55
55
Level cells with a glow emerging from the side represent levels in Avalanche's hall of fame. These levels stand out the most among the team's creations. By default, unrated or unlisted levels will not be highlighted.
56
56
57
-
If a level is featured on Avalanche's servers, you may see a button with the Avalanche logo appear on the left-hand side menu on the level's information page, or the right-hand side menu on the pause menu while playing the level. Pressing this will create a pop-up showing its showcase video thumbnail as the background, and gives more information about the level as a project by the team or its members, the type of project it is, its host, etc. You will also see a button to watch its full showcase video.
57
+
If a level is featured on Cubic's servers for Avalanche, you may see a button with the Avalanche logo appear on the left-hand side menu on the level's information page, or the right-hand side menu on the pause menu while playing the level. Pressing this will create a pop-up showing its level thumbnail as the background, and gives more information about the level as a project by the team or its members, the type of project it is, its host, etc. You will also see a button to watch its full showcase video.
Copy file name to clipboardExpand all lines: about.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -43,7 +43,7 @@ When viewing level cells or pages, you may notice the changes in the background
43
43
44
44
Level cells with a glow emerging from the side represent levels in Avalanche's hall of fame. These levels stand out the most among the team's creations. By default, unrated or unlisted levels will not be highlighted.
45
45
46
-
If a level is featured on Avalanche's servers, you may see a button with the Avalanche logo appear on the left-hand side menu on the level's information page, or the right-hand side menu on the pause menu while playing the level. Pressing this will create a pop-up showing its showcase video thumbnail as the background, and gives more information about the level as a project by the team or its members, the type of project it is, its host, etc. You will also see a button to watch its full showcase video.
46
+
If a level is featured on Cubic's servers for Avalanche, you may see a button with the Avalanche logo appear on the left-hand side menu on the level's information page, or the right-hand side menu on the pause menu while playing the level. Pressing this will create a pop-up showing its level thumbnail as the background, and gives more information about the level as a project by the team or its members, the type of project it is, its host, etc. You will also see a button to watch its full showcase video.
Copy file name to clipboardExpand all lines: incl/Avalanche.hpp
+49-26Lines changed: 49 additions & 26 deletions
Original file line number
Diff line number
Diff line change
@@ -20,53 +20,76 @@ namespace avalanche { // Avalanche Index mod namespace
20
20
21
21
externint ACC_PUBLISHER; // Account ID of Avalanche's level publisher account
22
22
23
-
constexprconstchar* URL_CUBIC = "https://www.cubicstudios.xyz/"; // URL to Cubic Studios's official website
23
+
constexprconstchar* URL_CUBIC = "https://www.cubicstudios.xyz/"; // URL to Cubic Studios's official website
24
24
constexprconstchar* URL_AVALANCHE = "https://avalanche.cubicstudios.xyz/"; // URL to Avalanche's official website
25
25
26
-
constexprconstchar* URL_API_BADGES = "https://gh.cubicstudios.xyz/WebLPS/data/avalProfiles.json"; // URL to remote JSON file containing all data on profiles
27
-
constexprconstchar* URL_API_LEVELS = "https://gh.cubicstudios.xyz/WebLPS/data/avalProjects.json"; // URL to remote JSON file containing all data on projects
26
+
constexprconstchar* URL_API_BADGES = "https://api.cubicstudios.xyz/avalanche/v1/profiles"; // URL to remote JSON file containing all data on profiles
27
+
constexprconstchar* URL_API_LEVELS = "https://api.cubicstudios.xyz/avalanche/v1/projects"; // URL to remote JSON file containing all data on projects
28
28
29
29
constexprconstchar* und = "undefined";
30
30
constexprconstchar* err = "404: Not Found";
31
31
32
+
// Profile class
32
33
classProfile {
33
34
public:
34
35
enumclassBadge {
35
-
NONE, // No badge
36
-
CUBIC, // Staff of Cubic Studios
37
-
DIRECTOR, // Leads the whole team
38
-
MANAGER, // Helps keep things in check
39
-
MEMBER, // Participates in projects
36
+
NONE, // No badge
37
+
CUBIC, // Staff of Cubic Studios
38
+
DIRECTOR, // Leads the whole team
39
+
MANAGER, // Helps keep things in check
40
+
MEMBER, // Participates in projects
40
41
COLLABORATOR, // Non-members of the team who also worked on a project
41
42
};
42
43
43
44
static std::map<std::string, Badge> profileBadgeEnum; // Convert a string to a Badge enum
44
45
45
46
std::string name; // Official pseudonym of the member
46
-
Badge badge; // ID of the member's badge
47
+
Badge badge; // ID of the member's badge
47
48
48
-
Profile(std::string n = "Name", Badge b = Badge::NONE) : name(n), badge(b) {};
49
+
Profile(
50
+
std::string n = "Name",
51
+
Badge b = Badge::NONE
52
+
) : name(n), badge(b) {};
49
53
};
50
54
55
+
// Avalanche project class
51
56
classProject {
52
57
public:
53
58
enumclassType {
54
-
NONE, // Not a project
55
-
SOLO, // A project that a member worked on by themself
56
-
TEAM, // A project that members of the team worked on
59
+
NONE, // Not a project
60
+
SOLO, // A project that a member worked on by themself
61
+
TEAM, // A project that members of the team worked on
57
62
COLLAB, // A project that involves the work of Collaborators
58
-
EVENT, // A project that resulted from a public or private event hosted by Avalanche
63
+
EVENT, // A project that resulted from a public or private event hosted by Avalanche
59
64
};
60
65
61
-
static std::map<std::string, Type> projectTypeEnum; // Convert a string to a Type enum
66
+
// Link to the main team project
67
+
classLinkToMain {
68
+
public:
69
+
bool enabled; // If the link is enabled
70
+
int level_id; // ID of the in-game level for the linked project
71
+
};
62
72
63
-
std::string name; // Official name of the level
64
-
std::string host; // Team member that hosted the level
65
-
std::string showcase_url; // Tiny YouTube video URL of the full showcase of the level
66
-
Type type; // Type of project the level is featured as
67
-
bool fame; // If the level will be highlighted on lists
73
+
static std::map<std::string, Type> projectTypeEnum; // Convert a string to a Type enum
68
74
69
-
Project(std::string n = "Name", std::string h = "Host", std::string su = URL_AVALANCHE, Type t = Type::NONE, bool f = false) : name(n), host(h), showcase_url(su), type(t), fame(f) {};
75
+
std::string name; // Official name of the level
76
+
std::string host; // Team member that hosted the level
77
+
std::string showcase; // Tiny YouTube video URL of the full showcase of the level
78
+
std::string thumbnail; // Imgur URL for a custom thumbnail for the level
79
+
Type type; // Type of project the level is featured as
80
+
bool fame; // If the level will be highlighted on lists
81
+
82
+
LinkToMain link_to_main; // Optional link to the main team project
0 commit comments