docs: add Networking section + process/OS builtins (net_send, owner, is_server, serialize/apply, arg, exit, run, getenv, read_char, file_*)
All checks were successful
docs / build-and-deploy (push) Successful in 1s

Sourced from the compiler's confirmed builtin set and NETWORKING-DESIGN.md, so
the reference reflects the current language surface. 93 -> 104 symbols.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Orkun ÇAKILKAYA 2026-08-29 16:39:29 +03:00
parent ccef707e4c
commit 25f987e30d
17 changed files with 144 additions and 5 deletions

View file

@ -0,0 +1,12 @@
---
id: fn-owner
name: owner / set_owner
category: networking
kind: builtin
tokens: owner set_owner
sig: owner(e) -> int set_owner(e, id)
tip: Read or assign an entity's network owner.
order: 2
---
<code>@Owned</code> gives a model an owner slot; <code>owner(e)</code> reads the peer id that owns entity <code>e</code> and <code>set_owner(e, id)</code> assigns it (the authority decides). Ownership gates who may write <code>@Sync(to: owner)</code> fields.