Module compass

Source
Expand description

§Compass

The direction module

All of these default to None

§Basic

intended for the most basic clicker-style RPG

// basic compass has Forward/Backward
use rpg_stat::compass::Basic as Compass;
// this is what I want
let direction = Compass::Forward;

§Normal

Intended for standard top-down world view RPG

// normal compass has Up, Down, Left, Right
use rpg_stat::compass::Normal as Compass;
// this is what I want
let direction = Compass::Up;

§Advanced

// advanced compass has the four cardinal and four intercardinal directions
use rpg_stat::compass::Advanced as Compass;
// this is where to go in winter
let direction = Compass::South;

Enums§

Advanced
Basic
Normal