NbtReader

Reads NBT formatted data from a stream.

Inheritance Hierarchy


Namespace: Beaker.OpenCube.Nbt
Assembly: Beaker.OpenCube (in Beaker.OpenCube.dll)

Methods

Name Description
S Deserialize Deserializes the NBT file from the given stream to a NbtDictionary

Remarks

Usually you don't have to create an instance of this class. You can use the static Deserialize method to deserialze the data in a stream with NBT data.
Because the returned NbtDictionary inherits from DynamicObject, the dynamic keyword can be used for easy access of the value in the dictionary.

Examples

Typed:
    NbtDictionary dict = NbtReader.Deserialize( fileStream);
    string name = (string)dict["name"];

Dynamic:
    dynamic dict = NbtReader.Deserialize( fileStream );
    string name = dict.name;

Last edited Feb 8, 2013 at 7:07 PM by Beaker73, version 4

Comments

No comments yet.