refactor(stdlib): de-abbreviate namespaces (Mem/Sys/Net/Collide)

Expand the abbreviated public namespaces to full words, part of the
language-wide de-abbreviation pass:
  Mem -> Memory, Sys -> System, Net -> Network, Collide -> Collision

Math stays (universally accepted, like int/bool). Renames the dispatch
strings, LSP signatures, docs (dirs, files, frontmatter), and the
inventory manifest; behavior is byte-identical (the bare rt_ targets are
unchanged). Reseeded; C-free bootstrap fixpoint holds; all suites green.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Orkun ÇAKILKAYA 2026-08-30 01:30:47 +03:00
parent 6e6467b515
commit 2f19c8d8e2
50 changed files with 360 additions and 360 deletions

View file

@ -0,0 +1,7 @@
---
id: network
title: Network
order: 6
---
The low-level networking seam — send and poll datagrams, serialize and apply entity state, and read ownership and role. Offline these collapse to single-player defaults.

View file

@ -0,0 +1,14 @@
---
id: network-apply
name: Network.apply
category: network
kind: namespace-method
tokens: Network.apply
sig: Network.apply(entity, buf) -> int
tip: Apply serialized state to an entity.
order: 3
ns: Network
member: apply
---
Reads synced fields from <code>buf</code> into <code>entity</code> — the inverse of <code>Network.serialize</code>.

View file

@ -0,0 +1,14 @@
---
id: network-is_owner
name: Network.is_owner
category: network
kind: namespace-method
tokens: Network.is_owner
sig: Network.is_owner(entity) -> bool
tip: Does this peer own the entity?
order: 7
ns: Network
member: is_owner
---
Returns true when this peer owns <code>entity</code> — <code>owner(entity) == local_id()</code>.

View file

@ -0,0 +1,14 @@
---
id: network-is_server
name: Network.is_server
category: network
kind: namespace-method
tokens: Network.is_server
sig: Network.is_server() -> bool
tip: Is this peer the server?
order: 6
ns: Network
member: is_server
---
Returns true on the authoritative peer. Offline it is true, so server-only guards run in single-player.

View file

@ -0,0 +1,14 @@
---
id: network-local_id
name: Network.local_id
category: network
kind: namespace-method
tokens: Network.local_id
sig: Network.local_id() -> int
tip: This peer's own id.
order: 8
ns: Network
member: local_id
---
Returns the network id of the local peer.

View file

@ -0,0 +1,14 @@
---
id: network-owner
name: Network.owner
category: network
kind: namespace-method
tokens: Network.owner
sig: Network.owner(entity) -> int
tip: The peer that owns an entity.
order: 4
ns: Network
member: owner
---
Returns the peer id that owns <code>entity</code>'s <code>@Owned</code> state.

View file

@ -0,0 +1,14 @@
---
id: network-poll
name: Network.poll
category: network
kind: namespace-method
tokens: Network.poll
sig: Network.poll(buf, cap) -> int
tip: Read an inbound datagram.
order: 1
ns: Network
member: poll
---
Reads up to <code>cap</code> bytes of the next inbound datagram into <code>buf</code> and returns the byte count, or zero when none is waiting.

View file

@ -0,0 +1,14 @@
---
id: network-send
name: Network.send
category: network
kind: namespace-method
tokens: Network.send
sig: Network.send(peer, buf, len) -> void
tip: Put a datagram on the wire.
order: 0
ns: Network
member: send
---
Sends the first <code>len</code> bytes of <code>buf</code> to <code>peer</code>. Absent a real socket it uses the built-in loopback, so offline code still runs.

View file

@ -0,0 +1,14 @@
---
id: network-serialize
name: Network.serialize
category: network
kind: namespace-method
tokens: Network.serialize
sig: Network.serialize(entity, buf) -> int
tip: Serialize an entity's synced state.
order: 2
ns: Network
member: serialize
---
Writes the <code>@Sync</code> fields of <code>entity</code> into <code>buf</code> and returns the byte count, for sending over the wire.

View file

@ -0,0 +1,14 @@
---
id: network-set_owner
name: Network.set_owner
category: network
kind: namespace-method
tokens: Network.set_owner
sig: Network.set_owner(entity, peer) -> void
tip: Assign ownership of an entity.
order: 5
ns: Network
member: set_owner
---
Sets the owning peer of <code>entity</code> to <code>peer</code>.