コード例 #1
0
 function __construct($data)
 {
     parent::__construct($data);
     if ($data) {
         $this->indianGoal = $data->victory->indianGoal;
         $this->pakistaniGoal = $data->victory->pakistaniGoal;
     } else {
         $this->indianGoal = $this->pakistaniGoal = [];
     }
 }
コード例 #2
0
 function __construct($data)
 {
     parent::__construct($data);
     if ($data) {
         $this->germanGoal = $data->victory->germanGoal;
         $this->sovietGoal = $data->victory->sovietGoal;
     } else {
         $this->germanGoal = $this->sovietGoal = [];
     }
 }
コード例 #3
0
 function __construct($data)
 {
     parent::__construct($data);
     if ($data) {
         $this->landingZones = $data->victory->landingZones;
         $this->airdropZones = $data->victory->airdropZones;
     } else {
         $this->landingZones = [];
         $this->airdropZones = [];
     }
 }
コード例 #4
0
ファイル: victoryCore.php プロジェクト: daverodal/wargaming
 function __construct($data)
 {
     parent::__construct($data);
     if ($data) {
         $this->sovietGoal = $data->victory->sovietGoal;
         $this->supplyUnits = $data->victory->supplyUnits;
     } else {
         $this->sovietGoal = [];
         $this->supplyUnits = [];
     }
 }
コード例 #5
0
 function __construct($data)
 {
     parent::__construct($data);
     if ($data) {
         $this->germanGoal = $data->victory->germanGoal;
         $this->sovietGoal = $data->victory->sovietGoal;
     } else {
         $this->victoryPoints = "The Soviets hold Moskow";
         $this->germanGoal = $this->sovietGoal = [];
     }
 }
コード例 #6
0
 function __construct($data)
 {
     parent::__construct($data);
     if ($data) {
         $this->landingZones = $data->victory->landingZones;
         $this->airdropZones = $data->victory->airdropZones;
         $this->scienceCenterDestroyed = $data->victory->scienceCenterDestroyed;
     } else {
         $this->landingZones = [];
         $this->airdropZones = [];
     }
 }
コード例 #7
0
 function __construct($data)
 {
     parent::__construct($data);
     if ($data) {
         $this->germanGoal = $data->victory->germanGoal;
         $this->sovietGoal = $data->victory->sovietGoal;
         $this->dismissed = $data->victory->dismissed;
     } else {
         $this->germanGoal = $this->sovietGoal = [];
         $this->victoryPoints[3] = 0;
     }
 }
コード例 #8
0
 function __construct($data)
 {
     parent::__construct($data);
     if ($data) {
         $this->rebelGoal = $data->victory->rebelGoal;
         $this->loyalistGoal = $data->victory->loyalistGoal;
         $this->headQuarters = $data->victory->headQuarters;
     } else {
         $this->rebelGoal = [];
         $this->loyalistGoal = [];
         $this->headQuarters = [];
     }
 }
コード例 #9
0
ファイル: victoryCore.php プロジェクト: daverodal/wargaming
 function __construct($data = false)
 {
     parent::__construct($data);
 }