Skip to content

Commit fb72498

Browse files
committed
Enum Stuff
1 parent 5d34c81 commit fb72498

File tree

6 files changed

+55
-4
lines changed

6 files changed

+55
-4
lines changed

docs/_sidebar.md

+10-2
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,16 @@
2222

2323
**Topics**
2424

25+
- [Algorithms]()
26+
- [Base64](/topics/Algorithms/base64.md)
27+
2528
- [Client]()
2629
- [Tags](/Topics/client/tags)
2730
- [Cocos2d-x](/Topics/client/cocos2d-x)
28-
- [Algorithms]()
29-
- [Base64](/topics/Algorithms/base64.md)
31+
32+
- [Enums](/enums/enums.md)
33+
- [Client](/enums/enums.md)
34+
- [GJHttpType](/enums/client/GJHttpType.md)
35+
- [Server](/enums/enums.md)
36+
- [AccountError](/enums/server/AccountError.md)
37+
- [BackupAccountError](/enums/server/BackupAccountError.md)
File renamed without changes.

docs/enums/enums.md

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Enums
2+
3+
> Geometry Dash utilises a lot of enums to handle various aspects of the game. The usage can vary from client side to server side or even both
4+
5+
| Enum | Type | Use |
6+
| :-------------------------------------------------------- | :------- | :------------------------------------------------------------------------------- |
7+
| [AccountError](/enums/server/AccountError.md) | `Server` | Handling errors with account creation |
8+
| [BackupAccountError](/enums/server/BackupAccountError.md) | `Server` | Handling Errors with Backing up and Syncing account data from the GD Data server |
9+
| [GJHttpType](/enums/client/GJHttpType.md) | `Client` | Handling which function to call after sending a request to the GD Servers |

docs/enums/server/AccountError.md

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Account Error
2+
3+
> AccountError is an enum used to handle errors generated within the account creation system
4+
5+
```cpp
6+
enum AccountError
7+
{
8+
kAccountErrorUnknown = 0,
9+
kAccountErrorGeneric = -1,
10+
kAccountErrorTakenUsername = -2,
11+
kAccountErrorTakenEmail = -3,
12+
kAccountErrorInvalidUsername = -4,
13+
kAccountErrorInvalidPassword = -5,
14+
kAccountErrorInvalidEmail = -6,
15+
kAccountErrorPasswordsDontMatch = -7,
16+
kAccountErrorPasswordTooShort = -8,
17+
kAccountErrorUsernameTooShort = -9,
18+
kAccountErrorLinkedToDifferentAccount = -10,
19+
kAccountErrorAccountDisabled = -12,
20+
kAccountErrorLinkedToDifferentSteamAccount = -13,
21+
kAccountErrorEmailsDontMatch = -99
22+
};
23+
```
+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Backup Account Error
2+
3+
> BackupAccountError is an enum used for handling for handling errors with the account backup system
4+
5+
```cpp
6+
enum BackupAccountError
7+
{
8+
kBackupAccountErrorUnknown = 0,
9+
kBackupAccountErrorGeneric = -1,
10+
kBackupAccountErrorLoginFailed = -2
11+
};
12+
```

scripts/send_request.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -64,5 +64,4 @@ function robtop_encode(key, str)
6464
function robtop_decode(key, str)
6565
{
6666
return xor_cycle(key, new Buffer.from(str, "base64").toString("ASCII"))
67-
}
68-
// GJP key: 37526
67+
}

0 commit comments

Comments
 (0)