Пример #1
0
 public IdleManager(Ship me, NotificationManager notificationManager)
 {
     _lastActive = DateTime.UtcNow;
     _notificationManager = notificationManager;
     _me = me;
     Idle = false;
 }
Пример #2
0
        public User(string connectionID, Ship ship, RegisteredClient rc)
        {
            RegistrationTicket = rc;
            ConnectionID = connectionID;
            MyShip = ship;
            ReadyForPayloads = false;
            Viewport = new Size(0, 0); // Initialize the viewport to 0 by 0
            RemoteControllers = new List<User>();
            NotificationManager = new NotificationManager();
            IdleManager = new IdleManager(ship, NotificationManager);
            Connected = true;

            if (ship != null)
            {
                ship.Host = this;
            }
        }