JsonContent ClassDelta Engine Documentation
Content data for Newtonsoft Json. View code on GitHub
Inheritance Hierarchy

System Object
  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

public class JsonContent : ContentData

The JsonContent type exposes the following members.

Constructors

  NameDescription
Protected methodJsonContent
Initializes a new instance of the JsonContent class
Top
Methods

  NameDescription
Protected methodCreateDefault (Inherited from ContentData.)
Public methodDispose (Inherited from ContentData.)
Protected methodDisposeData (Overrides ContentData DisposeData .)
Public methodInternalCreateDefault (Inherited from ContentData.)
Protected methodLoadData (Overrides ContentData LoadData(Stream).)
Public methodToString (Inherited from ContentData.)
Top
Fields

  NameDescription
Protected fieldContentChanged (Inherited from ContentData.)
Top
Properties

  NameDescription
Protected propertyAllowCreationIfContentNotFound (Inherited from ContentData.)
Public propertyData
Public propertyIsDisposed (Inherited from ContentData.)
Public propertyMetaData (Inherited from ContentData.)
Public propertyName (Inherited from ContentData.)
Top
Remarks

Tests: DeltaEngine.Content.Json.Tests.JsonContentTests
Examples

1 unit tests call DeltaEngine.Content.Json.JsonContent
[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