static final function fetch($fp)
 {
     $includedPack = new self();
     $includedPack->checksum = self::fetchChecksum($fp);
     $includedPack->name = self::fetchString($fp);
     $includedPack->author = Author::fetch($fp);
     $includedPack->manialink = self::fetchString($fp);
     $includedPack->creationDate = self::fetchChecksum($fp);
     return $includedPack;
 }
Beispiel #2
0
 static final function fetch($fp)
 {
     $pack = new self();
     self::ignore($fp, 8);
     $version = self::fetchLong($fp);
     $pack->checksum = self::fetchChecksum($fp);
     $pack->flags = self::fetchLong($fp);
     $pack->author = Author::fetch($fp);
     $pack->manialink = self::fetchString($fp);
     $pack->creationDate = self::fetchDate($fp);
     $pack->description = self::fetchString($fp);
     if ($version >= 12) {
         $header = self::fetchString($fp);
         $pack->uid = self::fetchString($fp);
     }
     $pack->type = self::fetchString($fp);
     $pack->creationBuildInfo = self::fetchString($fp);
     self::ignore($fp, 16);
     $nbIncludedPacks = self::fetchLong($fp);
     for (; $nbIncludedPacks > 0; --$nbIncludedPacks) {
         $pack->includedPacks[] = IncludedPack::fetch($fp);
     }
     return $pack;
 }
Beispiel #3
0
 private static function fetchChunk008(Map $map, $fp)
 {
     $version = self::fetchLong($fp);
     $map->author = Author::fetch($fp);
 }