Skip to content

Commit 1f4ad07

Browse files
authored
Update README.md in /messages
1 parent 2dcf3cf commit 1f4ad07

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

messages/README.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,15 @@ The `.proto` one describes to `protobuf` what to make. In `Makefile`, you'll see
4141

4242
## Adding a new message type
4343

44+
Check the README.md at the root of the project.
45+
46+
Otherwise, here's a different way to describe how to do it.
47+
4448
1. You need to make a `.proto` file with the new message type
4549
2. Add a line to the `Makefile`
4650
- `protoc -I=./ --python_out=./ ./##yourTypeHere##.proto`
4751
3. Do `make`, which will generate a new `_pb2.py` file. You must have protocol buffers installed to do this. If you don't want to install it, ask someone to compile your `.proto` file for you.
48-
4. Add four lines to `__init__.py`
52+
4. Four lines to `__init__.py`:
4953
- import the message type up top
5054
- add to the `MsgType` Enum
5155
- add to the `message_buffers` dictionary

0 commit comments

Comments
 (0)