示例#1
0
        public static void RegisterUser(Session session, MatchingRole role)
        {
            if (FindUser(session.RiotUser.Id) != null)
            {
                return;
            }

            MatchingUser matchingUser = new MatchingUser(session.RiotUser.Id, role);

            lock (mSync)
            {
                mUsers.Add(matchingUser);
                mRoles.Add(role);
            }
        }
示例#2
0
 public MatchingUser(String summonerId, MatchingRole role)
 {
     SummonerId = summonerId;
     Role       = role;
 }