Skip to content

Commit

Permalink
add isPSN extension to platform enum
Browse files Browse the repository at this point in the history
  • Loading branch information
Zaprit committed Oct 12, 2024
1 parent 746bce7 commit ce42909
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions ProjectLighthouse/Types/Users/Platform.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
namespace LBPUnion.ProjectLighthouse.Types.Users;

public static class PlatformExtensions
{

public static bool IsPSN(this Platform platform)
{
return platform == Platform.PS3 || platform == Platform.PSP || platform == Platform.Vita;
}
}

public enum Platform
{
PS3 = 0,
Expand Down

0 comments on commit ce42909

Please sign in to comment.