I realize that doing something like:
enum direction { Forward, Back, Left, Right };
is assigning Forward = 0, Back = 1, Left = 2, Right = 3. It’s also possible to use different ints such as
enum direction { Forward = 10, Back = 20, Left = 5, Right = 162 };
.
.
My question is, is it possible (and if so how?) to make these values a type of data other than int? I want to do something like
enum<Vector3> direction { ForwardLeft = new Vector3(-1, 0, 1), Special = new Vector 3(0.65f, 0.2f, 1) };