add faces.py

This commit is contained in:
David Vierra 2011-09-29 02:48:01 -10:00
parent 536cf7d864
commit 4db526c533
2 changed files with 18 additions and 8 deletions

17
faces.py Normal file
View File

@ -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))
)

View File

@ -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"