Beispiel #1
0
 private void UpdateFace(CubeFace face)
 {
     for (int i = 0; i < _faces.Count; i++)
     {
         if (_faces[i] == face)
         {
             face.Resize(_from, _to);
         }
     }
 }
Beispiel #2
0
 private void AddMissingFaces()
 {
     foreach (FaceOrientation orientation in Enum.GetValues(typeof(FaceOrientation)))
     {
         if (!DoesContainFace(orientation))
         {
             CubeFace face = new CubeFace(_from, _to, orientation, new Vector4(0, 0, 16, 16), "#", false, this);
             _faces.Add(face);
         }
     }
 }
Beispiel #3
0
        public CubeFace GetFace(FaceOrientation orientation)
        {
            CubeFace result = null;

            foreach (CubeFace face in _faces)
            {
                if (face.Orientation == orientation)
                {
                    result = face;
                }
            }
            return(result);
        }