コード例 #1
0
ファイル: HeatRoom.php プロジェクト: sinfocol/gwf3
 public function on_heat(SR_Player $player, array $args)
 {
     if ($player->hasConst(self::KEY)) {
         $player->unsetConst(self::KEY);
         return $player->message($this->lang($player, 'heat_off'));
         // 			return $player->message('You have totally turned off the heating in this building.');
     } else {
         $player->setConst(self::KEY, 1);
         return $player->message($this->lang($player, 'heat_on'));
         // 			return $player->message('You have totally turned on the heating in this building.');
     }
 }
コード例 #2
0
ファイル: Delaware_Exams5.php プロジェクト: sinfocol/gwf3
 public function rightInTime(SR_Player $player)
 {
     $eta = $player->getConst('__AURIS_TIMEOUT');
     $player->unsetConst('__AURIS_TIMEOUT');
     return Shadowrun4::getTime() < $eta;
 }