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

#include <SimData.h>

+ Collaboration diagram for RoR::ActorModifyRequest:

Public Types

enum  Type {
  Type::INVALID, Type::RELOAD, Type::RESET_ON_INIT_POS, Type::RESET_ON_SPOT,
  Type::SOFT_RESET, Type::RESTORE_SAVED, Type::WAKE_UP
}
 

Public Member Functions

 ActorModifyRequest ()
 
 ~ActorModifyRequest ()
 

Data Fields

ActorInstanceID_t amr_actor = ACTORINSTANCEID_INVALID
 
Type amr_type
 
std::shared_ptr< rapidjson::Document > amr_saved_state
 
CacheEntryPtr amr_addonpart
 Primary method of specifying cache entry. More...
 
std::string amr_addonpart_fname
 Fallback method in case CacheEntry doesn't exist anymore - that means mod was uninstalled in the meantime. Used by REMOVE_ADDONPART_AND_RELOAD. More...
 

Detailed Description

Definition at line 827 of file SimData.h.

Member Enumeration Documentation

◆ Type

Enumerator
INVALID 
RELOAD 

Full reload from filesystem, requested by user.

RESET_ON_INIT_POS 
RESET_ON_SPOT 
SOFT_RESET 
RESTORE_SAVED 
WAKE_UP 

Definition at line 832 of file SimData.h.

Constructor & Destructor Documentation

◆ ActorModifyRequest()

ActorModifyRequest::ActorModifyRequest ( )

Definition at line 97 of file SimData.cpp.

◆ ~ActorModifyRequest()

ActorModifyRequest::~ActorModifyRequest ( )

Definition at line 102 of file SimData.cpp.

Field Documentation

◆ amr_actor

ActorInstanceID_t RoR::ActorModifyRequest::amr_actor = ACTORINSTANCEID_INVALID

Definition at line 843 of file SimData.h.

◆ amr_addonpart

CacheEntryPtr RoR::ActorModifyRequest::amr_addonpart

Primary method of specifying cache entry.

Definition at line 847 of file SimData.h.

◆ amr_addonpart_fname

std::string RoR::ActorModifyRequest::amr_addonpart_fname

Fallback method in case CacheEntry doesn't exist anymore - that means mod was uninstalled in the meantime. Used by REMOVE_ADDONPART_AND_RELOAD.

Definition at line 848 of file SimData.h.

◆ amr_saved_state

std::shared_ptr<rapidjson::Document> RoR::ActorModifyRequest::amr_saved_state

Definition at line 846 of file SimData.h.

◆ amr_type

Type RoR::ActorModifyRequest::amr_type

Definition at line 844 of file SimData.h.


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