diff options
author | metamuffin <metamuffin@disroot.org> | 2025-01-06 18:54:00 +0100 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2025-01-06 18:54:00 +0100 |
commit | 6af8b165fe8cbab35721a8797ca85cda454a5ff4 (patch) | |
tree | 05006c8b378dca5f033a72b0f0b3196fb8691423 /a.md | |
parent | 14d348febd549b944d03030bf748f7817a2bedac (diff) | |
download | weareserver-6af8b165fe8cbab35721a8797ca85cda454a5ff4.tar weareserver-6af8b165fe8cbab35721a8797ca85cda454a5ff4.tar.bz2 weareserver-6af8b165fe8cbab35721a8797ca85cda454a5ff4.tar.zst |
new network
Diffstat (limited to 'a.md')
-rw-r--r-- | a.md | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -5,6 +5,8 @@ Vec is stored as `len:u8 *(data:T)` ```rs type Obj = [u8; 16] type Res = [u8; 32] +len 00 connect(identity: u128) +len ff disconnect() len 01 request_resource(name: Res) len 02 respond_resource(data: Vec<u8>) len 03 add(id: Obj, prefab: Res) @@ -27,7 +29,8 @@ Prefab = *(pos:f32x3 mat:f32_3x3 part:Res<Part>) ``` Part = *(len_key:u16 len_value:u16 *(key:u8) *(value:u8)) -Attribute = 0x01 value:f32 / 0x02 buffer:Res / 0x03 texture:Res<Texture> +Attribute = 0x01 constant:f32 / 0x02 buffer:Res / 0x03 texture:Res<Texture> +NewAttribute = flag:u8 constant:f32 buffer:Res texture:Res<Texture> ``` | Key | Value Type | |