Example #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);
        }
Example #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);
		}