Esempio n. 1
0
File: Map.cs Progetto: Teles1/Cookie
 private void MapChangement_ChangementFinished(object sender, MapChangementFinishedEventArgs e)
 {
     if (e.Success)
     {
         Logger.Default.Log($"Map Change was succefull. New Map [{X},{Y}]");
     }
     else
     {
         Logger.Default.Log($"Error trying to changemap.");
     }
     WaitingForMapChange = false;
 }
Esempio n. 2
0
        private void OnChangementFinished(object sender, MapChangementFinishedEventArgs e)
        {
            switch (e.Success)
            {
            case true:
                Logger.Default.Log($"Changement de map réussi ! Arrivé sur la map {e.NewMap}");
                break;

            case false:
                Logger.Default.Log($"Changement de map échoué ! Toujours sur la map {e.OldMap}");
                break;
            }
        }
Esempio n. 3
0
        private void OnChangementFinished(object sender, MapChangementFinishedEventArgs e)
        {
            var pos = D2OParsing.GetMapCoordinates(e.NewMap);

            switch (e.Success)
            {
            case true:
                Logger.Default.Log(
                    $"Changement de map réussi ! Arrivé sur la map [{pos.X};{pos.Y}] ({e.NewMap})");
                break;

            case false:
                Logger.Default.Log(
                    $"Changement de map échoué ! Toujours sur la map [{pos.X};{pos.Y}] ({e.NewMap})");
                break;
            }
        }