Rigs of Rods 2026.01
Soft-body Physics Simulation
Loading...
Searching...
No Matches
Data Structures | Enumerations
RoRnet Namespace Reference

Data Structures

struct  ActorStreamRegister
 
struct  Header
 
struct  LegacyServerInfo
 
struct  ServerInfo
 
struct  StreamRegister
 
struct  StreamUnRegister
 
struct  UserInfo
 
struct  VehicleState
 

Enumerations

enum  MessageType
 
enum  UserAuth
 
enum  Netmask
 
enum  Lightmask
 
enum  PeerOptions
 
enum class  UiStreamsHealth
 

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 103 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_NO_RANK 

client has no ranked status

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 85 of file RoRnet.h.

◆ PeerOptions

Enumerator
PEEROPT_MUTE_CHAT 

CHAT and PRIVCHAT messages will not be allowed through.

PEEROPT_MUTE_ACTORS 

Spawn actors muted and immediatelly mute existing actors.

PEEROPT_HIDE_ACTORS 

Spawn actors hidden and immediatelly hide existing actors.

Definition at line 129 of file RoRnet.h.

◆ UiStreamsHealth

enum class RoRnet::UiStreamsHealth
strong
Enumerator
INVALID 

Invalid status.

MISMATCHES 

Loading errors - some mods could not be loaded (probably not installed)

ALL_OK 

Stream is OK - no errors loading the mods.

IDLE 

Player has no active streams.

Definition at line 137 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 75 of file RoRnet.h.