Exemple #1
0
        public static List <List <string> > GetBaseMapForEmpty(BaseLevel level)
        {
            var baseMap = GetOutputMap(level);

            //remove h, s, e
            for (var y = 0; y < baseMap.Count; y++)
            {
                for (var x = 0; x < baseMap[0].Count; x++)
                {
                    if (baseMap[y][x] == "h")
                    {
                        baseMap[y][x] = "x";
                    }

                    if (baseMap[y][x] == "s")
                    {
                        baseMap[y][x] = ".";
                    }

                    if (baseMap[y][x] == "e")
                    {
                        baseMap[y][x] = ".";
                    }
                }
            }
            return(baseMap);
        }
Exemple #2
0
        public static void SaveEmpty(BaseLevel level, string fn, string subtitle = "", bool quiet = false, List <PointText> pointTexts = null, bool arrows = false, bool corner = false)
        {
            if (fn.Contains(":"))
            {
                throw new Exception(fn);
            }
            var baseMap = GetBaseMapForEmpty(level);

            ImageUtil.Save(_Images, level, baseMap, fn, subtitle, quiet, pointTexts, arrows: arrows, corner: corner);
        }
Exemple #3
0
        //for cmdline
        public static void Show(BaseLevel l)
        {
            WL("SHOW:");
            var om = GetOutputMap(l);

            for (var y = 0; y < om.Count; y++)
            {
                for (var x = 0; x < om[0].Count; x++)
                {
                    W(om[y][x]);
                }

                W("\n");
            }
        }
Exemple #4
0
 public static void SaveWithPath(BaseLevel level, string fn, string subtitle = "", bool quiet = false, List <(int, int)> highlights = null)
Exemple #5
0
 public static void Save(Dictionary <string, Image> images, BaseLevel level, List <List <string> > outstrings, string fn, string subtitle, bool quiet = false,
                         List <PointText> pointTexts = null, bool arrows = false, int?overrideScale = null, List <(int, int)> highlights = null, bool corner = false)