RigsofRods
Soft-body Physics Simulation
Data Structures | Enumerations
RoRnet Namespace Reference

Data Structures

struct  ActorStreamRegister
 
struct  Header
 < Common header for every packet More...
 
struct  LegacyServerInfo
 
struct  ServerInfo
 
struct  StreamRegister
 < Sent from the client to server and vice versa, to broadcast a new stream More...
 
struct  StreamUnRegister
 
struct  UserInfo
 
struct  VehicleState
 < Formerly oob_t More...
 

Enumerations

enum  MessageType {
  MSG2_HELLO = 1025, MSG2_FULL, MSG2_WRONG_PW, MSG2_WRONG_VER,
  MSG2_BANNED, MSG2_WELCOME, MSG2_VERSION, MSG2_SERVER_SETTINGS,
  MSG2_USER_INFO, MSG2_MASTERINFO, MSG2_NETQUALITY, MSG2_GAME_CMD,
  MSG2_USER_JOIN, MSG2_USER_LEAVE, MSG2_UTF8_CHAT, MSG2_UTF8_PRIVCHAT,
  MSG2_STREAM_REGISTER, MSG2_STREAM_REGISTER_RESULT, MSG2_STREAM_UNREGISTER, MSG2_STREAM_DATA,
  MSG2_STREAM_DATA_DISCARDABLE, MSG2_WRONG_VER_LEGACY = 1003
}
 
enum  UserAuth {
  AUTH_NONE = 0, AUTH_ADMIN = BITMASK(1), AUTH_RANKED = BITMASK(2), AUTH_MOD = BITMASK(3),
  AUTH_BOT = BITMASK(4), AUTH_BANNED = BITMASK(5)
}
 
enum  Netmask {
  NETMASK_HORN = BITMASK(1), NETMASK_POLICEAUDIO = BITMASK(2), NETMASK_PARTICLE = BITMASK(3), NETMASK_PBRAKE = BITMASK(4),
  NETMASK_TC_ACTIVE = BITMASK(5), NETMASK_ALB_ACTIVE = BITMASK(6), NETMASK_ENGINE_CONT = BITMASK(7), NETMASK_ENGINE_RUN = BITMASK(8),
  NETMASK_ENGINE_MODE_AUTOMATIC = BITMASK(9), NETMASK_ENGINE_MODE_SEMIAUTO = BITMASK(10), NETMASK_ENGINE_MODE_MANUAL = BITMASK(11), NETMASK_ENGINE_MODE_MANUAL_STICK = BITMASK(12),
  NETMASK_ENGINE_MODE_MANUAL_RANGES = BITMASK(13)
}
 
enum  Lightmask {
  LIGHTMASK_CUSTOM1 = BITMASK(1), LIGHTMASK_CUSTOM2 = BITMASK(2), LIGHTMASK_CUSTOM3 = BITMASK(3), LIGHTMASK_CUSTOM4 = BITMASK(4),
  LIGHTMASK_CUSTOM5 = BITMASK(5), LIGHTMASK_CUSTOM6 = BITMASK(6), LIGHTMASK_CUSTOM7 = BITMASK(7), LIGHTMASK_CUSTOM8 = BITMASK(8),
  LIGHTMASK_CUSTOM9 = BITMASK(9), LIGHTMASK_CUSTOM10 = BITMASK(10), LIGHTMASK_HEADLIGHT = BITMASK(11), LIGHTMASK_HIGHBEAMS = BITMASK(12),
  LIGHTMASK_FOGLIGHTS = BITMASK(13), LIGHTMASK_SIDELIGHTS = BITMASK(14), LIGHTMASK_BRAKES = BITMASK(15), LIGHTMASK_REVERSE = BITMASK(16),
  LIGHTMASK_BEACONS = BITMASK(17), LIGHTMASK_BLINK_LEFT = BITMASK(18), LIGHTMASK_BLINK_RIGHT = BITMASK(19), LIGHTMASK_BLINK_WARN = BITMASK(20)
}
 

Enumeration Type Documentation

