From 4db526c533c2fee91f7a9300ecbff8de9b7abe9d Mon Sep 17 00:00:00 2001 From: David Vierra Date: Thu, 29 Sep 2011 02:48:01 -1000 Subject: [PATCH] add faces.py --- faces.py | 17 +++++++++++++++++ mclevelbase.py | 9 +-------- 2 files changed, 18 insertions(+), 8 deletions(-) create mode 100644 faces.py diff --git a/faces.py b/faces.py new file mode 100644 index 0000000..dd405c8 --- /dev/null +++ b/faces.py @@ -0,0 +1,17 @@ + +FaceXIncreasing = 0 +FaceXDecreasing = 1 +FaceYIncreasing = 2 +FaceYDecreasing = 3 +FaceZIncreasing = 4 +FaceZDecreasing = 5 +MaxDirections = 6 + +faceDirections = ( + (FaceXIncreasing, (1, 0, 0)), + (FaceXDecreasing, (-1, 0, 0)), + (FaceYIncreasing, (0, 1, 0)), + (FaceYDecreasing, (0, -1, 0)), + (FaceZIncreasing, (0, 0, 1)), + (FaceZDecreasing, (0, 0, -1)) + ) diff --git a/mclevelbase.py b/mclevelbase.py index 042f40e..a5c72c7 100644 --- a/mclevelbase.py +++ b/mclevelbase.py @@ -22,14 +22,7 @@ from materials import * import blockrotation from entity import * - -FaceXIncreasing = 0 -FaceXDecreasing = 1 -FaceYIncreasing = 2 -FaceYDecreasing = 3 -FaceZIncreasing = 4 -FaceZDecreasing = 5 -MaxDirections = 6 +from faces import * #String constants for common tag names Entities = "Entities"