C# Class fCraft.MapConversion.MapFCMv4

Next file format that fCraft shall use.
Inheritance: IMapConverter
Exibir arquivo Open project: GlennMR/800craft

Public Methods

Method Description
Claims ( [ path ) : bool

Allows validating the map format while using minimal resources.

ClaimsName ( [ fileName ) : bool

Returns true if the filename (or directory name) matches this format's expectations.

Load ( [ path ) : Map

Fully loads map from specified location.

LoadHeader ( string path ) : Map

Attempts to load map dimensions from specified location.

Save ( [ map, [ path ) : bool

Saves given map at the given location.

Private Methods

Method Description
LoadInternal ( [ stream, bool readLayers ) : Map
ReadString ( [ reader ) : string
WriteString ( [ writer, [ str ) : void

Method Details

Claims() public method

Allows validating the map format while using minimal resources.
public Claims ( [ path ) : bool
path [
return bool

ClaimsName() public method

Returns true if the filename (or directory name) matches this format's expectations.
public ClaimsName ( [ fileName ) : bool
fileName [
return bool

Load() public method

Fully loads map from specified location.
public Load ( [ path ) : Map
path [
return Map

LoadHeader() public method

Attempts to load map dimensions from specified location.
public LoadHeader ( string path ) : Map
path string
return Map

Save() public method

Saves given map at the given location.
public Save ( [ map, [ path ) : bool
map [
path [
return bool