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

GetRate() public method

public GetRate ( ThrottleOutPacketType type ) : int
type ThrottleOutPacketType
return int
        public int GetRate(ThrottleOutPacketType type)
        {
            switch (type)
            {
                case ThrottleOutPacketType.Resend:
                    return Resend;
                case ThrottleOutPacketType.Land:
                    return Land;
                case ThrottleOutPacketType.Wind:
                    return Wind;
                case ThrottleOutPacketType.Cloud:
                    return Cloud;
                case ThrottleOutPacketType.Task:
                    return Task;
                case ThrottleOutPacketType.Texture:
                    return Texture;
                case ThrottleOutPacketType.Asset:
                    return Asset;
                case ThrottleOutPacketType.State:
                    return State;
                case ThrottleOutPacketType.AvatarInfo:
                    return AvatarInfo;
                default:
                    return 0;
            }
        }