|
Arma Reforger Script API
|
Network packet of variables for entity placing and transformation. More...
Public Member Functions | |
| void | GetWorldTransform (out vector outTransform[4]) |
| Get world transformation matrix. | |
| bool | Deserialize () |
| Convert replication-friendly values to actual variables. | |
| void | SetTarget (SCR_EditableEntityComponent target) |
Static Public Member Functions | |
| static void | Encode (SSnapSerializerBase snapshot, ScriptCtx hint, ScriptBitSerializer packet) |
| static bool | Decode (ScriptBitSerializer packet, ScriptCtx hint, SSnapSerializerBase snapshot) |
| static bool | SnapCompare (SSnapSerializerBase lhs, SSnapSerializerBase rhs, ScriptCtx hint) |
| static bool | PropCompare (SCR_EditorPreviewParams prop, SSnapSerializerBase snapshot, ScriptCtx hint) |
| static bool | Extract (SCR_EditorPreviewParams prop, ScriptCtx hint, SSnapSerializerBase snapshot) |
| static bool | Inject (SSnapSerializerBase snapshot, ScriptCtx hint, SCR_EditorPreviewParams prop) |
| static SCR_EditorPreviewParams | CreateParams (vector transform[4], RplId parentID=Replication.INVALID_ID, EEditorTransformVertical verticalMode=EEditorTransformVertical.SEA, bool isUnderwater=false, SCR_EditableEntityComponent target=null, EEditableEntityInteraction targetInteraction=EEditableEntityInteraction.NONE) |
| Create params for entity placement. | |
| static SCR_EditorPreviewParams | CreateParamsFromPreview (SCR_PreviewEntityEditorComponent previewManager, SCR_EditableEntityComponent parent=null, bool parentChanged=false) |
| Create params packet for network transmission. | |
Public Attributes | |
| SCR_EditableEntityComponent | m_Parent |
| RplId | m_ParentID = RplId.Invalid() |
| bool | m_bParentChanged |
| RplId | m_TargetRplID = RplId.Invalid() |
| EntityID | m_TargetStaticID |
| SCR_EditableEntityComponent | m_Target |
| EEditableEntityInteraction | m_TargetInteraction |
| vector | m_vTransform [4] |
| vector | m_Offset |
| bool | m_bIsUnderwater |
| EEditorTransformVertical | m_VerticalMode |
| EEditorPlacingFlags | m_PlacingFlags |
| SCR_EditableEntityComponent | m_CurrentLayer |
Network packet of variables for entity placing and transformation.
|
static |
Create params for entity placement.
| transform | Transformation matrix where the entity will be created |
| parentID | Replication ID of parent entity |
| verticalMode | Alignment rules |
| isUnderwater | True if the entity is being placed under water surface |
| targetID | Replication ID of entity on/inside which the new entity is being spawned |
| targetInteraction | Type of interaction with the target entity |
|
static |
Create params packet for network transmission.
| previewManager | Manager from which individual params will be extracted - must not be null |
| parent | Currently selected parent layer |
| parentChanged | True if current layer changed while editing |
|
static |
| bool SCR_EditorPreviewParams.Deserialize | ( | ) |
Convert replication-friendly values to actual variables.
|
static |
|
static |
| void SCR_EditorPreviewParams.GetWorldTransform | ( | out vector | outTransform[4] | ) |
Get world transformation matrix.
If offset is used, it will be applied to it.
| [out] | outTransform | Variable to be filled with transformation matrix |
|
static |
|
static |
| void SCR_EditorPreviewParams.SetTarget | ( | SCR_EditableEntityComponent | target | ) |
| target |
|
static |
| bool SCR_EditorPreviewParams.m_bIsUnderwater |
| bool SCR_EditorPreviewParams.m_bParentChanged |
| SCR_EditableEntityComponent SCR_EditorPreviewParams.m_CurrentLayer |
| vector SCR_EditorPreviewParams.m_Offset |
| SCR_EditableEntityComponent SCR_EditorPreviewParams.m_Parent |
| RplId SCR_EditorPreviewParams.m_ParentID = RplId.Invalid() |
| EEditorPlacingFlags SCR_EditorPreviewParams.m_PlacingFlags |
| SCR_EditableEntityComponent SCR_EditorPreviewParams.m_Target |
| EEditableEntityInteraction SCR_EditorPreviewParams.m_TargetInteraction |
| RplId SCR_EditorPreviewParams.m_TargetRplID = RplId.Invalid() |
| EntityID SCR_EditorPreviewParams.m_TargetStaticID |
| EEditorTransformVertical SCR_EditorPreviewParams.m_VerticalMode |
| vector SCR_EditorPreviewParams.m_vTransform[4] |