Skip to Main Content

BTD_Mod_Helper​.Api​.Data​.JsonResource_T_


BloonsTD6 Mod Helper

BTD_Mod_Helper.Api.Data

JsonResource Class

An embedded JSON resource belonging to mod T.

public class JsonResource<T> : BTD_Mod_Helper.Api.Data.Resource
    where T : BTD_Mod_Helper.BloonsMod

Type parameters

T

Inheritance System.ObjectResource  JsonResource

Constructors

JsonResource(string) Constructor

An embedded JSON resource belonging to mod T.

public JsonResource(string name);

Parameters

name System.String

Properties

JsonResource.Json Property

The parsed Newtonsoft.Json.Linq.JObject contents of this resource.

public virtual JObject Json { get; }

Property Value

Newtonsoft.Json.Linq.JObject

Operators

JsonResource.implicit operator JObject(JsonResource) Operator

Implicit conversion to Newtonsoft.Json.Linq.JObject.

public static JObject implicit operator JObject(BTD_Mod_Helper.Api.Data.JsonResource<T> resource);

Parameters

resource BTD_Mod_Helper.Api.Data.JsonResource<T>

Returns

Newtonsoft.Json.Linq.JObject

JsonResource.implicit operator string(JsonResource) Operator

Implicit conversion to the resource's name

public static string implicit operator string(BTD_Mod_Helper.Api.Data.JsonResource<T> resource);

Parameters

resource BTD_Mod_Helper.Api.Data.JsonResource<T>

Returns

System.String