示例#1
0
        public static Pai3D Get(Pai pai)
        {
            int x = pai.ToInt34();

            if (count[x] >= cache[x].Count)
            {
                Pai3D p = new Pai3D(pai);
                count[x]++;
                cache[x].Add(p);
                return(p);
            }
            else
            {
                return(cache[x][count[x]++]);
            }
        }
示例#2
0
文件: Pai3D.cs 项目: play3577/Mjai3D
 public Pai3D(Pai pai)
 {
     this.x = pai.ToInt34();
 }