C# Class winmaped2.InputOutput

Mostrar archivo Open project: Bananattack/verge3 Class Usage Examples

Public Methods

Method Description
DecompressData16 ( ushort compressed ) : ushort[]

16-bit RLE decompression

DecompressData8 ( byte compressed ) : byte[]

8-bit RLE decompression

ReadCHR ( FileInfo fi, MapChr chr ) : int

loads the data from 'fi' into 'chr'.

ReadMap ( string filename ) : Map
ReadMap2 ( FileInfo fi ) : Map

ReadMap3 ( FileInfo fi ) : Map
ReadVsp ( string filename ) : Vsp24
ReadVsp24 ( FileInfo fi ) : Vsp24
ReadVsp8 ( FileInfo fi ) : Vsp24

reads data from file into vsp data structure

WriteMap ( FileInfo fi, Map map ) : int
WriteVsp ( FileInfo fi, Vsp24 vsp ) : int

Method Details

DecompressData16() public static method

16-bit RLE decompression
public static DecompressData16 ( ushort compressed ) : ushort[]
compressed ushort
return ushort[]

DecompressData8() public static method

8-bit RLE decompression
public static DecompressData8 ( byte compressed ) : byte[]
compressed byte
return byte[]

ReadCHR() public static method

loads the data from 'fi' into 'chr'.
public static ReadCHR ( FileInfo fi, MapChr chr ) : int
fi System.IO.FileInfo
chr MapChr
return int

ReadMap() public static method

public static ReadMap ( string filename ) : Map
filename string
return Map

ReadMap2() public static method

public static ReadMap2 ( FileInfo fi ) : Map
fi System.IO.FileInfo
return Map

ReadMap3() public static method

public static ReadMap3 ( FileInfo fi ) : Map
fi System.IO.FileInfo
return Map

ReadVsp() public static method

public static ReadVsp ( string filename ) : Vsp24
filename string
return Vsp24

ReadVsp24() public static method

public static ReadVsp24 ( FileInfo fi ) : Vsp24
fi System.IO.FileInfo
return Vsp24

ReadVsp8() public static method

reads data from file into vsp data structure
public static ReadVsp8 ( FileInfo fi ) : Vsp24
fi System.IO.FileInfo FileInfo of the file to be opened
return Vsp24

WriteMap() public static method

public static WriteMap ( FileInfo fi, Map map ) : int
fi System.IO.FileInfo
map Map
return int

WriteVsp() public static method

public static WriteVsp ( FileInfo fi, Vsp24 vsp ) : int
fi FileInfo
vsp Vsp24
return int