Skip to content

Commit

Permalink
feat: support for 15 players
Browse files Browse the repository at this point in the history
  • Loading branch information
kurokobo committed Jun 16, 2021
1 parent 7b3c7f8 commit 0d4b325
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion AUCapture-WPF/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -677,7 +677,7 @@ private void dispatcherTimer_Tick(object sender, EventArgs e) {
private void TestUsers() {
context.Connected = true;
context.GameState = GameState.TASKS;
var numOfPlayers = 9;
var numOfPlayers = 14;
for (uint i = 0; i < numOfPlayers; i++) context.Players.Add(new Player($"{i}Cool4u", (PlayerColor) (i % 12), true, i % 10, i, 0));

RandomizePlayers();
Expand Down
4 changes: 2 additions & 2 deletions AmongUsCapture/Memory/GameMemReader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ public class GameMemReader {

private LobbyEventArgs latestLobbyEventArgs;

private Dictionary<string, PlayerInfo> newPlayerInfos = new(10); // container for new player infos. Also has capacity 10 already assigned so no internal resizing of the data structure is needed
private Dictionary<string, PlayerInfo> newPlayerInfos = new(15); // container for new player infos. Also has capacity 15 already assigned so no internal resizing of the data structure is needed

public OffsetManager offMan = new(Settings.PersistentSettings.IndexURL);

private Dictionary<string, PlayerInfo> oldPlayerInfos = new(10); // Important: this is making the assumption that player names are unique. They are, but for better tracking of players and to eliminate any ambiguity the keys of this probably need to be the players' network IDs instead
private Dictionary<string, PlayerInfo> oldPlayerInfos = new(15); // Important: this is making the assumption that player names are unique. They are, but for better tracking of players and to eliminate any ambiguity the keys of this probably need to be the players' network IDs instead

private GameState oldState = GameState.UNKNOWN;
private int prevChatBubsVersion;
Expand Down

0 comments on commit 0d4b325

Please sign in to comment.