コード例 #1
0
ファイル: ConsumableV2.php プロジェクト: keneanung/gw2spidy
 public function __construct($APIItem)
 {
     parent::__construct($APIItem);
     $this->sub_type = $APIItem['details']['type'];
     $this->duration_ms = isset($APIItem['details']['duration_ms']) ? $APIItem['details']['duration_ms'] : null;
     $this->sub_description = isset($APIItem['details']['description']) ? $APIItem['details']['description'] : null;
 }
コード例 #2
0
ファイル: BackV2.php プロジェクト: keneanung/gw2spidy
 public function __construct($APIItem)
 {
     parent::__construct($APIItem);
     $this->infusion_slots = $APIItem['details']['infusion_slots'];
     $this->infix_upgrade = isset($APIItem['details']['infix_upgrade']) ? $APIItem['details']['infix_upgrade'] : array();
     $this->suffix_item_id = isset($APIItem['details']['suffix_item_id']) ? $APIItem['details']['suffix_item_id'] : null;
 }
コード例 #3
0
ファイル: ArmorV2.php プロジェクト: keneanung/gw2spidy
 public function __construct($APIItem)
 {
     parent::__construct($APIItem);
     $this->sub_type = $APIItem['details']['type'];
     $this->weight_class = $APIItem['details']['weight_class'];
     $this->defense = $APIItem['details']['defense'];
     $this->infusion_slots = $APIItem['details']['infusion_slots'];
     $this->infix_upgrade = isset($APIItem['details']['infix_upgrade']) ? $APIItem['details']['infix_upgrade'] : array();
     $this->suffix_item_id = isset($APIItem['details']['suffix_item_id']) ? $APIItem['details']['suffix_item_id'] : null;
 }
コード例 #4
0
 public function __construct($APIItem)
 {
     parent::__construct($APIItem);
     $this->sub_type = $APIItem['details']['type'];
     $this->sub_flags = $APIItem['details']['flags'];
     $this->infusion_upgrade_flags = $APIItem['details']['infusion_upgrade_flags'];
     $this->bonuses = isset($APIItem['details']['bonuses']) ? $APIItem['details']['bonuses'] : array();
     $this->infix_upgrade = isset($APIItem['details']['infix_upgrade']) ? $APIItem['details']['infix_upgrade'] : array();
     $this->suffix = $APIItem['details']['suffix'];
 }
コード例 #5
0
ファイル: WeaponV2.php プロジェクト: keneanung/gw2spidy
 public function __construct($APIItem)
 {
     parent::__construct($APIItem);
     $this->sub_type = $APIItem['details']['type'];
     $this->damage_type = $APIItem['details']['damage_type'];
     $this->min_power = (int) $APIItem['details']['min_power'];
     $this->max_power = (int) $APIItem['details']['max_power'];
     $this->defense = (int) $APIItem['details']['defense'];
     $this->infusion_slots = $APIItem['details']['infusion_slots'];
     $this->infix_upgrade = isset($APIItem['details']['infix_upgrade']) ? $APIItem['details']['infix_upgrade'] : array();
     $this->suffix_item_id = isset($APIItem['details']['suffix_item_id']) ? $APIItem['details']['suffix_item_id'] : null;
 }
コード例 #6
0
ファイル: TrophyV2.php プロジェクト: keneanung/gw2spidy
 public function __construct($APIItem)
 {
     parent::__construct($APIItem);
 }
コード例 #7
0
ファイル: BagV2.php プロジェクト: keneanung/gw2spidy
 public function __construct($APIItem)
 {
     parent::__construct($APIItem);
     $this->no_sell_or_sort = $APIItem['details']['no_sell_or_sort'];
     $this->size = $APIItem['details']['size'];
 }
コード例 #8
0
ファイル: ContainerV2.php プロジェクト: keneanung/gw2spidy
 public function __construct($APIItem)
 {
     parent::__construct($APIItem);
     $this->sub_type = $APIItem['details']['type'];
 }