コード例 #1
0
        /// <summary>
        /// Creates a new instance of the GameConfiguration object.
        /// </summary>
        /// <param name="registration">An object that provides functions to modify the update and push rates.</param>
        public GameConfiguration(GameRegistration registration)
        {
            _updateRateSetter = registration.UpdateRateSetter;
            _pushRateSetter = registration.PushRateSetter;

            UpdateRate = DefaultUpdateRate;
            PushRate = DefaultPushRate;
        }
コード例 #2
0
        /// <summary>
        /// Creates a new instance of the GameConfiguration object.
        /// </summary>
        /// <param name="registration">An object that provides functions to modify the update and push rates.</param>
        public GameConfiguration(GameRegistration registration)
        {
            _updateRateSetter = registration.UpdateRateSetter;
            _pushRateSetter   = registration.PushRateSetter;

            UpdateRate = DefaultUpdateRate;
            PushRate   = DefaultPushRate;
        }