예제 #1
0
 public void Load(Filer type)
 {
     this.x    = type.rdInt();
     this.y    = type.rdInt();
     this.r    = type.rdInt();
     this.name = type.rdString();
 }
예제 #2
0
 public void Save(Filer type)
 {
     type.wrInt(2);
     type.wrInt(x);
     type.wrInt(y);
     type.wrInt(r);
     type.wrString(name);
 }
예제 #3
0
 public void Save(Filer type)
 {
     type.wrInt(4);
     type.wrInt(x);
     type.wrInt(y);
     type.wrInt(side);
     type.wrString(name);
 }
예제 #4
0
 public void Load(Filer type)
 {
     this.x      = type.rdInt();
     this.y      = type.rdInt();
     this.width  = type.rdInt();
     this.height = type.rdInt();
     this.name   = type.rdString();
 }
예제 #5
0
파일: Line.cs 프로젝트: Shurigg/Conference
 public void Load(Filer type)
 {
     this.x1   = type.rdInt();
     this.y1   = type.rdInt();
     this.x2   = type.rdInt();
     this.y2   = type.rdInt();
     this.name = type.rdString();
 }
예제 #6
0
 public void Save(Filer type)
 {
     type.wrInt(3);
     type.wrInt(x);
     type.wrInt(y);
     type.wrInt(width);
     type.wrInt(height);
     type.wrString(name);
 }
예제 #7
0
파일: Line.cs 프로젝트: Shurigg/Conference
 public void Save(Filer type)
 {
     type.wrInt(1);
     type.wrInt(x1);
     type.wrInt(y1);
     type.wrInt(x2);
     type.wrInt(y2);
     type.wrString(name);
 }
예제 #8
0
        public List <Shape> loadFile(Filer filer)
        {
            List <Shape> arr = new List <Shape>();
            Geo          g   = new Geo();

            while (filer.eof())
            {
                int   header = filer.rdInt();
                Shape s      = g.ChoiseType(header);
                s.Load(filer);
                arr.Add(s);
            }
            return(arr);
        }