Skip to content

Commit

Permalink
Fix for C# 6
Browse files Browse the repository at this point in the history
  • Loading branch information
SkyTech6 committed Nov 21, 2024
1 parent 0c81038 commit f50dac3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
1 change: 1 addition & 0 deletions CrimsonBanned.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
<PackageReference Include="VRising.VampireCommandFramework" Version="0.9.0" />
</ItemGroup>
<ItemGroup>
<None Include =".github\FUNDING.yml" />
<None Include=".github\workflows\build.yml" />
</ItemGroup>
<ItemGroup>
Expand Down
11 changes: 6 additions & 5 deletions Services/PlayerService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,17 @@ internal class PlayerService

static readonly WaitForSeconds Delay = new(60);

static readonly ComponentType[] UserComponent =
[
static readonly ComponentType[] UserComponent = new ComponentType[]
{
ComponentType.ReadOnly(Il2CppType.Of<User>()),
];
};

static EntityQuery UserQuery;

public static readonly Dictionary<string, PlayerInfo> PlayerCache = [];
public static readonly Dictionary<string, PlayerInfo> PlayerCache = new Dictionary<string, PlayerInfo>();

public static readonly Dictionary<string, PlayerInfo> OnlineCache = [];
public static readonly Dictionary<string, PlayerInfo> OnlineCache = new Dictionary<string, PlayerInfo>();

public class PlayerInfo(Entity userEntity = default, Entity charEntity = default, User user = default)

Check failure on line 29 in Services/PlayerService.cs

View workflow job for this annotation

GitHub Actions / build

{ expected

Check failure on line 29 in Services/PlayerService.cs

View workflow job for this annotation

GitHub Actions / build

} expected

Check failure on line 29 in Services/PlayerService.cs

View workflow job for this annotation

GitHub Actions / build

Tuple must contain at least two elements.

Check failure on line 29 in Services/PlayerService.cs

View workflow job for this annotation

GitHub Actions / build

) expected

Check failure on line 29 in Services/PlayerService.cs

View workflow job for this annotation

GitHub Actions / build

Invalid token '=' in class, record, struct, or interface member declaration

Check failure on line 29 in Services/PlayerService.cs

View workflow job for this annotation

GitHub Actions / build

Cannot use more than one type in a for, using, fixed, or declaration statement

Check failure on line 29 in Services/PlayerService.cs

View workflow job for this annotation

GitHub Actions / build

; expected

Check failure on line 29 in Services/PlayerService.cs

View workflow job for this annotation

GitHub Actions / build

Invalid token '=' in class, record, struct, or interface member declaration
{
public User User { get; set; } = user;
Expand Down

0 comments on commit f50dac3

Please sign in to comment.