C# Class fCraft.MapConversion.MapXMap

Inheritance: IMapConverter
Afficher le fichier Open project: fragmer/fCraft Class Usage Examples

Méthodes publiques

Méthode Description
Claims ( string path ) : bool

Allows validating the map format while using minimal resources.

ClaimsName ( string fileName ) : bool

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

Load ( string path ) : Map

Fully loads map from specified location.

LoadHeader ( string path ) : Map

Attempts to load map dimensions from specified location.

Save ( Map mapToSave, string path ) : bool

Saves given map at the given location.

Private Methods

Méthode Description
LoadInternal ( Stream stream, bool readLayers ) : Map
ReadString ( BinaryReader reader ) : string
WriteString ( BinaryWriter writer, string str ) : void

Method Details

Claims() public méthode

Allows validating the map format while using minimal resources.
public Claims ( string path ) : bool
path string
Résultat bool

ClaimsName() public méthode

Returns true if the filename (or directory name) matches this format's expectations.
public ClaimsName ( string fileName ) : bool
fileName string
Résultat bool

Load() public méthode

Fully loads map from specified location.
public Load ( string path ) : Map
path string
Résultat Map

LoadHeader() public méthode

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

Save() public méthode

Saves given map at the given location.
public Save ( Map mapToSave, string path ) : bool
mapToSave Map
path string
Résultat bool