C# Class fCraft.Level

Mostrar archivo Open project: fragmer/fCraft

Public Methods

Method Description
IsValidDimension ( uint dimension ) : bool
Load ( string fileName ) : Level

Private Methods

Method Description
ReadHeader ( FileStream fs ) : bool
ReadLengthPrefixedString ( BinaryReader reader ) : string
ReadLevel ( FileStream fs ) : void
Save ( string fileName ) : bool
WriteHeader ( FileStream fs ) : void
WriteLengthPrefixedString ( BinaryWriter writer, string s ) : void
WriteLevel ( FileStream fs ) : void

Method Details

IsValidDimension() public static method

public static IsValidDimension ( uint dimension ) : bool
dimension uint
return bool

Load() public static method

public static Load ( string fileName ) : Level
fileName string
return Level