Example #1
0
        public bool ChangeMap(string where)
        {
            if (_account.IsBusy)
            {
                return(false);
            }

            if (!ChangeMapAction.TryParse(where, out ChangeMapAction action))
            {
                _account.Logger.LogWarning(LanguageManager.Translate("182"), LanguageManager.Translate("183", where));
                return(false);
            }

            _account.Scripts.ActionsManager.EnqueueAction(action, true);
            return(true);
        }
Example #2
0
        public bool cambiarMapa(string posicion)
        {
            if (cuenta.Is_Busy())
            {
                return(false);
            }

            if (!ChangeMapAction.TryParse(posicion, out ChangeMapAction accion))
            {
                cuenta.Logger.LogError("MapApi", $"VĂ©rifier le changement de carte {posicion}");
                return(false);
            }

            manejador_acciones.enqueue_Accion(accion, true);
            return(true);
        }