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); }
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; } }