Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<div align="center">
<br />
<p>
<a href="https://github.com/NanoForge-dev"><img src="https://raw.githubusercontent.com/NanoForge-dev/Engine/main/.github/logo.png" width="546" alt="NanoForge" /></a>
</p>
<br />
<p>
<a href="https://github.com/NanoForge-dev/Engine/actions/workflows/tests.yml"><img src="https://github.com/NanoForge-dev/Engine/actions/workflows/tests.yml/badge.svg" alt="Tests status" /></a>
<a href="https://github.com/NanoForge-dev/Engine/commits/main"><img src="https://img.shields.io/github/last-commit/NanoForge-dev/Engine.svg?logo=github&logoColor=ffffff" alt="Last commit" /></a>
<a href="https://github.com/NanoForge-dev/Engine/graphs/contributors"><img src="https://img.shields.io/github/contributors/NanoForge-dev/Engine.svg?maxAge=3600&logo=github&logoColor=fff&color=00c7be" alt="Contributors" /></a>
</p>
<br />

[<img src="https://raw.githubusercontent.com/NanoForge-dev/Engine/main/.github/logo.png" width="546" alt="NanoForge" />](https://github.com/NanoForge-dev)

<br />

[<img src="https://github.com/NanoForge-dev/Engine/actions/workflows/tests.yml/badge.svg" alt="Tests status" />](https://github.com/NanoForge-dev/Engine/actions/workflows/tests.yml)
[<img src="https://img.shields.io/github/last-commit/NanoForge-dev/Engine.svg?logo=github&logoColor=ffffff" alt="Last commit" />](https://github.com/NanoForge-dev/Engine/commits/main)
[<img src="https://img.shields.io/github/contributors/NanoForge-dev/Engine.svg?maxAge=3600&logo=github&logoColor=fff&color=00c7be" alt="Contributors" />](https://github.com/NanoForge-dev/Engine/graphs/contributors)

</div>

## About
Expand Down
8 changes: 4 additions & 4 deletions docs/docs/network/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,10 @@ Both libraries read their settings from the environment, validated at `app.init`

```dotenv .env
NANOFORGE_CLIENT_SERVER_ADDRESS=127.0.0.1
NANOFORGE_CLIENT_SERVER_TCP_PORT=4445
NANOFORGE_CLIENT_SERVER_UDP_PORT=4444
NANOFORGE_SERVER_LISTENING_TCP_PORT=4445
NANOFORGE_SERVER_LISTENING_UDP_PORT=4444
NANOFORGE_CLIENT_SERVER_TCP_PORT=4444
NANOFORGE_CLIENT_SERVER_UDP_PORT=4445
NANOFORGE_SERVER_LISTENING_TCP_PORT=4444
NANOFORGE_SERVER_LISTENING_UDP_PORT=4445
```

Client variables:
Expand Down
4 changes: 2 additions & 2 deletions docs/docs/network/network-peer.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ The environment is the same as with a dedicated server. The `nf` CLI removes the

```dotenv
NANOFORGE_CLIENT_SERVER_ADDRESS=127.0.0.1
NANOFORGE_CLIENT_SERVER_TCP_PORT=4445
NANOFORGE_SERVER_LISTENING_TCP_PORT=4445
NANOFORGE_CLIENT_SERVER_TCP_PORT=4444
NANOFORGE_SERVER_LISTENING_TCP_PORT=4444

# STUN for every player; add a TURN server for players behind strict NATs
NANOFORGE_ICE_SERVERS=stun:stun.cloudflare.com:3478
Expand Down
6 changes: 3 additions & 3 deletions docs/docs/network/network-server-api.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ The [server guide](./network-server) has examples.

Send a payload to every client reachable on the channel.

Parameter `data`: [`NetworkPayload`](#networkpayload), bytes, a string or any
Parameter `data`: [`NetworkPayload`](#networkpayload-and-networkdata), bytes, a string or any
JSON value.

Option `channel`: `Channel` to send on. `Channel.ReliableOrdered` by default.
Expand All @@ -46,7 +46,7 @@ the channel. Throws a `TypeError` when `data` cannot be encoded as JSON

Parameter `clientId`: `ClientId` client identifier.

Parameter `data`: [`NetworkPayload`](#networkpayload), bytes, a string or any
Parameter `data`: [`NetworkPayload`](#networkpayload-and-networkdata), bytes, a string or any
JSON value.

Option `channel`: `Channel` to send on. `Channel.ReliableOrdered` by default.
Expand All @@ -62,7 +62,7 @@ show up here.
Option `channel`: `Channel` to read from. Without it, the packets of every
configured channel are merged per client, reliable channels first.

Returns: `Map<ClientId, NetworkData[]>`, see [NetworkData](#networkdata)
Returns: `Map<ClientId, NetworkData[]>`, see [NetworkData](#networkpayload-and-networkdata)

### getConnectedClients(options?)

Expand Down
24 changes: 12 additions & 12 deletions modules/ecs/README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
<div align="center">
<br />
<p>
<a href="https://github.com/NanoForge-dev"><img src="https://raw.githubusercontent.com/NanoForge-dev/Engine/main/.github/logo.png" width="546" alt="NanoForge" /></a>
</p>
<br />
<p>
<a href="https://www.npmjs.com/package/@nanoforge-dev/ecs"><img src="https://img.shields.io/npm/v/@nanoforge-dev/ecs.svg?maxAge=3600" alt="npm version" /></a>
<a href="https://www.npmjs.com/package/@nanoforge-dev/ecs"><img src="https://img.shields.io/npm/dt/@nanoforge-dev/ecs.svg?maxAge=3600" alt="npm downloads" /></a>
<a href="https://github.com/NanoForge-dev/Engine/actions/workflows/tests.yml"><img src="https://github.com/NanoForge-dev/Engine/actions/workflows/tests.yml/badge.svg" alt="Tests status" /></a>
<a href="https://github.com/NanoForge-dev/Engine/commits/main/modules/ecs"><img src="https://img.shields.io/github/last-commit/NanoForge-dev/Engine.svg?logo=github&logoColor=ffffff&path=modules%2Fecs" alt="Last commit" /></a>
<a href="https://github.com/NanoForge-dev/Engine/graphs/contributors"><img src="https://img.shields.io/github/contributors/NanoForge-dev/Engine.svg?maxAge=3600&logo=github&logoColor=fff&color=00c7be" alt="Contributors" /></a>
</p>
<br />

[<img src="https://raw.githubusercontent.com/NanoForge-dev/Engine/main/.github/logo.png" width="546" alt="NanoForge" />](https://github.com/NanoForge-dev)

<br />

[<img src="https://img.shields.io/npm/v/@nanoforge-dev/ecs.svg?maxAge=3600" alt="npm version" />](https://www.npmjs.com/package/@nanoforge-dev/ecs)
[<img src="https://img.shields.io/npm/dt/@nanoforge-dev/ecs.svg?maxAge=3600" alt="npm downloads" />](https://www.npmjs.com/package/@nanoforge-dev/ecs)
[<img src="https://github.com/NanoForge-dev/Engine/actions/workflows/tests.yml/badge.svg" alt="Tests status" />](https://github.com/NanoForge-dev/Engine/actions/workflows/tests.yml)
[<img src="https://img.shields.io/github/last-commit/NanoForge-dev/Engine.svg?logo=github&logoColor=ffffff&path=modules%2Fecs" alt="Last commit" />](https://github.com/NanoForge-dev/Engine/commits/main/modules/ecs)
[<img src="https://img.shields.io/github/contributors/NanoForge-dev/Engine.svg?maxAge=3600&logo=github&logoColor=fff&color=00c7be" alt="Contributors" />](https://github.com/NanoForge-dev/Engine/graphs/contributors)

</div>

## About
Expand Down
24 changes: 12 additions & 12 deletions modules/editor/README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
<div align="center">
<br />
<p>
<a href="https://github.com/NanoForge-dev"><img src="https://raw.githubusercontent.com/NanoForge-dev/Engine/main/.github/logo.png" width="546" alt="NanoForge" /></a>
</p>
<br />
<p>
<a href="https://www.npmjs.com/package/@nanoforge-dev/editor-lib"><img src="https://img.shields.io/npm/v/@nanoforge-dev/editor-lib.svg?maxAge=3600" alt="npm version" /></a>
<a href="https://www.npmjs.com/package/@nanoforge-dev/editor-lib"><img src="https://img.shields.io/npm/dt/@nanoforge-dev/editor-lib.svg?maxAge=3600" alt="npm downloads" /></a>
<a href="https://github.com/NanoForge-dev/Engine/actions/workflows/tests.yml"><img src="https://github.com/NanoForge-dev/Engine/actions/workflows/tests.yml/badge.svg" alt="Tests status" /></a>
<a href="https://github.com/NanoForge-dev/Engine/commits/main/packages/editor"><img src="https://img.shields.io/github/last-commit/NanoForge-dev/Engine.svg?logo=github&logoColor=ffffff&path=packages%2Feditor" alt="Last commit" /></a>
<a href="https://github.com/NanoForge-dev/Engine/graphs/contributors"><img src="https://img.shields.io/github/contributors/NanoForge-dev/Engine.svg?maxAge=3600&logo=github&logoColor=fff&color=00c7be" alt="Contributors" /></a>
</p>
<br />

[<img src="https://raw.githubusercontent.com/NanoForge-dev/Engine/main/.github/logo.png" width="546" alt="NanoForge" />](https://github.com/NanoForge-dev)

<br />

[<img src="https://img.shields.io/npm/v/@nanoforge-dev/editor-lib.svg?maxAge=3600" alt="npm version" />](https://www.npmjs.com/package/@nanoforge-dev/editor-lib)
[<img src="https://img.shields.io/npm/dt/@nanoforge-dev/editor-lib.svg?maxAge=3600" alt="npm downloads" />](https://www.npmjs.com/package/@nanoforge-dev/editor-lib)
[<img src="https://github.com/NanoForge-dev/Engine/actions/workflows/tests.yml/badge.svg" alt="Tests status" />](https://github.com/NanoForge-dev/Engine/actions/workflows/tests.yml)
[<img src="https://img.shields.io/github/last-commit/NanoForge-dev/Engine.svg?logo=github&logoColor=ffffff&path=packages%2Feditor" alt="Last commit" />](https://github.com/NanoForge-dev/Engine/commits/main/packages/editor)
[<img src="https://img.shields.io/github/contributors/NanoForge-dev/Engine.svg?maxAge=3600&logo=github&logoColor=fff&color=00c7be" alt="Contributors" />](https://github.com/NanoForge-dev/Engine/graphs/contributors)

</div>

## About
Expand Down
24 changes: 12 additions & 12 deletions modules/graphics-2d/README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
<div align="center">
<br />
<p>
<a href="https://github.com/NanoForge-dev"><img src="https://raw.githubusercontent.com/NanoForge-dev/Engine/main/.github/logo.png" width="546" alt="NanoForge" /></a>
</p>
<br />
<p>
<a href="https://www.npmjs.com/package/@nanoforge-dev/graphics-2d"><img src="https://img.shields.io/npm/v/@nanoforge-dev/graphics-2d.svg?maxAge=3600" alt="npm version" /></a>
<a href="https://www.npmjs.com/package/@nanoforge-dev/graphics-2d"><img src="https://img.shields.io/npm/dt/@nanoforge-dev/graphics-2d.svg?maxAge=3600" alt="npm downloads" /></a>
<a href="https://github.com/NanoForge-dev/Engine/actions/workflows/tests.yml"><img src="https://github.com/NanoForge-dev/Engine/actions/workflows/tests.yml/badge.svg" alt="Tests status" /></a>
<a href="https://github.com/NanoForge-dev/Engine/commits/main/modules/graphics-2d"><img src="https://img.shields.io/github/last-commit/NanoForge-dev/Engine.svg?logo=github&logoColor=ffffff&path=modules%2Fgraphics-2d" alt="Last commit" /></a>
<a href="https://github.com/NanoForge-dev/Engine/graphs/contributors"><img src="https://img.shields.io/github/contributors/NanoForge-dev/Engine.svg?maxAge=3600&logo=github&logoColor=fff&color=00c7be" alt="Contributors" /></a>
</p>
<br />

[<img src="https://raw.githubusercontent.com/NanoForge-dev/Engine/main/.github/logo.png" width="546" alt="NanoForge" />](https://github.com/NanoForge-dev)

<br />

[<img src="https://img.shields.io/npm/v/@nanoforge-dev/graphics-2d.svg?maxAge=3600" alt="npm version" />](https://www.npmjs.com/package/@nanoforge-dev/graphics-2d)
[<img src="https://img.shields.io/npm/dt/@nanoforge-dev/graphics-2d.svg?maxAge=3600" alt="npm downloads" />](https://www.npmjs.com/package/@nanoforge-dev/graphics-2d)
[<img src="https://github.com/NanoForge-dev/Engine/actions/workflows/tests.yml/badge.svg" alt="Tests status" />](https://github.com/NanoForge-dev/Engine/actions/workflows/tests.yml)
[<img src="https://img.shields.io/github/last-commit/NanoForge-dev/Engine.svg?logo=github&logoColor=ffffff&path=modules%2Fgraphics-2d" alt="Last commit" />](https://github.com/NanoForge-dev/Engine/commits/main/modules/graphics-2d)
[<img src="https://img.shields.io/github/contributors/NanoForge-dev/Engine.svg?maxAge=3600&logo=github&logoColor=fff&color=00c7be" alt="Contributors" />](https://github.com/NanoForge-dev/Engine/graphs/contributors)

</div>

## About
Expand Down
24 changes: 12 additions & 12 deletions modules/graphics-3d/README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
<div align="center">
<br />
<p>
<a href="https://github.com/NanoForge-dev"><img src="https://raw.githubusercontent.com/NanoForge-dev/Engine/main/.github/logo.png" width="546" alt="NanoForge" /></a>
</p>
<br />
<p>
<a href="https://www.npmjs.com/package/@nanoforge-dev/graphics-3d"><img src="https://img.shields.io/npm/v/@nanoforge-dev/graphics-3d.svg?maxAge=3600" alt="npm version" /></a>
<a href="https://www.npmjs.com/package/@nanoforge-dev/graphics-3d"><img src="https://img.shields.io/npm/dt/@nanoforge-dev/graphics-3d.svg?maxAge=3600" alt="npm downloads" /></a>
<a href="https://github.com/NanoForge-dev/Engine/actions/workflows/tests.yml"><img src="https://github.com/NanoForge-dev/Engine/actions/workflows/tests.yml/badge.svg" alt="Tests status" /></a>
<a href="https://github.com/NanoForge-dev/Engine/commits/main/modules/graphics-3d"><img src="https://img.shields.io/github/last-commit/NanoForge-dev/Engine.svg?logo=github&logoColor=ffffff&path=modules%2Fgraphics-3d" alt="Last commit" /></a>
<a href="https://github.com/NanoForge-dev/Engine/graphs/contributors"><img src="https://img.shields.io/github/contributors/NanoForge-dev/Engine.svg?maxAge=3600&logo=github&logoColor=fff&color=00c7be" alt="Contributors" /></a>
</p>
<br />

[<img src="https://raw.githubusercontent.com/NanoForge-dev/Engine/main/.github/logo.png" width="546" alt="NanoForge" />](https://github.com/NanoForge-dev)

<br />

[<img src="https://img.shields.io/npm/v/@nanoforge-dev/graphics-3d.svg?maxAge=3600" alt="npm version" />](https://www.npmjs.com/package/@nanoforge-dev/graphics-3d)
[<img src="https://img.shields.io/npm/dt/@nanoforge-dev/graphics-3d.svg?maxAge=3600" alt="npm downloads" />](https://www.npmjs.com/package/@nanoforge-dev/graphics-3d)
[<img src="https://github.com/NanoForge-dev/Engine/actions/workflows/tests.yml/badge.svg" alt="Tests status" />](https://github.com/NanoForge-dev/Engine/actions/workflows/tests.yml)
[<img src="https://img.shields.io/github/last-commit/NanoForge-dev/Engine.svg?logo=github&logoColor=ffffff&path=modules%2Fgraphics-3d" alt="Last commit" />](https://github.com/NanoForge-dev/Engine/commits/main/modules/graphics-3d)
[<img src="https://img.shields.io/github/contributors/NanoForge-dev/Engine.svg?maxAge=3600&logo=github&logoColor=fff&color=00c7be" alt="Contributors" />](https://github.com/NanoForge-dev/Engine/graphs/contributors)

</div>

## About
Expand Down
24 changes: 12 additions & 12 deletions modules/input/README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
<div align="center">
<br />
<p>
<a href="https://github.com/NanoForge-dev"><img src="https://raw.githubusercontent.com/NanoForge-dev/Engine/main/.github/logo.png" width="546" alt="NanoForge" /></a>
</p>
<br />
<p>
<a href="https://www.npmjs.com/package/@nanoforge-dev/input"><img src="https://img.shields.io/npm/v/@nanoforge-dev/input.svg?maxAge=3600" alt="npm version" /></a>
<a href="https://www.npmjs.com/package/@nanoforge-dev/input"><img src="https://img.shields.io/npm/dt/@nanoforge-dev/input.svg?maxAge=3600" alt="npm downloads" /></a>
<a href="https://github.com/NanoForge-dev/Engine/actions/workflows/tests.yml"><img src="https://github.com/NanoForge-dev/Engine/actions/workflows/tests.yml/badge.svg" alt="Tests status" /></a>
<a href="https://github.com/NanoForge-dev/Engine/commits/main/modules/input"><img src="https://img.shields.io/github/last-commit/NanoForge-dev/Engine.svg?logo=github&logoColor=ffffff&path=modules%2Finput" alt="Last commit" /></a>
<a href="https://github.com/NanoForge-dev/Engine/graphs/contributors"><img src="https://img.shields.io/github/contributors/NanoForge-dev/Engine.svg?maxAge=3600&logo=github&logoColor=fff&color=00c7be" alt="Contributors" /></a>
</p>
<br />

[<img src="https://raw.githubusercontent.com/NanoForge-dev/Engine/main/.github/logo.png" width="546" alt="NanoForge" />](https://github.com/NanoForge-dev)

<br />

[<img src="https://img.shields.io/npm/v/@nanoforge-dev/input.svg?maxAge=3600" alt="npm version" />](https://www.npmjs.com/package/@nanoforge-dev/input)
[<img src="https://img.shields.io/npm/dt/@nanoforge-dev/input.svg?maxAge=3600" alt="npm downloads" />](https://www.npmjs.com/package/@nanoforge-dev/input)
[<img src="https://github.com/NanoForge-dev/Engine/actions/workflows/tests.yml/badge.svg" alt="Tests status" />](https://github.com/NanoForge-dev/Engine/actions/workflows/tests.yml)
[<img src="https://img.shields.io/github/last-commit/NanoForge-dev/Engine.svg?logo=github&logoColor=ffffff&path=modules%2Finput" alt="Last commit" />](https://github.com/NanoForge-dev/Engine/commits/main/modules/input)
[<img src="https://img.shields.io/github/contributors/NanoForge-dev/Engine.svg?maxAge=3600&logo=github&logoColor=fff&color=00c7be" alt="Contributors" />](https://github.com/NanoForge-dev/Engine/graphs/contributors)

</div>

## About
Expand Down
24 changes: 12 additions & 12 deletions modules/music/README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
<div align="center">
<br />
<p>
<a href="https://github.com/NanoForge-dev"><img src="https://raw.githubusercontent.com/NanoForge-dev/Engine/main/.github/logo.png" width="546" alt="NanoForge" /></a>
</p>
<br />
<p>
<a href="https://www.npmjs.com/package/@nanoforge-dev/music"><img src="https://img.shields.io/npm/v/@nanoforge-dev/music.svg?maxAge=3600" alt="npm version" /></a>
<a href="https://www.npmjs.com/package/@nanoforge-dev/music"><img src="https://img.shields.io/npm/dt/@nanoforge-dev/music.svg?maxAge=3600" alt="npm downloads" /></a>
<a href="https://github.com/NanoForge-dev/Engine/actions/workflows/tests.yml"><img src="https://github.com/NanoForge-dev/Engine/actions/workflows/tests.yml/badge.svg" alt="Tests status" /></a>
<a href="https://github.com/NanoForge-dev/Engine/commits/main/modules/music"><img src="https://img.shields.io/github/last-commit/NanoForge-dev/Engine.svg?logo=github&logoColor=ffffff&path=modules%2Fmusic" alt="Last commit" /></a>
<a href="https://github.com/NanoForge-dev/Engine/graphs/contributors"><img src="https://img.shields.io/github/contributors/NanoForge-dev/Engine.svg?maxAge=3600&logo=github&logoColor=fff&color=00c7be" alt="Contributors" /></a>
</p>
<br />

[<img src="https://raw.githubusercontent.com/NanoForge-dev/Engine/main/.github/logo.png" width="546" alt="NanoForge" />](https://github.com/NanoForge-dev)

<br />

[<img src="https://img.shields.io/npm/v/@nanoforge-dev/music.svg?maxAge=3600" alt="npm version" />](https://www.npmjs.com/package/@nanoforge-dev/music)
[<img src="https://img.shields.io/npm/dt/@nanoforge-dev/music.svg?maxAge=3600" alt="npm downloads" />](https://www.npmjs.com/package/@nanoforge-dev/music)
[<img src="https://github.com/NanoForge-dev/Engine/actions/workflows/tests.yml/badge.svg" alt="Tests status" />](https://github.com/NanoForge-dev/Engine/actions/workflows/tests.yml)
[<img src="https://img.shields.io/github/last-commit/NanoForge-dev/Engine.svg?logo=github&logoColor=ffffff&path=modules%2Fmusic" alt="Last commit" />](https://github.com/NanoForge-dev/Engine/commits/main/modules/music)
[<img src="https://img.shields.io/github/contributors/NanoForge-dev/Engine.svg?maxAge=3600&logo=github&logoColor=fff&color=00c7be" alt="Contributors" />](https://github.com/NanoForge-dev/Engine/graphs/contributors)

</div>

## About
Expand Down
Loading
Loading