developer:legacy_protocol
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| developer:legacy_protocol [2025/01/24 23:38] – [Brick model (0x14)] Add TODO notice for testing duplicate meshes bunnynabbit | developer:legacy_protocol [2025/07/15 02:07] (current) – mixamega | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Legacy Protocol ====== | ====== Legacy Protocol ====== | ||
| - | A networking protocol used by the legacy client/ | + | A networking protocol used by the legacy client/ |
| Line 25: | Line 25: | ||
| | Uint32 | | Uint32 | ||
| | String | | String | ||
| + | A client may optionally append a byte specifying its [[https:// | ||
| + | ^ Type ^ Description ^ | ||
| + | | Byte | Client ID | | ||
| ==== Message (0x06) ==== | ==== Message (0x06) ==== | ||
| Line 31: | Line 34: | ||
| | String | | String | ||
| ==== Set brick attribute (0x09) ==== | ==== Set brick attribute (0x09) ==== | ||
| + | ^ Type ^ Description | ||
| + | | Uint32 | ||
| + | | String | ||
| + | === Type: pos === | ||
| + | Sets position of brick. | ||
| + | ^ Type ^ Description ^ | ||
| + | | Float | X position | ||
| + | | Float | Y position | ||
| + | | Float | Z position | ||
| + | === Type: rot === | ||
| + | Old method of setting brick rotation. Only allows Z rotation to be set. | ||
| + | ^ Type ^ Description ^ | ||
| + | | Uint32 | Z rotation | ||
| + | === Type: rot2 === | ||
| + | Sets brick rotation. | ||
| + | ^ Type ^ Description ^ | ||
| + | | Int32 | X rotation | ||
| + | | Int32 | Y rotation | ||
| + | | Int32 | Z rotation | ||
| + | === Type: scale === | ||
| + | Sets brick scale. | ||
| + | ^ Type ^ Description ^ | ||
| + | | Uint32 | X scale | | ||
| + | | Uint32 | Y scale | | ||
| + | | Uint32 | Z scale | | ||
| + | === Type: kill === | ||
| + | Activates physics on brick and remove brick from world after set time. | ||
| + | If time is 0 the brick will not be removed automatically. | ||
| + | ^ Type ^ Description ^ | ||
| + | | Uint32 | Time | | ||
| + | Time is in milliseconds. | ||
| + | === Type: destroy === | ||
| + | Deletes brick from world. | ||
| + | ^ Type ^ Description ^ | ||
| + | === Type: col === | ||
| + | Sets color of brick. | ||
| + | ^ Type ^ Description ^ | ||
| + | | Float | Color | | ||
| + | Color is in decimal format. | ||
| + | === Type: alpha === | ||
| + | Sets transparency of brick. | ||
| + | ^ Type ^ Description ^ | ||
| + | | Float | Alpha | | ||
| + | Alpha value ranges from 0 to 1. | ||
| + | === Type: lightcol === | ||
| + | Sets light color of brick. | ||
| + | ^ Type ^ Description ^ | ||
| + | | Uint32 | ||
| + | Color is in decimal format. | ||
| + | === Type: lightrange === | ||
| + | Sets light range of brick. | ||
| + | ^ Type ^ Description | ||
| + | | Uint32 | ||
| + | === Type: model === | ||
| + | Sets mesh on brick. | ||
| + | ^ Type ^ Description | ||
| + | | String | ||
| + | | String | ||
| + | A mesh UUID of '' | ||
| + | === Type: clickable === | ||
| + | Sets clickable status on brick. | ||
| + | ^ Type ^ Description | ||
| + | | Boolean | Clickable enabled | | ||
| + | | Uint32 | ||
| + | === Type: collide === | ||
| + | Sets collision of brick. | ||
| + | ^ Type ^ Description | ||
| + | | Boolean | Collision enabled | | ||
| + | === Type: global === | ||
| + | Moves brick to the internal global cluster model. | ||
| ==== Delete bricks (0x10) ==== | ==== Delete bricks (0x10) ==== | ||
| Delete bricks from the world. | Delete bricks from the world. | ||
developer/legacy_protocol.1737758282.txt.gz · Last modified: by bunnynabbit
