Table of Contents

Class JsonIntensityRange

Namespace
Moongate.UO.Data.Json.Weather
Assembly
Moongate.UO.Data.dll

Represents JsonIntensityRange.

public class JsonIntensityRange
Inheritance
JsonIntensityRange
Inherited Members

Properties

Average

Gets the average intensity value

public double Average { get; }

Property Value

double

IsZero

Checks if the range represents no intensity (both min and max are 0)

[JsonIgnore]
public bool IsZero { get; }

Property Value

bool

Max

public int Max { get; set; }

Property Value

int

Min

public int Min { get; set; }

Property Value

int

Methods

GetRandomValue(Random?)

Gets a random value within the intensity range

public int GetRandomValue(Random? random = null)

Parameters

random Random

Random instance (optional)

Returns

int

Random intensity value between min and max

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.