Universe.ClientStack.ThrottleRates.ThrottleRates C# (CSharp) Method

ThrottleRates() public method

Default constructor
public ThrottleRates ( IConfigSource config ) : System
config IConfigSource Config source to load defaults from
return System
        public ThrottleRates(IConfigSource config)
        {
            try
            {
                IConfig throttleConfig = config.Configs["ClientStack.LindenUDP"];

                Resend = throttleConfig.GetInt("resend_default", 12500);
                Land = throttleConfig.GetInt("land_default", 1000);
                Wind = throttleConfig.GetInt("wind_default", 1000);
                Cloud = throttleConfig.GetInt("cloud_default", 1000);
                Task = throttleConfig.GetInt("task_default", 1000);
                Texture = throttleConfig.GetInt("texture_default", 1000);
                Asset = throttleConfig.GetInt("asset_default", 1000);
                State = throttleConfig.GetInt("state_default", 1000);
                AvatarInfo = throttleConfig.GetInt("avatar_info_default", 1000);

                ResendLimit = throttleConfig.GetInt("resend_limit", 18750);
                LandLimit = throttleConfig.GetInt("land_limit", 29750);
                WindLimit = throttleConfig.GetInt("wind_limit", 18750);
                CloudLimit = throttleConfig.GetInt("cloud_limit", 18750);
                TaskLimit = throttleConfig.GetInt("task_limit", 18750);
                TextureLimit = throttleConfig.GetInt("texture_limit", 55750);
                AssetLimit = throttleConfig.GetInt("asset_limit", 27500);
                StateLimit = throttleConfig.GetInt("state_limit", 37000);
                AvatarInfoLimit = throttleConfig.GetInt("avatar_info_limit", 37000);

                Total = throttleConfig.GetInt("client_throttle_max_bps", 0);
                TotalLimit = Total;
            }
            catch (Exception)
            {
            }
        }