RigsofRods
Soft-body Physics Simulation
Public Types | Public Member Functions | Data Fields
RoR::ActorSpawnRequest Struct Reference

#include <SimData.h>

+ Collaboration diagram for RoR::ActorSpawnRequest:

Public Types

enum  Origin {
  Origin::UNKNOWN, Origin::CONFIG_FILE, Origin::TERRN_DEF, Origin::USER,
  Origin::SAVEGAME, Origin::NETWORK, Origin::AI
}
 < Enables special processing More...
 

Public Member Functions

 ActorSpawnRequest ()
 
 ~ActorSpawnRequest ()
 

Data Fields

CacheEntryPtr asr_cache_entry
 Optional, overrides 'asr_filename' and 'asr_cache_entry_num'. More...
 
std::string asr_filename
 
Ogre::String asr_config
 
Ogre::Vector3 asr_position = Ogre::Vector3::ZERO
 
Ogre::Quaternion asr_rotation = Ogre::Quaternion::ZERO
 
collision_box_tasr_spawnbox = nullptr
 
CacheEntryPtr asr_skin_entry
 
CacheEntryPtr asr_tuneup_entry
 Only filled when user selected a saved/downloaded .tuneup mod in SelectorUI. More...
 
TuneupDefPtr asr_working_tuneup
 Only filled when editing tuneup via Tuning menu. More...
 
Origin asr_origin = Origin::UNKNOWN
 
int asr_debugview = 0
 
Ogre::UTFString asr_net_username
 
int asr_net_color = 0
 
int net_source_id = 0
 
int net_stream_id = 0
 
bool asr_free_position = false
 Disables the automatic spawn position adjustment. More...
 
bool asr_enter = true
 
bool asr_terrn_machine = false
 This is a fixed machinery. More...
 
std::shared_ptr< rapidjson::Document > asr_saved_state
 Pushes msg MODIFY_ACTOR (type RESTORE_SAVED) after spawn. More...
 

Detailed Description

Definition at line 789 of file SimData.h.

Member Enumeration Documentation

◆ Origin

< Enables special processing

Enumerator
UNKNOWN 
CONFIG_FILE 

'Preselected vehicle' in RoR.cfg or command line

TERRN_DEF 

Preloaded with terrain.

USER 

Direct selection by user via GUI.

SAVEGAME 

User spawned and part of a savegame.

NETWORK 

Remote controlled.

AI 

Script controlled.

Definition at line 794 of file SimData.h.

Constructor & Destructor Documentation

◆ ActorSpawnRequest()

ActorSpawnRequest::ActorSpawnRequest ( )

Definition at line 30 of file SimData.cpp.

◆ ~ActorSpawnRequest()

ActorSpawnRequest::~ActorSpawnRequest ( )

Definition at line 36 of file SimData.cpp.

Field Documentation

◆ asr_cache_entry

CacheEntryPtr RoR::ActorSpawnRequest::asr_cache_entry

Optional, overrides 'asr_filename' and 'asr_cache_entry_num'.

Definition at line 805 of file SimData.h.

◆ asr_config

Ogre::String RoR::ActorSpawnRequest::asr_config

Definition at line 807 of file SimData.h.

◆ asr_debugview

int RoR::ActorSpawnRequest::asr_debugview = 0

Definition at line 815 of file SimData.h.

◆ asr_enter

bool RoR::ActorSpawnRequest::asr_enter = true

Definition at line 821 of file SimData.h.

◆ asr_filename

std::string RoR::ActorSpawnRequest::asr_filename

Definition at line 806 of file SimData.h.

◆ asr_free_position

bool RoR::ActorSpawnRequest::asr_free_position = false

Disables the automatic spawn position adjustment.

Definition at line 820 of file SimData.h.

◆ asr_net_color

int RoR::ActorSpawnRequest::asr_net_color = 0

Definition at line 817 of file SimData.h.

◆ asr_net_username

Ogre::UTFString RoR::ActorSpawnRequest::asr_net_username

Definition at line 816 of file SimData.h.

◆ asr_origin

Origin RoR::ActorSpawnRequest::asr_origin = Origin::UNKNOWN

Definition at line 814 of file SimData.h.

◆ asr_position

Ogre::Vector3 RoR::ActorSpawnRequest::asr_position = Ogre::Vector3::ZERO

Definition at line 808 of file SimData.h.

◆ asr_rotation

Ogre::Quaternion RoR::ActorSpawnRequest::asr_rotation = Ogre::Quaternion::ZERO

Definition at line 809 of file SimData.h.

◆ asr_saved_state

std::shared_ptr<rapidjson::Document> RoR::ActorSpawnRequest::asr_saved_state

Pushes msg MODIFY_ACTOR (type RESTORE_SAVED) after spawn.

Definition at line 824 of file SimData.h.

◆ asr_skin_entry

CacheEntryPtr RoR::ActorSpawnRequest::asr_skin_entry

Definition at line 811 of file SimData.h.

◆ asr_spawnbox

collision_box_t* RoR::ActorSpawnRequest::asr_spawnbox = nullptr

Definition at line 810 of file SimData.h.

◆ asr_terrn_machine

bool RoR::ActorSpawnRequest::asr_terrn_machine = false

This is a fixed machinery.

Definition at line 822 of file SimData.h.

◆ asr_tuneup_entry

CacheEntryPtr RoR::ActorSpawnRequest::asr_tuneup_entry

Only filled when user selected a saved/downloaded .tuneup mod in SelectorUI.

Definition at line 812 of file SimData.h.

◆ asr_working_tuneup

TuneupDefPtr RoR::ActorSpawnRequest::asr_working_tuneup

Only filled when editing tuneup via Tuning menu.

Definition at line 813 of file SimData.h.

◆ net_source_id

int RoR::ActorSpawnRequest::net_source_id = 0

Definition at line 818 of file SimData.h.

◆ net_stream_id

int RoR::ActorSpawnRequest::net_stream_id = 0

Definition at line 819 of file SimData.h.


The documentation for this struct was generated from the following files: