using System;
using System.Collections.Generic;

namespace Plugins.JNGame.Sync.Frame.AStar.Entity
{
    public class PathReturnQueue
    {
        
        /// <summary>  
        /// 保存所有等待标记为已完成的路径。  
        /// 参见：<see cref="ReturnPaths"/>  
        /// </summary>  
        Queue<JNPath> pathReturnQueue = new Queue<JNPath>();

        private JNAStarPath path;
        

        public void Enqueue (JNPath path) {
            lock (pathReturnQueue) {
                pathReturnQueue.Enqueue(path);
            }
        }
        
        public PathReturnQueue (JNAStarPath path) {
            this.path = path;
        }

    }
}