Пример #1
0
        public Player(string file)
        {
            Logger = NLog.LogManager.GetCurrentClassLogger();
            Memory = new L2Apf.Memory(file);

            Api = new Server.Script.Api()
            {
                Config = new Model.LoginServer()
                {
                    Address  = Memory.Config.Address,
                    Port     = Memory.Config.Port,
                    Protocol = Memory.Config.Protocol,
                    Token    = Memory.Config.Token
                }
            };

            Ai = new Ai._Blob(Api, Memory);
        }
Пример #2
0
		public Player(string file)
		{
			Logger = NLog.LogManager.GetCurrentClassLogger();
			Memory = new L2Apf.Memory(file);

			Api = new Server.Script.Api()
			{
				Config = new Model.LoginServer()
				{
					Address = Memory.Config.Address,
					Port = Memory.Config.Port,
					Protocol = Memory.Config.Protocol,
					Token = Memory.Config.Token
				}
			};

			Ai = new Ai._Blob(Api, Memory);
		}