From b691c43c44ff180d10e7d4a9afc83b98551ff586 Mon Sep 17 00:00:00 2001 From: daoge_cmd <3523206925@qq.com> Date: Sun, 1 Mar 2026 12:16:08 +0800 Subject: Initial commit --- Minecraft.World/Facing.cpp | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Minecraft.World/Facing.cpp (limited to 'Minecraft.World/Facing.cpp') diff --git a/Minecraft.World/Facing.cpp b/Minecraft.World/Facing.cpp new file mode 100644 index 00000000..9df4187d --- /dev/null +++ b/Minecraft.World/Facing.cpp @@ -0,0 +1,22 @@ +#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 +}; -- cgit v1.2.3