-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
83 changed files
with
3,050 additions
and
1,487 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"workbench.colorTheme": "Solarized Dark" | ||
"workbench.colorTheme": "Nord" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
|
||
const fs = require("fs"); | ||
const process = require("process") | ||
|
||
const phaser_path = process.env.PHASER_PATH; | ||
const phaser_json_path = phaser_path + "/phaser3-docs/json/phaser.json"; | ||
|
||
const content = fs.readFileSync(phaser_json_path); | ||
|
||
const data = JSON.parse(content.toString()); | ||
|
||
const docsMap = {}; | ||
|
||
let i = 1; | ||
|
||
for (const item of data.docs) { | ||
|
||
if (item.kind !== "event") { | ||
|
||
continue; | ||
} | ||
|
||
let { name, memberof } = item; | ||
|
||
const fullName = `${memberof}.${name}`; | ||
|
||
docsMap[fullName] = item.description || item.classdesc; | ||
|
||
console.log(`${i++} Processing event fullName`); | ||
} | ||
|
||
const output = JSON.stringify(docsMap, null, 2); | ||
|
||
console.log("---"); | ||
console.log("Writing to file events.json..."); | ||
|
||
fs.writeFileSync("../source/editor/plugins/phasereditor2d.scene/data/events-docs.json", output); | ||
|
||
console.log("Done."); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.