|
RigsofRods
Soft-body Physics Simulation
|
Go to the documentation of this file.
30 #define RORNET_MAX_PEERS 64
31 #define RORNET_MAX_MESSAGE_LENGTH 8192
32 #define RORNET_LAN_BROADCAST_PORT 13000
33 #define RORNET_MAX_USERNAME_LEN 40
35 #define RORNET_VERSION "RoRnet_2.45"
130 #pragma pack(push, 1)
< Must preserve mem. layout of RoRnet::StreamRegister
@ LIGHTMASK_CUSTOM9
custom light 9 on
@ MSG2_STREAM_UNREGISTER
remove stream
float hydrodirstate
the turning direction status
int32_t time
initial time stamp
@ LIGHTMASK_CUSTOM4
custom light 4 on
@ NETMASK_HORN
horn is in use
@ MSG2_MASTERINFO
master information response
@ NETMASK_POLICEAUDIO
police siren on
@ MSG2_WRONG_PW
server send that on wrong pw
#define RORNET_MAX_USERNAME_LEN
bytes.
@ LIGHTMASK_CUSTOM10
custom light 10 on
@ LIGHTMASK_REVERSE
reverse light on
uint8_t has_password
passworded server?
char name[128]
truck file name
int32_t origin_sourceid
origin sourceid
@ AUTH_ADMIN
admin on the server
@ LIGHTMASK_CUSTOM7
custom light 7 on
@ NETMASK_ALB_ACTIVE
anti lock brake light on?
@ NETMASK_ENGINE_MODE_MANUAL
engine mode
char sessionoptions[128]
reserved for future options
float engine_clutch
the clutch value
float engine_speed
engine RPM
@ MSG2_FULL
no more slots for us
@ MSG2_BANNED
client not allowed to join
char sectionconfig[60]
section configuration
@ MSG2_USER_JOIN
new user joined
@ MSG2_WRONG_VER_LEGACY
Wrong version.
@ LIGHTMASK_BLINK_LEFT
left blinker on
@ MSG2_UTF8_CHAT
broadcast chat line in UTF8 encoding; Payload: const char*(text)
@ NETMASK_ENGINE_MODE_MANUAL_RANGES
engine mode
int32_t origin_sourceid
origin sourceid
@ MSG2_GAME_CMD
Script message. Can be sent in both directions.
@ MSG2_STREAM_DATA
stream data
int32_t engine_gear
engine gear
int32_t authstatus
auth status set by server: AUTH_*
@ MSG2_UTF8_PRIVCHAT
private chat line in UTF8 encoding; Payload: uint32_t(uniqueid), const char*(text)
char data[128]
data used for stream setup
@ MSG2_VERSION
server responds with its version
@ LIGHTMASK_CUSTOM3
custom light 3 on
@ NETMASK_ENGINE_CONT
ignition on?
@ NETMASK_ENGINE_MODE_AUTOMATIC
engine mode
char serverpassword[40]
server password
char protocolversion[20]
protocol version being used
@ AUTH_MOD
moderator status
@ MSG2_STREAM_REGISTER
create new stream
int32_t origin_streamid
origin streamid
@ NETMASK_ENGINE_MODE_MANUAL_STICK
engine mode
@ MSG2_SERVER_SETTINGS
server send client the terrain name: server_info_t
int32_t slotnum
slot number set by server
BitMask_t lightmask
flagmask: LIGHTMASK_*
@ NETMASK_TC_ACTIVE
traction control light on?
@ MSG2_STREAM_REGISTER_RESULT
result of a stream creation
char protocolversion[20]
protocol version being used
@ LIGHTMASK_CUSTOM5
custom light 5 on
char sessiontype[10]
the requested session type. For example "normal", "bot", "rcon"
char clientversion[25]
a version number of the client. For example 1 for RoR 0.35
@ AUTH_RANKED
ranked status
@ LIGHTMASK_BRAKES
brake lights on
char clientname[10]
the name and version of the client. For exmaple: "ror" or "gamebot"
int32_t status
initial stream status
@ MSG2_WRONG_VER
wrong version
int32_t type
0 = Actor, 1 = Character, 3 = ChatSystem
@ AUTH_NONE
no authentication
@ LIGHTMASK_CUSTOM8
custom light 8 on
@ LIGHTMASK_CUSTOM2
custom light 2 on
@ NETMASK_ENGINE_MODE_SEMIAUTO
engine mode
int32_t colournum
colour set by server
char username[RORNET_MAX_USERNAME_LEN]
the nickname of the user (UTF-8)
uint32_t uniqueid
user unique id
@ MSG2_STREAM_DATA_DISCARDABLE
stream data that is allowed to be discarded
@ LIGHTMASK_BLINK_WARN
warn blinker on
char servername[128]
name of the server
@ LIGHTMASK_CUSTOM1
custom light 1 on
@ NETMASK_PARTICLE
custom particles on
int32_t bufferSize
initial stream status
int32_t origin_streamid
origin streamid
float wheelspeed
the wheel speed value
@ NETMASK_PBRAKE
parking brake
float engine_force
engine acceleration
@ MSG2_NETQUALITY
network quality information
float brake
the brake value
@ MSG2_HELLO
client sends its version as first message
@ LIGHTMASK_BEACONS
beacons on
int32_t status
initial stream status
@ MSG2_USER_INFO
user data that is sent from the server to the clients
@ NETMASK_ENGINE_RUN
engine running?
@ MSG2_WELCOME
we can proceed
BitMask_t flagmask
flagmask: NETMASK_*
@ LIGHTMASK_BLINK_RIGHT
right blinker on
char clientGUID[40]
the clients GUID
char language[10]
user's language. For example "de-DE" or "en-US"
@ MSG2_USER_LEAVE
user leaves
char terrain[128]
terrain name
char usertoken[40]
user token
@ LIGHTMASK_CUSTOM6
custom light 6 on
< Sent from the client to server and vice versa, to broadcast a new stream