コード例 #1
0
        private void ConnectRoom(ChatRoom room)
        {
            room.Members.LockReading(delegate()
            {
                foreach (ulong key in room.Members)
                {
                    List <ClientInfo> clients = Core.Locations.GetClients(key);

                    if (clients.Count == 0)
                    {
                        Core.Locations.Research(key);
                    }
                    else
                    {
                        foreach (ClientInfo info in clients)
                        {
                            Network.RudpControl.Connect(info.Data);
                        }
                    }

                    if (Trust != null && Trust.GetTrust(key) == null)
                    {
                        Trust.Research(key, 0, false);
                    }
                }
            });
        }