示例#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 Load(Filer type)
 {
     this.x      = type.rdInt();
     this.y      = type.rdInt();
     this.width  = type.rdInt();
     this.height = type.rdInt();
     this.name   = type.rdString();
 }
示例#3
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();
 }
示例#4
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);
        }