![]() |
Rigs of Rods 2023.09
Soft-body Physics Simulation
|
Pseudo-namespace; it doesn't exist in code or script runtime, only in this documentation. More...
Functions | |
| void | main () |
| Required; Script setup function - invoked once when script is loaded. | |
| void | frameStep (float dt_millis) |
| executed periodically, the parameter is delta time (time since last execution) in milliseconds. | |
| void | playerAdded (int uid) |
| executed when player joins. | |
| void | playerDeleted (int uid, int crashed) |
| executed when player leaves. | |
| int | streamAdded (int uid, StreamRegister@ reg) |
executed when player spawns an actor; Returns broadcastType which determines how the message is treated. | |
| int | playerChat (int uid, const string &in msg) |
ONLY ONE AT A TIME ~ executed when player sends a chat message; Returns broadcastType which determines how the message is treated. | |
| void | gameCmd (int uid, const string &in cmd) |
ONLY ONE AT A TIME ~ invoked when a script running on client calls game.sendGameCmd() | |
| void | curlStatus (curlStatusType type, int n1, int n2, string displayname, string message) |
| Reports status of background CURL request - use `game.curlRequestAsync()` to invoke one. | |
Pseudo-namespace; it doesn't exist in code or script runtime, only in this documentation.