private SnapType getSnapType(TileFaceType faceType)
 {
     if (!typesMap.ContainsKey(faceType.GetRoot()))
     {
         typesMap.Add(faceType.GetRoot(), new SnapType("TileFaceType: " + randomNbGenerator.Next(10) + faceType.Name));
     }
     return(typesMap[faceType.GetRoot()]);
 }
Ejemplo n.º 2
0
        public TileFaceType GetRoot()
        {
            if (parent == null)
            {
                return(this);
            }

            return(parent.GetRoot());
        }