swf2ass/src/PendingPathMap.php

22 lines
419 B
PHP

<?php
namespace swf2ass;
class PendingPathMap {
/** @var PendingPath[] */
public array $map = [];
public function __construct() {
}
public function merge_path(ActivePath $path, bool $directed) {
if (!isset($this->map[$path->style])) {
$this->map[$path->style] = new PendingPath();
}
$this->map[$path->style]->merge_path($path->segment, $directed);
}
}