Example #1
0
 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;
         }
     }
 }
Example #2
0
 public RankedRoomNetPlayer(NetPlayer player, INetRoomPoints roomPoints)
 {
     this.player     = player;
     this.rank       = int.MaxValue;
     this.roomPoints = roomPoints;
 }
Example #3
0
 public UserRoomPoints(Dictionary <string, object> dict, IResourceService resourceService)
 {
     this.user       = new NetPlayer(dict, true, resourceService);
     this.roomPoints = new NetRoomPoints(dict);
 }
Example #4
0
 public NetRoomScore(INetRoomPoints roomPoints, int rank, INetUser player)
 {
     this.rank       = rank;
     this.player     = player;
     this.roomPoints = roomPoints;
 }
Example #5
0
 public UserRoomPoints(INetUser user, INetRoomPoints roomPoints)
 {
     this.user       = user;
     this.roomPoints = roomPoints;
 }