Class JsonUtils
Inheritance
System.Object
JsonUtils
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: SlugBase.dll
Syntax
public static class JsonUtils
Methods
ToBool(JsonAny)
Convert to System.Boolean.
Declaration
public static bool ToBool(JsonAny json)
Parameters
Returns
Type |
Description |
System.Boolean |
|
ToColor(JsonAny)
Convert to UnityEngine.Color.
Declaration
public static Color ToColor(JsonAny json)
Parameters
Returns
Type |
Description |
UnityEngine.Color |
|
ToDouble(JsonAny)
Convert to System.Double.
Declaration
public static double ToDouble(JsonAny json)
Parameters
Returns
Type |
Description |
System.Double |
|
ToDoubles(JsonAny)
Convert list to System.Double[].
Declaration
public static double[] ToDoubles(JsonAny json)
Parameters
Returns
Type |
Description |
System.Double[] |
|
ToEnum<T>(JsonAny)
Convert to System.Enum value.
Declaration
public static T ToEnum<T>(JsonAny json)
where T : struct
Parameters
Returns
Type Parameters
ToExtEnum<T>(JsonAny)
Convert to ExtEnum`1 value.
Declaration
public static T ToExtEnum<T>(JsonAny json)
where T : ExtEnum<T>
Parameters
Returns
Type Parameters
ToFloat(JsonAny)
Convert to System.Single.
Declaration
public static float ToFloat(JsonAny json)
Parameters
Returns
Type |
Description |
System.Single |
|
ToFloats(JsonAny)
Convert list to System.Single[].
Declaration
public static float[] ToFloats(JsonAny json)
Parameters
Returns
Type |
Description |
System.Single[] |
|
ToInt(JsonAny)
Declaration
public static int ToInt(JsonAny json)
Parameters
Returns
Type |
Description |
System.Int32 |
|
ToInts(JsonAny)
Convert list to System.Int32[].
Declaration
public static int[] ToInts(JsonAny json)
Parameters
Returns
Type |
Description |
System.Int32[] |
|
ToLong(JsonAny)
Declaration
public static long ToLong(JsonAny json)
Parameters
Returns
Type |
Description |
System.Int64 |
|
ToLongs(JsonAny)
Convert list to System.Int64[].
Declaration
public static long[] ToLongs(JsonAny json)
Parameters
Returns
Type |
Description |
System.Int64[] |
|
ToPlayerColor(JsonAny)
Declaration
public static PlayerColor ToPlayerColor(JsonAny json)
Parameters
Returns
ToSlugcatName(JsonAny)
Convert to SlugcatStats.Name.
Declaration
public static SlugcatStats.Name ToSlugcatName(JsonAny json)
Parameters
Returns
Type |
Description |
SlugcatStats.Name |
|
ToSlugcatNames(JsonAny)
Convert list to SlugcatStats.Name[].
Declaration
public static SlugcatStats.Name[] ToSlugcatNames(JsonAny json)
Parameters
Returns
Type |
Description |
SlugcatStats.Name[] |
|
ToString(JsonAny)
Convert to System.String.
Declaration
public static string ToString(JsonAny json)
Parameters
Returns
Type |
Description |
System.String |
|
ToStrings(JsonAny)
Convert list to System.String[].
Declaration
public static string[] ToStrings(JsonAny json)
Parameters
Returns
Type |
Description |
System.String[] |
|
ToVector2(JsonAny)
Convert to UnityEngine.Vector2
Declaration
public static Vector2 ToVector2(JsonAny json)
Parameters
Returns
Type |
Description |
UnityEngine.Vector2 |
|