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

GetLimit() public method

public GetLimit ( ThrottleOutPacketType type ) : int
type ThrottleOutPacketType
return int
        public int GetLimit(ThrottleOutPacketType type)
        {
            switch (type)
            {
                case ThrottleOutPacketType.Resend:
                    return ResendLimit;
                case ThrottleOutPacketType.Land:
                    return LandLimit;
                case ThrottleOutPacketType.Wind:
                    return WindLimit;
                case ThrottleOutPacketType.Cloud:
                    return CloudLimit;
                case ThrottleOutPacketType.Task:
                    return TaskLimit;
                case ThrottleOutPacketType.Texture:
                    return TextureLimit;
                case ThrottleOutPacketType.Asset:
                    return AssetLimit;
                case ThrottleOutPacketType.State:
                    return StateLimit;
                case ThrottleOutPacketType.AvatarInfo:
                    return AvatarInfoLimit;
                default:
                    return 0;
            }
        }
    }