예제 #1
0
 /**
  * Parse the command information from the commands file.
  *
  * @param  \pandaac\Exporter\Contracts\Reader  $reader
  * @return \Illuminate\Support\Collection
  */
 protected function command(Reader $reader)
 {
     if (!$reader->is('command')) {
         return false;
     }
     return new Collection($reader->attributes('cmd', 'group', 'acctype', 'log'));
 }
예제 #2
0
파일: Groups.php 프로젝트: pandaac/exporter
 /**
  * Parse the group information from the groups file.
  *
  * @param  \pandaac\Exporter\Contracts\Reader  $reader
  * @return \Illuminate\Support\Collection
  */
 protected function group(Reader $reader)
 {
     if (!$reader->is('group')) {
         return false;
     }
     return new Collection($reader->attributes('id', 'name', 'flags', 'access', 'maxdepotitems', 'maxvipentries'));
 }
예제 #3
0
파일: Stages.php 프로젝트: pandaac/exporter
 /**
  * Parse the stage information from the stages file.
  *
  * @param  \pandaac\Exporter\Contracts\Reader  $reader
  * @return \Illuminate\Support\Collection
  */
 protected function stage(Reader $reader)
 {
     if (!$reader->is('stage')) {
         return false;
     }
     return new Collection($reader->attributes('minlevel', 'maxlevel', 'multiplier'));
 }
예제 #4
0
파일: Mounts.php 프로젝트: pandaac/exporter
 /**
  * Parse the mount information from the mounts file.
  *
  * @param  \pandaac\Exporter\Contracts\Reader  $reader
  * @return \Illuminate\Support\Collection
  */
 protected function mount(Reader $reader)
 {
     if (!$reader->is('mount')) {
         return false;
     }
     return new Collection($reader->attributes('id', 'clientid', 'name', 'speed', 'premium'));
 }
예제 #5
0
 /**
  * Parse the vocation formula from the vocations file.
  *
  * @param  \pandaac\Exporter\Contracts\Reader  $reader
  * @return \Illuminate\Support\Collection
  */
 protected function formula(Reader $reader)
 {
     if (!($reader->is('formula') and $reader->parent('vocation'))) {
         return false;
     }
     return new Collection($reader->attributes('meleeDamage', 'distDamage', 'defense', 'armor'));
 }
예제 #6
0
 /**
  * Parse the outfit information from the outfits file.
  *
  * @param  \pandaac\Exporter\Contracts\Reader  $reader
  * @return \Illuminate\Support\Collection
  */
 protected function outfit(Reader $reader)
 {
     if (!$reader->is('outfit')) {
         return false;
     }
     return new Collection($reader->attributes('type', 'looktype', 'name', 'premium', 'unlocked', 'enabled'));
 }
예제 #7
0
파일: Quests.php 프로젝트: pandaac/exporter
 /**
  * Parse the mission states from the quests file.
  *
  * @param  \pandaac\Exporter\Contracts\Reader  $reader
  * @return \Illuminate\Support\Collection
  */
 protected function missionState(Reader $reader)
 {
     if (!($reader->is('missionstate') and $reader->parent('mission'))) {
         return false;
     }
     return new Collection($reader->attributes('id', 'description'));
 }
예제 #8
0
파일: Spells.php 프로젝트: pandaac/exporter
 /**
  * Parse the conjure spell vocations from the spells file.
  *
  * @param  \pandaac\Exporter\Contracts\Reader  $reader
  * @return \Illuminate\Support\Collection
  */
 protected function conjureVocations(Reader $reader)
 {
     if (!($reader->is('vocation') and $reader->parent('conjure'))) {
         return false;
     }
     return new Collection($reader->attributes('name'));
 }
예제 #9
0
파일: Items.php 프로젝트: pandaac/exporter
 /**
  * Parse the item attribute properties information from the items file.
  *
  * @param  \pandaac\Exporter\Contracts\Reader  $reader
  * @return \Illuminate\Support\Collection
  */
 protected function itemAttributeProperties(Reader $reader)
 {
     if (!($reader->is('attribute') and $reader->parent('attribute'))) {
         return false;
     }
     return new Collection($reader->attributes('key', 'value'));
 }
예제 #10
0
 /**
  * Parse the basic information from the monster file.
  *
  * @param  \pandaac\Exporter\Contracts\Reader  $reader
  * @return \Illuminate\Support\Collection
  */
 protected function information(Reader $reader)
 {
     $attributes = $reader->attributes('name', 'file');
     return new Collection(array_merge($attributes, ['path' => realpath(dirname($this->file) . '/' . $attributes['file'])]));
 }
예제 #11
0
 /**
  * Parse the loot comment information from the monster file.
  *
  * @param  \pandaac\Exporter\Contracts\Reader  $reader
  * @return string
  */
 protected function lootComments(Reader $reader)
 {
     if (!($reader->isComment() and $reader->parent('loot'))) {
         return false;
     }
     return trim($reader->value());
 }