Ejemplo n.º 1
0
 /**
  * @param MemStream $s
  */
 public function serial(MemStream $s)
 {
     $this->Pos = new CVector2f();
     $this->Pos->serial($s);
     $s->serial_ucstring($this->Title);
     $s->serial_byte($this->Type);
 }
Ejemplo n.º 2
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);
 }
Ejemplo n.º 3
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;
     }
 }