Files
DrPerkyLegit-LCEServerTest/Minecraft.World/Facing.cpp
2026-05-23 10:27:20 -04:00

29 lines
448 B
C++

#include "stdafx.h"
#include "Facing.h"
const int Facing::OPPOSITE_FACING[6] =
{
UP, DOWN, SOUTH, NORTH, EAST, WEST
};
const int Facing::STEP_X[6] =
{
0, 0, 0, 0, -1, 1
};
const int Facing::STEP_Y[6] =
{
-1, 1, 0, 0, 0, 0
};
const int Facing::STEP_Z[6] =
{
0, 0, -1, 1, 0, 0
};
const wstring Facing::NAMES[] = {L"DOWN", L"UP", L"NORTH", L"SOUTH", L"WEST", L"EAST"};
int Facing::getOpposite(int facing)
{
return OPPOSITE_FACING[facing];
}