◆ Lightmask

Enumerator
LIGHTMASK_CUSTOM1 

custom light 1 on

LIGHTMASK_CUSTOM2 

custom light 2 on

LIGHTMASK_CUSTOM3 

custom light 3 on

LIGHTMASK_CUSTOM4 

custom light 4 on

LIGHTMASK_CUSTOM5 

custom light 5 on

LIGHTMASK_CUSTOM6 

custom light 6 on

LIGHTMASK_CUSTOM7 

custom light 7 on

LIGHTMASK_CUSTOM8 

custom light 8 on

LIGHTMASK_CUSTOM9 

custom light 9 on

LIGHTMASK_CUSTOM10 

custom light 10 on

LIGHTMASK_HEADLIGHT 
LIGHTMASK_HIGHBEAMS 
LIGHTMASK_FOGLIGHTS 
LIGHTMASK_SIDELIGHTS 
LIGHTMASK_BRAKES 

brake lights on

LIGHTMASK_REVERSE 

reverse light on

LIGHTMASK_BEACONS 

beacons on

LIGHTMASK_BLINK_LEFT 

left blinker on

LIGHTMASK_BLINK_RIGHT 

right blinker on

LIGHTMASK_BLINK_WARN 

warn blinker on

Definition at line 101 of file RoRnet.h.

◆ MessageType

Enumerator
MSG2_HELLO 

client sends its version as first message

MSG2_FULL 

no more slots for us

MSG2_WRONG_PW 

server send that on wrong pw

MSG2_WRONG_VER 

wrong version

MSG2_BANNED 

client not allowed to join

MSG2_WELCOME 

we can proceed

MSG2_VERSION 

server responds with its version

MSG2_SERVER_SETTINGS 

server send client the terrain name: server_info_t

MSG2_USER_INFO 

user data that is sent from the server to the clients

MSG2_MASTERINFO 

master information response

MSG2_NETQUALITY 

network quality information

MSG2_GAME_CMD 

Script message. Can be sent in both directions.

MSG2_USER_JOIN 

new user joined

MSG2_USER_LEAVE 

user leaves

MSG2_UTF8_CHAT 

broadcast chat line in UTF8 encoding; Payload: const char*(text)

MSG2_UTF8_PRIVCHAT 

private chat line in UTF8 encoding; Payload: uint32_t(uniqueid), const char*(text)

MSG2_STREAM_REGISTER 

create new stream

MSG2_STREAM_REGISTER_RESULT 

result of a stream creation

MSG2_STREAM_UNREGISTER 

remove stream

MSG2_STREAM_DATA 

stream data

MSG2_STREAM_DATA_DISCARDABLE 

stream data that is allowed to be discarded

MSG2_WRONG_VER_LEGACY 

Wrong version.

Definition at line 37 of file RoRnet.h.

◆ Netmask

Enumerator
NETMASK_HORN 

horn is in use

NETMASK_POLICEAUDIO 

police siren on

NETMASK_PARTICLE 

custom particles on

NETMASK_PBRAKE 

parking brake

NETMASK_TC_ACTIVE 

traction control light on?

NETMASK_ALB_ACTIVE 

anti lock brake light on?

NETMASK_ENGINE_CONT 

ignition on?

NETMASK_ENGINE_RUN 

engine running?

NETMASK_ENGINE_MODE_AUTOMATIC 

engine mode

NETMASK_ENGINE_MODE_SEMIAUTO 

engine mode

NETMASK_ENGINE_MODE_MANUAL 

engine mode

NETMASK_ENGINE_MODE_MANUAL_STICK 

engine mode

NETMASK_ENGINE_MODE_MANUAL_RANGES 

engine mode

Definition at line 83 of file RoRnet.h.

◆ UserAuth

Enumerator
AUTH_NONE 

no authentication

AUTH_ADMIN 

admin on the server

AUTH_RANKED 

ranked status

AUTH_MOD 

moderator status

AUTH_BOT 

bot status

AUTH_BANNED 

banned

Definition at line 73 of file RoRnet.h.