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

This commit is contained in:
2022-02-05 07:43:27 +00:00
committed by Gitea
parent 307d08d898
commit fefc66ebe9
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];