Beispiel #1
0
 public NetRoomPlayerRank GetRank(INetRoom room)
 {
     if (!ranks.ContainsKey(room.GetNetRoomId()))
     {
         ranks.Add(room.GetNetRoomId(), new NetRoomPlayerRank(null, resourceService));
     }
     return(ranks[room.GetNetRoomId()]);
 }
Beispiel #2
0
 private void UpdateRanks(INetRoom room, NetRoomPlayerRank rank)
 {
     ranks[room.GetNetRoomId()] = rank;
 }