private void Test() { var command = BuildCommand("Attack", "~10$B, $F, x", 15, 1); var input = new InputBuffer(); input.Add(PlayerButton.Left, Facing.Right); input.Add(PlayerButton.Left, Facing.Right); input.Add(PlayerButton.Left, Facing.Right); input.Add(PlayerButton.Left, Facing.Right); input.Add(PlayerButton.Left, Facing.Right); input.Add(PlayerButton.Left, Facing.Right); input.Add(PlayerButton.Left, Facing.Right); input.Add(PlayerButton.Left, Facing.Right); input.Add(PlayerButton.Left, Facing.Right); input.Add(PlayerButton.Left, Facing.Right); input.Add(PlayerButton.Left, Facing.Right); input.Add(PlayerButton.Left | PlayerButton.Right, Facing.Right); input.Add(PlayerButton.Right, Facing.Right); input.Add(PlayerButton.Right | PlayerButton.X, Facing.Right); var check = CommandChecker.Check(command, input); }
void Test() { Command command = BuildCommand("Attack", "~10$B, $F, x", 15, 1); InputBuffer input = new InputBuffer(); input.Add(PlayerButton.Left, Facing.Right); input.Add(PlayerButton.Left, Facing.Right); input.Add(PlayerButton.Left, Facing.Right); input.Add(PlayerButton.Left, Facing.Right); input.Add(PlayerButton.Left, Facing.Right); input.Add(PlayerButton.Left, Facing.Right); input.Add(PlayerButton.Left, Facing.Right); input.Add(PlayerButton.Left, Facing.Right); input.Add(PlayerButton.Left, Facing.Right); input.Add(PlayerButton.Left, Facing.Right); input.Add(PlayerButton.Left, Facing.Right); input.Add(PlayerButton.Left | PlayerButton.Right, Facing.Right); input.Add(PlayerButton.Right, Facing.Right); input.Add(PlayerButton.Right | PlayerButton.X, Facing.Right); Boolean check = CommandChecker.Check(command, input); }