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

This commit is contained in:
Hide_D authored and Gitea committed 2022-02-05 07:43:27 +00:00
1 parent 55439c268f
commit 06786aff28
2 files changed
+69 -2

No files matched your search

+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];