Content data for Newtonsoft Json.
View code on GitHub
Inheritance Hierarchy
DeltaEngine.Content ContentData
DeltaEngine.Content.Json JsonContent
Namespace: DeltaEngine.Content.Json
Assembly: DeltaEngine.Content.Json (in DeltaEngine.Content.Json.dll) Version: 1.1.1.0 (1.1.1)
Syntax
The JsonContent type exposes the following members.
Constructors
Name | Description | |
---|---|---|
![]() | JsonContent | Initializes a new instance of the JsonContent class |
Methods
Name | Description | |
---|---|---|
![]() | CreateDefault | (Inherited from ContentData.) |
![]() | Dispose | (Inherited from ContentData.) |
![]() | DisposeData | (Overrides ContentData DisposeData .) |
![]() | InternalCreateDefault | (Inherited from ContentData.) |
![]() | LoadData | (Overrides ContentData LoadData(Stream).) |
![]() | ToString | (Inherited from ContentData.) |
Fields
Name | Description | |
---|---|---|
![]() | ContentChanged | (Inherited from ContentData.) |
Properties
Name | Description | |
---|---|---|
![]() | AllowCreationIfContentNotFound | (Inherited from ContentData.) |
![]() | Data | |
![]() | IsDisposed | (Inherited from ContentData.) |
![]() | MetaData | (Inherited from ContentData.) |
![]() | Name | (Inherited from ContentData.) |
Remarks
Examples
[Test, Category("Slow"), Ignore] public void LoadJsonContentFromFile() { var json = ContentLoader.Load<JsonContent>("Level"); Assert.False(json.IsDisposed); Assert.AreEqual(9, json.Data.NumberOfNodes); Assert.AreEqual(48, json.Data.Get<int>("height")); }
See Also