mirror of
https://github.com/photonstorm/phaser
synced 2024-11-28 07:31:11 +00:00
14 lines
383 B
JavaScript
14 lines
383 B
JavaScript
|
/**
|
|||
|
* Add Phaser.Physics.P2 before the class name in the p2.js file
|
|||
|
*/
|
|||
|
var path = require('path');
|
|||
|
|
|||
|
exports.handlers = {};
|
|||
|
exports.handlers.newDoclet = function (e) {
|
|||
|
var doclet = e.doclet;
|
|||
|
|
|||
|
if ((doclet.meta.filename === "p2.js") && (doclet.kind === 'class' || doclet.kind === 'interface'))
|
|||
|
{
|
|||
|
doclet.longname = "Phaser.Physics.P2." + doclet.longname;
|
|||
|
}
|
|||
|
};
|