MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / directionOf

Function directionOf

source/game/StarGameTypes.hpp:31–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29
30template <typename NumType>
31inline Maybe<Direction> directionOf(NumType const& n) {
32 if (n == 0)
33 return {};
34 else
35 return n < 0 ? Direction::Left : Direction::Right;
36}
37
38enum class Gender : uint8_t {
39 Male,

Callers 3

moveMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected