mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-08-01 01:38:39 +00:00
parent
db4a69ea73
commit
9d3bc7b31a
1 changed files with 3 additions and 0 deletions
|
@ -260,6 +260,8 @@ public class Slot
|
|||
Review? yourReview = null
|
||||
)
|
||||
{
|
||||
int playerCount = RoomHelper.Rooms.Count(r => r.Slot.SlotType == SlotType.User && r.Slot.SlotId == this.SlotId);
|
||||
|
||||
string slotData = LbpSerializer.StringElement("name", this.Name) +
|
||||
LbpSerializer.StringElement("id", this.SlotId) +
|
||||
LbpSerializer.StringElement("game", (int)this.GameVersion) +
|
||||
|
@ -304,6 +306,7 @@ public class Slot
|
|||
yourReview?.Serialize("yourReview") +
|
||||
LbpSerializer.StringElement("reviewsEnabled", ServerSettings.Instance.LevelReviewsEnabled) +
|
||||
LbpSerializer.StringElement("commentsEnabled", ServerSettings.Instance.LevelCommentsEnabled) +
|
||||
LbpSerializer.StringElement("playerCount", playerCount) +
|
||||
LbpSerializer.StringElement("reviewCount", this.ReviewCount);
|
||||
|
||||
int yourPlays;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue