C# Class GameModeFortress.ChunkDbSqlite

Inheritance: IChunkDb
Mostra file Open project: henon/manic_digger

Public Methods

Method Description
Close ( ) : void
GetChunk ( ulong position ) : byte[]
GetChunks ( IEnumerable chunkpositions ) : IEnumerable
GetGlobalData ( ) : byte[]
Open ( string filename ) : void
SetChunks ( IEnumerable chunks ) : void
SetGlobalData ( byte data ) : void

Private Methods

Method Description
CreateParameter ( string parameterName, DbType dbType, object value, DbCommand command ) : DbParameter
CreateTables ( ) : void
InsertChunk ( ulong position, byte data ) : void

Method Details

Close() public method

public Close ( ) : void
return void

GetChunk() public method

public GetChunk ( ulong position ) : byte[]
position ulong
return byte[]

GetChunks() public method

public GetChunks ( IEnumerable chunkpositions ) : IEnumerable
chunkpositions IEnumerable
return IEnumerable

GetGlobalData() public method

public GetGlobalData ( ) : byte[]
return byte[]

Open() public method

public Open ( string filename ) : void
filename string
return void

SetChunks() public method

public SetChunks ( IEnumerable chunks ) : void
chunks IEnumerable
return void

SetGlobalData() public method

public SetGlobalData ( byte data ) : void
data byte
return void