C# Class Glare.Assets.DataAsset

An asset that can be loaded as binary data, which is then loaded as data.
Inheritance: Asset
Show file Open project: Burton-Radons/Alexandria

Public Methods

Method Description
Browse ( Action progressUpdateCallback = null ) : Control

Browse the contents.

BrowseContents ( Action progressUpdateCallback = null ) : Control

Browse the contents.

DataAsset ( FolderAsset parent, string name, string description = null ) : System

Initialise the data asset.

FillContextMenu ( ContextMenuStrip strip ) : void

Fill out a context menu.

Open ( ) : Stream

Open a stream to the data.

OpenReader ( ) : BinaryReader

Open a binary reader for the stream.

OpenReader ( ByteOrder byteOrder ) : BinaryReader

Open a binary reader for the stream.

Protected Methods

Method Description
Load ( ) : Asset

Load the data.

Method Details

Browse() public method

Browse the contents.
public Browse ( Action progressUpdateCallback = null ) : Control
progressUpdateCallback Action
return System.Windows.Forms.Control

BrowseContents() public method

Browse the contents.
public BrowseContents ( Action progressUpdateCallback = null ) : Control
progressUpdateCallback Action
return System.Windows.Forms.Control

DataAsset() public method

Initialise the data asset.
public DataAsset ( FolderAsset parent, string name, string description = null ) : System
parent FolderAsset
name string
description string
return System

FillContextMenu() public method

Fill out a context menu.
public FillContextMenu ( ContextMenuStrip strip ) : void
strip System.Windows.Forms.ContextMenuStrip
return void

Load() protected method

Load the data.
protected Load ( ) : Asset
return Asset

Open() public abstract method

Open a stream to the data.
public abstract Open ( ) : Stream
return Stream

OpenReader() public method

Open a binary reader for the stream.
public OpenReader ( ) : BinaryReader
return System.IO.BinaryReader

OpenReader() public method

Open a binary reader for the stream.
public OpenReader ( ByteOrder byteOrder ) : BinaryReader
byteOrder ByteOrder
return System.IO.BinaryReader