コード例 #1
0
        public static void Main(string[] args)
        {
            Console.Title = "AivyCore - 1.0.0";

            configuration.AddRule(LogLevel.Debug, LogLevel.Fatal, log_console);
            LogManager.Configuration = configuration;

            DofusServer  server   = new DofusServer(@"C:\Users\ABCD\AppData\Local\Ankama\zaap\retro\resources\app\retroclient");
            ServerEntity s_entity = server.Active(true, 777);

            Console.ReadLine();
        }
コード例 #2
0
        public MainViewModel()
        {
            Proxy = new DofusRetroProxy(@"C:\Users\ABCD\AppData\Roaming\Ascalion Launcher\client\resources\app\retroclient", new Account()
            {
                Username = "******", Password = "******"
            });
            InteractivObject.Initialize();
            Map.Initialize();
            Spell.Initialize();
            Logs = new ObservableCollection <LogEventInfo>();
            DofusServer server = new DofusServer(@"

");

            Proxy.Account.AccountStateUpdate            += HandleStateUpdate;
            Proxy.Account.Character.CharacterNameUpdate += HandleNameUpdate;
            _logTarget = new MemoryEventTarget();
            _logTarget.EventReceived += LogReceived;
            NLog.Config.SimpleConfigurator.ConfigureForTargetLogging(_logTarget);
            //configuration.AddRule(LogLevel.Debug, LogLevel.Fatal, log_console);
            //LogManager.Configuration = configuration;
            //ServerEntity s_entity = server.Active(true, 779);
        }