Skip to content

Commit

Permalink
Merge pull request #352 from Vivelin/release-updates
Browse files Browse the repository at this point in the history
Updating multiplayer version
  • Loading branch information
MattEqualsCoder authored Jun 22, 2023
2 parents 68ea03b + 0b41e06 commit c3543e3
Show file tree
Hide file tree
Showing 6 changed files with 612 additions and 138 deletions.
2 changes: 1 addition & 1 deletion src/Randomizer.Multiplayer.Server/GameManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ private async Task CheckGames()
expiredGuids = await _dbService.DeleteOldGameStates(_databaseExpirationDays);
_logger.LogInformation("Removed {Amount} inactive games(s) from database", expiredGuids.Count);

_logger.LogInformation("Current active games: {GameCount} | Current connected players: {PlayerCount}", MultiplayerGame.GameCount, MultiplayerGame.PlayerCount);
_logger.LogInformation("[{Date}] Current active games: {GameCount} | Current connected players: {PlayerCount}", DateTime.Now, MultiplayerGame.GameCount, MultiplayerGame.PlayerCount);

await Task.Delay(TimeSpan.FromMinutes(_checkFrequencyMinutes));
}
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace Randomizer.Multiplayer.Server.Migrations
{
public partial class DeathLink : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<bool>(
name: "DeathLink",
table: "MultiplayerGameStates",
type: "INTEGER",
nullable: false,
defaultValue: false);
}

protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "DeathLink",
table: "MultiplayerGameStates");
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,9 @@ protected override void BuildModel(ModelBuilder modelBuilder)
b.Property<DateTimeOffset>("CreatedDate")
.HasColumnType("TEXT");

b.Property<bool>("DeathLink")
.HasColumnType("INTEGER");

b.Property<string>("Guid")
.IsRequired()
.HasColumnType("TEXT");
Expand Down
Loading

0 comments on commit c3543e3

Please sign in to comment.