Skip to content

Commit

Permalink
Send locked status in minimal response
Browse files Browse the repository at this point in the history
  • Loading branch information
Beyley committed Jan 27, 2024
1 parent a44bf98 commit 55e92d3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Refresh.GameServer/Types/Levels/GameMinimalLevelResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ public class GameMinimalLevelResponse : IDataConvertableFrom<GameMinimalLevelRes

[XmlElement("playerCount")] public int PlayerCount { get; set; }


[XmlElement("initiallyLocked")] public bool IsLocked { get; set; }

private GameMinimalLevelResponse() {}

public static GameMinimalLevelResponse? FromOldWithExtraData(GameLevelResponse? old, MatchService matchService, GameDatabaseContext database, IDataStore dataStore, TokenGame game)
Expand Down Expand Up @@ -94,6 +95,7 @@ private GameMinimalLevelResponse() {}
YourStarRating = level.YourStarRating,
YourRating = level.YourRating,
AverageStarRating = level.AverageStarRating,
IsLocked = level.IsLocked,
};
}

Expand Down

0 comments on commit 55e92d3

Please sign in to comment.