예제 #1
0
 public function serial(MemStream $s)
 {
     $s->serial_byte($ver);
     $s->serial_uint32($this->Type);
     $this->Pos = new CVector2f();
     $this->Pos->serial($s);
     $this->Zone = new CPrimZone();
     $this->Zone->serial($s);
     $s->serial_string($this->TitleText);
 }
예제 #2
0
 public function serial(MemStream $s)
 {
     $s->serial_string($this->Name);
     $this->Zone = new CPrimZone();
     $this->Zone->serial($s);
     $this->ZoneCenter = new CVector2f();
     $this->ZoneCenter->serial($s);
     $this->ContLandMarks = array();
     $s->serial_uint32($nbItems);
     for ($i = 0; $i < $nbItems; $i++) {
         $cont = new CContLandMark();
         $cont->serial($s);
         $this->ContLandMarks[] = $cont;
     }
 }