-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor constants in
Refresh.Common
(#628)
- Loading branch information
Showing
10 changed files
with
69 additions
and
55 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
namespace Refresh.Common.Constants; | ||
|
||
public static class SystemUsers | ||
{ | ||
/// <summary> | ||
/// A system user represents a user that doesn't technically exist. (well, it does for now until postgres or something) | ||
/// This can be used for levels belonging to users who have deleted their accounts, or for re-uploads. | ||
/// </summary> | ||
public const char SystemPrefix = '!'; | ||
/// <summary> | ||
/// Reserved for clans. https://github.com/LittleBigRefresh/Refresh/issues/77 | ||
/// </summary> | ||
public const char ClanPrefix = '$'; | ||
|
||
public const string DeletedUserName = "!DeletedUser"; | ||
public const string DeletedUserDescription = "I'm a fake user that represents deleted users for levels."; | ||
|
||
public const string UnknownUserName = "!Unknown"; | ||
public const string UnknownUserDescription = "I'm a fake user that represents a non existent publisher for re-published levels."; | ||
} |
6 changes: 5 additions & 1 deletion
6
...esh.Common/Constants/UgcConstantLimits.cs → Refresh.Common/Constants/UgcLimits.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
namespace Refresh.Common.Constants; | ||
|
||
public static class UgcConstantLimits | ||
public static class UgcLimits | ||
{ | ||
// Object limits | ||
public const int MaximumLevels = 9_999; | ||
|
||
// String limits | ||
public const int TitleLimit = 64; | ||
public const int DescriptionLimit = 512; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters