C# Класс fCraft.MapConversion.MapXMap

Наследование: IMapConverter
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
LoadInternal ( Stream stream, bool readLayers ) : Map
ReadString ( BinaryReader reader ) : string
WriteString ( BinaryWriter writer, string str ) : void

Описание методов

Claims() публичный Метод

Allows validating the map format while using minimal resources.
public Claims ( string path ) : bool
path string
Результат bool

ClaimsName() публичный Метод

Returns true if the filename (or directory name) matches this format's expectations.
public ClaimsName ( string fileName ) : bool
fileName string
Результат bool

Load() публичный Метод

Fully loads map from specified location.
public Load ( string path ) : Map
path string
Результат Map

LoadHeader() публичный Метод

Attempts to load map dimensions from specified location.
public LoadHeader ( string path ) : Map
path string
Результат Map

Save() публичный Метод

Saves given map at the given location.
public Save ( Map mapToSave, string path ) : bool
mapToSave Map
path string
Результат bool