Files
core/hwe/sammo/Event/Action/RegNPC.php
T
Hide_D c0e2ed7013 * generalID, generalName 동작 안하는 문제 해결
* Event 관련 클래스 표기 실수 해결
2018-04-02 01:50:21 +09:00

46 lines
994 B
PHP

<?php
namespace sammo\Event\Action;
//이전 RegNPC 함수를 EventAction으로 재구성
class RegNPC extends \sammo\Event\Action{
private $npc;
public function __construct(
int $affinity,
string $name,
int $pictureID,
int $nationID,
$locatedCity,
int $leadership,
int $power,
int $intel,
int $birth = 160,
int $death = 300,
string $ego = null,
string $char = null,
string $text = null
){
$this->npc = new \sammo\Scenario\NPC(
$affinity,
$name,
$pictureID,
$nationID,
$locatedCity,
$leadership,
$power,
$intel,
$birth,
$death,
$ego,
$char,
$text
);
}
public function run($env=null){
$result = $this->npc->build($env);
return [__CLASS__, $result];
}
}