Example #1
0
 public void Load(Filer type)
 {
     this.x    = type.rdInt();
     this.y    = type.rdInt();
     this.r    = type.rdInt();
     this.name = type.rdString();
 }
Example #2
0
 public void Save(Filer type)
 {
     type.wrInt(2);
     type.wrInt(x);
     type.wrInt(y);
     type.wrInt(r);
     type.wrString(name);
 }
Example #3
0
 public void Save(Filer type)
 {
     type.wrInt(4);
     type.wrInt(x);
     type.wrInt(y);
     type.wrInt(side);
     type.wrString(name);
 }
Example #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();
 }
Example #5
0
 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();
 }
Example #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);
 }
Example #7
0
 public void Save(Filer type)
 {
     type.wrInt(1);
     type.wrInt(x1);
     type.wrInt(y1);
     type.wrInt(x2);
     type.wrInt(y2);
     type.wrString(name);
 }
Example #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);
        }