-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revises everything into a form
tsc
can build type declarations out of
Also new API doc generations system using `typedoc` Additional breaking change: * `Engine` is now a named export * `noa.setBlock` `getBlock` `addBlock` no longer accept array params
- Loading branch information
Showing
115 changed files
with
17,291 additions
and
5,392 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
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,5 +1,4 @@ | ||
npm-debug.log | ||
node_modules | ||
*-error.log | ||
/.vs | ||
ignore/ |
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,16 +1,13 @@ | ||
{ | ||
"search.exclude": { | ||
"**/node_modules": true, | ||
"docs/**/bundle.js": true, | ||
"docs/**/babylon.js": true | ||
"docs": true, | ||
"dist": true, | ||
"node_modules": true, | ||
"types": true, | ||
"ignore": true, | ||
}, | ||
"editor.detectIndentation": true, | ||
|
||
"editor.defaultFormatter": "HookyQR.beautify", | ||
|
||
"eslint.enable": true, | ||
"[json]": { | ||
"editor.defaultFormatter": "vscode.json-language-features" | ||
}, | ||
// "javascript.format.enable": false, | ||
} |
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
File renamed without changes.
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,9 @@ | ||
export default function _default(noa: any): { | ||
name: string; | ||
order: number; | ||
state: { | ||
callback: any; | ||
}; | ||
onAdd: (eid: any, state: any) => void; | ||
onRemove: (eid: any, state: any) => void; | ||
}; |
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
7 changes: 3 additions & 4 deletions
7
types/components/followsEntity.d.ts → dist/src/components/followsEntity.d.ts
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,11 @@ | ||
export default function _default( | ||
noa: any | ||
): { | ||
export default function _default(noa: any): { | ||
name: string; | ||
order: number; | ||
state: { | ||
mesh: any; | ||
offset: any; | ||
}; | ||
onAdd: (eid: number, state: any) => void; | ||
onRemove: (eid: number, state: any) => void; | ||
onAdd: (eid: any, state: any) => void; | ||
onRemove: (eid: any, state: any) => void; | ||
renderSystem: (dt: any, states: any) => void; | ||
}; |
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 @@ | ||
/** | ||
* State object of the `movement` component | ||
* @class | ||
*/ | ||
export function MovementState(): void; | ||
export class MovementState { | ||
heading: number; | ||
running: boolean; | ||
jumping: boolean; | ||
maxSpeed: number; | ||
moveForce: number; | ||
responsiveness: number; | ||
runningFriction: number; | ||
standingFriction: number; | ||
airMoveMult: number; | ||
jumpImpulse: number; | ||
jumpForce: number; | ||
jumpTime: number; | ||
airJumps: number; | ||
_jumpCount: number; | ||
_currjumptime: number; | ||
_isJumping: boolean; | ||
} | ||
/** | ||
* Movement component. State stores settings like jump height, etc., | ||
* as well as current state (running, jumping, heading angle). | ||
* Processor checks state and applies movement/friction/jump forces | ||
* to the entity's physics body. | ||
* @param {import('..').Engine} noa | ||
* @internal | ||
*/ | ||
export default function _default(noa: import('..').Engine): { | ||
name: string; | ||
order: number; | ||
state: MovementState; | ||
onAdd: any; | ||
onRemove: any; | ||
system: (dt: any, states: any) => void; | ||
}; |
10 changes: 4 additions & 6 deletions
10
types/components/physics.d.ts → dist/src/components/physics.d.ts
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
File renamed without changes.
9 changes: 3 additions & 6 deletions
9
types/components/shadow.d.ts → dist/src/components/shadow.d.ts
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,15 +1,12 @@ | ||
export default function _default( | ||
noa: any, | ||
dist: any | ||
): { | ||
export default function _default(noa: any, dist: any): { | ||
name: string; | ||
order: number; | ||
state: { | ||
size: number; | ||
_mesh: any; | ||
}; | ||
onAdd: (eid: number, state: any) => void; | ||
onRemove: (eid: number, state: any) => void; | ||
onAdd: (eid: any, state: any) => void; | ||
onRemove: (eid: any, state: any) => void; | ||
system: (dt: any, states: any) => void; | ||
renderSystem: (dt: any, states: any) => void; | ||
}; |
File renamed without changes.
Oops, something went wrong.