RigsofRods  2023.09
Soft-body Physics Simulation
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Data Structures | Enumerations | Variables
Script2Server Namespace Reference

Pseudo-namespace; it doesn't exist in code or script runtime, only in this documentation. More...

Data Structures

class  ServerScriptClass
 A global server object. More...
 
class  StreamRegister
 Binding of RoRnet::StreamRegister class. More...
 

Enumerations

enum  ServerType { SERVER_LAN, SERVER_INET, SERVER_AUTO }
 The server configuration, use server.get_serverMode(). More...
 
enum  broadcastType {
  BROADCAST_AUTO = -1, BROADCAST_ALL, BROADCAST_NORMAL, BROADCAST_AUTHED,
  BROADCAST_BLOCK
}
 This is returned by the playerChat()/streamAdded() callback and determines how the message is treated;
order: least restrictive to most restrictive! More...
 
enum  serverSayType { FROM_SERVER = 0, FROM_HOST, FROM_MOTD, FROM_RULES }
 Use with server.say() to specify who said it. More...
 
enum  CurlStatusType {
  CURL_STATUS_INVALID, CURL_STATUS_START, CURL_STATUS_PROGRESS, CURL_STATUS_SUCCESS,
  CURL_STATUS_FAILURE
}
 Used with `curlStatus()` callback. More...
 
enum  authType {
  AUTH_NONE = 0, AUTH_ADMIN = BITMASK(1), AUTH_RANKED = BITMASK(2), AUTH_MOD = BITMASK(3),
  AUTH_BOT = BITMASK(4), AUTH_BANNED = BITMASK(5)
}
 Binding of RoRnet::UserAuth. More...
 

Variables

 TO_ALL = -1
 constant for functions that receive an uid for sending something More...
 

Detailed Description

Pseudo-namespace; it doesn't exist in code or script runtime, only in this documentation.

Enumeration Type Documentation

◆ authType

Binding of RoRnet::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 20 of file rornet.h.

◆ broadcastType

This is returned by the playerChat()/streamAdded() callback and determines how the message is treated;
order: least restrictive to most restrictive!

Enumerator
BROADCAST_AUTO 

Do not edit the publishmode (for scripts only)

BROADCAST_ALL 

broadcast to all clients including sender

BROADCAST_NORMAL 

broadcast to all clients except sender

BROADCAST_AUTHED 

broadcast to authed users (bots)

BROADCAST_BLOCK 

no broadcast

Definition at line 31 of file globals.h.

◆ CurlStatusType

Used with `curlStatus()` callback.

Enumerator
CURL_STATUS_INVALID 

Should never be reported.

CURL_STATUS_START 

New CURL request started, n1/n2 both 0.

CURL_STATUS_PROGRESS 

Download in progress, n1 = bytes downloaded, n2 = total bytes.

CURL_STATUS_SUCCESS 

CURL request finished, n1 = CURL return code, n2 = HTTP result code, message = received payload.

CURL_STATUS_FAILURE 

CURL request finished, n1 = CURL return code, n2 = HTTP result code, message = CURL error string.

Definition at line 56 of file globals.h.

◆ serverSayType

Use with server.say() to specify who said it.

Enumerator
FROM_SERVER 
FROM_HOST 
FROM_MOTD 
FROM_RULES 

Definition at line 45 of file globals.h.

◆ ServerType

The server configuration, use server.get_serverMode().

Enumerator
SERVER_LAN 
SERVER_INET 
SERVER_AUTO 

Definition at line 21 of file globals.h.

Variable Documentation

◆ TO_ALL

Script2Server::TO_ALL = -1

constant for functions that receive an uid for sending something

Definition at line 40 of file globals.h.