diff options
Diffstat (limited to 'a.md')
-rw-r--r-- | a.md | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -16,10 +16,19 @@ ff disconnect() 06 pose(id: Obj, params: Vec<f32>) 07 parent(parent: Obj, child: Obj) 08 sound(id: Obj, data: Vec<u8>) +09 prefab_index(res: Res) ``` ## Resource formats +### PrefabIndex + +``` +PrefabIndex = *(len_key:u16 len_value:u16 *(key:u8) *(value:u8)) +``` + +Key is string with model name. Value is prefab resource. + ### Prefab ``` @@ -34,7 +43,7 @@ Attribute = 0x01 constant:f32 / 0x02 buffer:Res / 0x03 texture:Res<Texture> NewAttribute = flag:u8 constant:f32 buffer:Res texture:Res<Texture> ``` -Combinations of g_*, va_* and tex_* are multiplied except normal which is added. +Combinations of g__, va__ and tex_* are multiplied except normal which is added. Defaults should be the identity for that operation, so default is 1 / white except normals are zero. |