feat(WIP): 이벤트 시나리오 준비

This commit is contained in:
2022-01-25 00:26:55 +09:00
parent 6014fc3ded
commit f5dc1cd85e
2 changed files with 69 additions and 2 deletions
+2 -2
View File
@@ -212,11 +212,11 @@ class Scenario{
$this->events = array_map(function($rawEvent){
//event는 여기서 풀지 않는다. 평가만 한다.
$target = $rawEvent[0];
if(is_string($target)){
if(!is_string($target)){
throw new \RuntimeException("{$target}이 문자열이 아님");
}
$priority = $rawEvent[1];
if(is_int($priority)){
if(!is_int($priority)){
throw new \RuntimeException("{$priority}가 정수가 아님");
}
$cond = $rawEvent[2];