MiscExtensions

Functions

Static Functions

GetVector2(JsonElement element)
GetVector3(JsonElement element)
GetVector4(JsonElement element)
GetQuaternion(JsonElement element)
GetColor(JsonElement element)
WriteColor(Utf8JsonWriter writer, string propertyName, Color color)
WriteColorValue(Utf8JsonWriter writer, Color color)
WriteFloatSafe(Utf8JsonWriter writer, string propertyName, float value)
WriteFloatSafe(Utf8JsonWriter writer, float value)
ToIntString(Uuid ID)
SafeName(Type type)
NextFloat(Random random, float minValue, float maxValue)
NextFloat(Random random, float maxValue)
NextWeighted(Random random, ReadOnlySpan> weightToChoice)
NextVector2(Random random, float min, float max)
NextVector3(Random random, Vector3 min, Vector3 max)