fn check_clear(x: usize, y: usize, stack: &Stack, blocks: &WriteStorage<'_, Block>) -> Vec<u32> {
	let mut checks: Vec<u32> = Vec::new();

	let r_rr = check_similar_block(x, y, 1, 0, stack, blocks);
	let u_uu = check_similar_block(x, y, 0, 1, stack, blocks);

	if let Some(mut right_vec) = r_rr {
		checks.append(&mut right_vec);
	}

	if let Some(mut up_vec) = u_uu {
		checks.append(&mut up_vec);
	}

	checks
}
// checks through eachs block right, right_right and up, up_up to see if they are performing a combo
// returns an array of block ids to identify them
checks through eachs block right, right_right and up, up_up to see if they are performing a combo
returns an array of block ids to identify them
checks through eachs block right right_right and up up_up to see if they are performing a combo returns an array of block ids to identify them
fn check_clear(x: usize, y: usize, stack: &Stack, blocks: &WriteStorage<'_, Block>) -> Vec<u32> {
	let mut checks: Vec<u32> = Vec::new();
	let r_rr = check_similar_block(x, y, 1, 0, stack, blocks);
	let u_uu = check_similar_block(x, y, 0, 1, stack, blocks);
	if let Some(mut right_vec) = r_rr {
		checks.append(&mut right_vec);
	}
	if let Some(mut up_vec) = u_uu {
		checks.append(&mut up_vec);
	}
	checks
}
fn check_clear ( x : usize , y : usize , stack : & Stack , blocks : & WriteStorage < ' _ , Block > ) -> Vec < u32 > { let mut checks : Vec < u32 > = Vec :: new ( ) ; let r_rr = check_similar_block ( x , y , 1 , 0 , stack , blocks ) ; let u_uu = check_similar_block ( x , y , 0 , 1 , stack , blocks ) ; if let Some ( mut right_vec ) = r_rr { checks . append ( & mut right_vec ) ; } if let Some ( mut up_vec ) = u_uu { checks . append ( & mut up_vec ) ; } checks }
checks through eachs block right, right_right and up, up_up to see if they are performing a combo
returns an array of block ids to identify them
checks through eachs block right right_right and up up_up to see if they are performing a combo returns an array of block ids to identify them
x
usize
y
usize
stack
&Stack
blocks
&WriteStorage<'_, Block>
x
usize
y
usize
stack
&Stack
blocks
&WriteStorage<'_, Block>