void Mark( Player player, Command command ) {
Position pos = new Position( (short)(player.pos.x / 32), (short)(player.pos.y / 32), (short)(player.pos.h / 32) );
if( player.marksExpected > 0 ) {
player.marks.Push( pos );
player.markCount++;
if( player.markCount >= player.marksExpected ) {
player.selectionCallback( player, player.marks.ToArray(), player.tag );
player.marksExpected = 0;
} else {
player.Message( String.Format( "Block #{0} marked at ({1},{2},{3}). Place mark #{4}.",
player.markCount, pos.x, pos.y, pos.h, player.markCount + 1 ) );
}
} else {
player.Message( "There is currently not draw command to mark for." );
}
}