Skip to content

Commit

Permalink
Updates Syntax for Compatability
Browse files Browse the repository at this point in the history
  • Loading branch information
SkyTech6 committed Nov 21, 2024
1 parent 884cca8 commit 0ec365f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v2
with:
dotnet-version: 6.0.x
dotnet-version: |
6.0.x
8.0.x
- name: Checkout
uses: actions/checkout@v3
Expand Down
11 changes: 5 additions & 6 deletions Services/PlayerService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,15 @@ 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> OnlineCache = [];
public static readonly Dictionary<string, PlayerInfo> PlayerCache = new();
public static readonly Dictionary<string, PlayerInfo> OnlineCache = new();

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

0 comments on commit 0ec365f

Please sign in to comment.