fn check_blocks_clearing(stack: &Stack, blocks: &WriteStorage<'_, Block>) -> bool {
	for i in 0..BLOCKS {
		let b = blocks.get(stack.from_i(i)).unwrap();

		if b.state == "CLEAR" {// or garbage clear
			return true;
		}
	}

	return false;
}
// returns true when any block was found that is currently in clear state
returns true when any block was found that is currently in clear state
returns true when any block was found that is currently in clear state
fn check_blocks_clearing(stack: &Stack, blocks: &WriteStorage<'_, Block>) -> bool {
	for i in 0..BLOCKS {
		let b = blocks.get(stack.from_i(i)).unwrap();
		if b.state == "CLEAR" {// or garbage clear
			return true;
		}
	}
	return false;
}
fn check_blocks_clearing ( stack : & Stack , blocks : & WriteStorage < ' _ , Block > ) -> bool { for i in 0 .. BLOCKS { let b = blocks . get ( stack . from_i ( i ) ) . unwrap ( ) ; if b . state == " " { // or garbage clear return true ; } } return false ; }
returns true when any block was found that is currently in clear state
returns true when any block was found that is currently in clear state
stack
&Stack
blocks
&WriteStorage<'_, Block>
stack
&Stack
blocks
&WriteStorage<'_, Block>