Skip to content

Commit 7528783

Browse files
committed
Fixed missing Pixi from class names and extends.
1 parent 0114f66 commit 7528783

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

docgen/src/ClassDesc.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ public function __construct($processor, $block)
1616

1717
$this->name = $block->getLineContent('@class');
1818

19+
if (substr($this->name, 0, 6) !== 'Phaser')
20+
{
21+
$this->name = 'PIXI.' . $this->name;
22+
}
23+
1924
$this->processor->log("vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv");
2025
$this->processor->log("Class: $this->name");
2126
$this->processor->log("^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^");
@@ -30,6 +35,11 @@ public function __construct($processor, $block)
3035
if ($block->getTypeBoolean('@extends'))
3136
{
3237
$this->extends = $block->getLineContent('@extends');
38+
39+
if (substr($this->extends, 0, 6) !== 'Phaser')
40+
{
41+
$this->extends = 'PIXI.' . $this->extends;
42+
}
3343
}
3444

3545
if ($block->getTypeBoolean('@constructor'))

0 commit comments

Comments
 (0)