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]++]); } }
public Pai3D(Pai pai) { this.x = pai.ToInt34(); }