internal void ClearPathData()
 {
     PathLengthFromStart         = 0;
     HeuristicEstimatePathLength = 0;
     EstimateFullPathLength      = int.MaxValue;
     State     = StateTile.Undefined;
     PriorTile = null;
 }
Ejemplo n.º 2
0
        public async Task <IActionResult> Save(StateTile tile)
        {
            if (ModelState.IsValid)
            {
                return(await SaveBaseTile(ConfigStore, tile));
            }

            return(View("Add", tile));
        }
Ejemplo n.º 3
0
        public async Task <IActionResult> Save(StateTile tile)
        {
            if (ModelState.IsValid)
            {
                return(await SaveBaseTile(ConfigStore, tile));
            }

            ViewBag.Entities = (await EntityClient.GetEntities()).OrderBy(e => e).Select(e => new SelectListItem(e, e));
            return(View("Add", tile));
        }