Browse Source

♻️ Reduce visibility of 'Displacement::fromDirection' to 'private'

This will enforce the new constructor conversion approach over the use of the static method.
pull/2812/head
Juliano Leal Goncalves 5 years ago committed by Anders Jenbo
parent
commit
5bb7b0bf23
  1. 1
      Source/engine/displacement.hpp

1
Source/engine/displacement.hpp

@ -103,6 +103,7 @@ struct Displacement {
return { abs(a.deltaX), abs(a.deltaY) };
}
private:
static constexpr Displacement fromDirection(Direction direction)
{
switch (direction) {

Loading…
Cancel
Save