コード例 #1
0
ファイル: User.cs プロジェクト: AbhiLegend/ShootR
        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;
            }
        }