C# Class fCraft.Drawing.BlockDBDrawOperation

Draw operation that applies changes from a given BlockDBEntry array.
Inheritance: DrawOpWithBrush
Show file Open project: GlennMR/800craft Class Usage Examples

Public Methods

Method Description
BlockDBDrawOperation ( Player player, string commandName, string paramDescription, int expectedMarks ) : System
DrawBatch ( int maxBlocksToDraw ) : int
Prepare ( Vector3I marks ) : bool
Prepare ( Vector3I marks, BlockDBEntry changesToApply ) : bool
ReadParams ( Command cmd ) : bool

Protected Methods

Method Description
NextBlock ( ) : Block

Private Methods

Method Description
FindBounds ( ) : BoundingBox

Method Details

BlockDBDrawOperation() public method

public BlockDBDrawOperation ( Player player, string commandName, string paramDescription, int expectedMarks ) : System
player Player
commandName string
paramDescription string
expectedMarks int
return System

DrawBatch() public method

public DrawBatch ( int maxBlocksToDraw ) : int
maxBlocksToDraw int
return int

NextBlock() protected method

protected NextBlock ( ) : Block
return Block

Prepare() public method

public Prepare ( Vector3I marks ) : bool
marks Vector3I
return bool

Prepare() public method

public Prepare ( Vector3I marks, BlockDBEntry changesToApply ) : bool
marks Vector3I
changesToApply BlockDBEntry
return bool

ReadParams() public method

public ReadParams ( Command cmd ) : bool
cmd Command
return bool