Skip to content

Commit

Permalink
Send IsSubLevel and IsCopyable in minimal game response.
Browse files Browse the repository at this point in the history
  • Loading branch information
Beyley committed Jan 27, 2024
1 parent 55e92d3 commit a90bf1a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Refresh.GameServer/Types/Levels/GameMinimalLevelResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ public class GameMinimalLevelResponse : IDataConvertableFrom<GameMinimalLevelRes
[XmlElement("playerCount")] public int PlayerCount { get; set; }

[XmlElement("initiallyLocked")] public bool IsLocked { get; set; }
[XmlElement("isSubLevel")] public bool IsSubLevel { get; set; }
[XmlElement("shareable")] public int IsCopyable { get; set; }

private GameMinimalLevelResponse() {}

Expand Down Expand Up @@ -96,6 +98,8 @@ private GameMinimalLevelResponse() {}
YourRating = level.YourRating,
AverageStarRating = level.AverageStarRating,
IsLocked = level.IsLocked,
IsSubLevel = level.IsSubLevel,
IsCopyable = level.IsCopyable,
};
}

Expand Down

0 comments on commit a90bf1a

Please sign in to comment.