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

            return(View("Add", tile));
        }
Exemplo 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));
        }