public RankedRoomNetPlayer(Dictionary <string, object> dict, IResourceService resourceService) { this.player = new NetPlayer(dict, true, resourceService); this.roomPoints = new NetRoomPoints(dict); if (dict.ContainsKey("rank")) { if (!int.TryParse(dict["rank"].ToString(), out rank)) { rank = int.MaxValue; } } }
public RankedRoomNetPlayer(NetPlayer player, INetRoomPoints roomPoints) { this.player = player; this.rank = int.MaxValue; this.roomPoints = roomPoints; }
public UserRoomPoints(Dictionary <string, object> dict, IResourceService resourceService) { this.user = new NetPlayer(dict, true, resourceService); this.roomPoints = new NetRoomPoints(dict); }
public NetRoomScore(INetRoomPoints roomPoints, int rank, INetUser player) { this.rank = rank; this.player = player; this.roomPoints = roomPoints; }
public UserRoomPoints(INetUser user, INetRoomPoints roomPoints) { this.user = user; this.roomPoints = roomPoints; }