mirror of
https://github.com/photonstorm/phaser
synced 2024-11-16 09:48:18 +00:00
28 lines
No EOL
579 B
PHP
28 lines
No EOL
579 B
PHP
<?php
|
|
if (isset($_GET['src']))
|
|
{
|
|
$src = $_GET['src'];
|
|
}
|
|
|
|
require 'src/Block.php';
|
|
require 'src/ClassDesc.php';
|
|
require 'src/Constant.php';
|
|
require 'src/Method.php';
|
|
require 'src/Parameter.php';
|
|
require 'src/Property.php';
|
|
require 'src/ReturnType.php';
|
|
require 'src/Processor.php';
|
|
require 'src/PhaserDocGen.php';
|
|
|
|
header('Content-Type: application/json');
|
|
|
|
$gen = new PhaserDocGen();
|
|
$gen->start();
|
|
|
|
$sprite = $gen->get('Phaser.Sprite');
|
|
|
|
$gen->extend('Phaser.Sprite');
|
|
|
|
echo $sprite->getJSON();
|
|
|
|
?>
|