수극을 통한 저격 예시
This commit is contained in:
1 parent
17a59cbdd5
commit
00a6e9798f
8 files changed
+172
-34
No files matched your search
@@ -81,6 +81,8 @@ abstract class TriggerCaller{
|
||||
return;
|
||||
}
|
||||
|
||||
//NOTE: array_merge로 계속 가야하는가? merge가 많으면 SPL의 LinkedList가 낫지 않나?
|
||||
|
||||
$newTriggerList = [];
|
||||
$iterLhs = new \ArrayIterator($this->triggerListByPriority);
|
||||
$iterRhs = new \ArrayIterator($other->triggerListByPriority);
|
||||
@@ -96,7 +98,7 @@ abstract class TriggerCaller{
|
||||
$iterRhs->next();
|
||||
continue;
|
||||
}
|
||||
$newTriggerList[$iterLhs->key()] = $iterLhs->current() + $iterRhs->current();
|
||||
$newTriggerList[$iterLhs->key()] = array_merge($iterLhs->current(), $iterRhs->current());
|
||||
$iterLhs->next();
|
||||
$iterRhs->next();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user