@directivegames/genesys.sdk 3.3.5 → 3.3.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -98,6 +98,9 @@ export async function readdirAsync(dirPath) {
98
98
  return await fs.promises.readdir(dirPath);
99
99
  }
100
100
  export function getProjectFolderAndFile(projectPath, logger) {
101
+ if (!fs.existsSync(projectPath)) {
102
+ return { folder: '', file: '' };
103
+ }
101
104
  const isDirectory = fs.lstatSync(projectPath).isDirectory();
102
105
  const folder = isDirectory ? projectPath : path.dirname(projectPath);
103
106
  if (!fs.existsSync(folder)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@directivegames/genesys.sdk",
3
- "version": "3.3.5",
3
+ "version": "3.3.7",
4
4
  "description": "Genesys SDK - A development toolkit for game development",
5
5
  "author": "Directive Games",
6
6
  "main": "index.js",
@@ -56,6 +56,16 @@
56
56
  - **Do not** create documentation or test/example code unless specifically asked to.
57
57
  - Be **very brief** on the summary when the implementation is completed.
58
58
 
59
+ ## Engine Source Reference
60
+ - The engine source code is available in the **`.engine`** folder at the project root.
61
+ - Use the engine source as the **primary reference** when implementing game code to understand:
62
+ - Class hierarchies and inheritance patterns
63
+ - Available methods, properties, and their signatures
64
+ - Engine conventions and coding patterns
65
+ - How built-in features are implemented
66
+ - When extending engine classes or implementing similar functionality, **study the existing engine code** to ensure consistency and proper integration.
67
+ - The `.engine` folder mirrors the structure of the engine package — search here first when you need to understand how a particular system works.
68
+
59
69
  ## UI
60
70
  - Any HTML UI you create **MUST NOT** be added to the document root directly. Add them to the game UI container, which can be accessed through `world.gameContainer`.
61
71