generator

command
v0.0.0-...-212ad1a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 18, 2017 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

generator generates packet structs and methods based on the packets.txt file.

packets.txt structure:

  • A packet is separated by another with a line of 4 more dashes.
  • The first line of a package declaration must have the Packet ID and the name, like this: ID: 0, Name: OsuSendUserStatus
  • The next lines before the structure declaration are considered as the description of the packet, and will be written in the final go file as the documentation of the struct.
  • The following lines must contain the structure of the Packet, in the following format (description is within brackets because optional):
  • StructField Type[, Description]

For instance:

ID: 24, Name: BanchoAnnounce

BanchoAnnounce is sent by bancho to notify the osu! clients of something.

- Message string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL