mirror of
https://github.com/photonstorm/phaser
synced 2024-11-30 16:39:34 +00:00
76 lines
No EOL
1.4 KiB
PHP
Executable file
76 lines
No EOL
1.4 KiB
PHP
Executable file
<?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';
|
|
?>
|
|
<!doctype html>
|
|
<html>
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<title>Phaser Documentation Generator</title>
|
|
<style type="text/css">
|
|
body {
|
|
font-family: Arial;
|
|
font-size: 14px;
|
|
background-color: #fff;
|
|
color: #000;
|
|
}
|
|
|
|
textarea {
|
|
width: 100%;
|
|
height: 1000px;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
|
|
<pre>
|
|
<?php
|
|
|
|
$gen = new PhaserDocGen();
|
|
|
|
echo "Starting ...\n";
|
|
|
|
$gen->start();
|
|
|
|
echo "Extending ...\n";
|
|
|
|
$gen->extend();
|
|
|
|
echo "Exporting ...\n";
|
|
|
|
$gen->export('output/');
|
|
|
|
// $obj = $gen->get('Phaser.Animation');
|
|
// print_r($obj->getArray());
|
|
// echo $obj;
|
|
|
|
// ksort($gen->uniqueTypes);
|
|
// echo "There are " . count($gen->uniqueTypes) . " unique data types \n\n";
|
|
// print_r($gen->uniqueTypes);
|
|
|
|
// $gen->extend('Phaser.Sprite');
|
|
// $sprite = $gen->get('Phaser.Sprite');
|
|
// $sprite->export('output/');
|
|
|
|
// echo $sprite;
|
|
|
|
|
|
|
|
|
|
?>
|
|
</pre>
|
|
|
|
</body>
|
|
</html>
|