Arma Reforger Script API
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
SCR_BasePreviewEntry Interface Reference

Public Member Functions

void SetScale (float scale)
 Save scale of entity within vector scale.
 
float GetScale ()
 Get the scale saved in the Preview entity.
 
void SaveTransform (vector transform[4])
 Save transformation matrix in entry data.
 
void LoadTransform (vector outTransform[4])
 Load entry data into transformation matrix.
 
void Log (int index)
 
void CopyFrom (SCR_BasePreviewEntry from)
 
void SCR_BasePreviewEntry (bool init=false)
 
void SaveToContainer (WorldEditorAPI api, IEntitySource entitySource, array< ref ContainerIdPathEntry > entryPath)
 

Public Attributes

int m_iParentID
 
ResourceName m_Mesh
 
EPreviewEntityFlag m_Flags
 
EPreviewEntityShape m_Shape
 
string m_iPivotID
 
vector m_vScale
 
vector m_vPosition
 
vector m_vAngles
 
float m_fQuat [4]
 
vector m_vAnglesTerrain
 
float m_vHeightTerrain
 
IEntity m_Entity
 
IEntitySource m_EntitySource
 

Constructor & Destructor Documentation

◆ SCR_BasePreviewEntry()

void SCR_BasePreviewEntry.SCR_BasePreviewEntry ( bool  init = false)

Member Function Documentation

◆ CopyFrom()

void SCR_BasePreviewEntry.CopyFrom ( SCR_BasePreviewEntry  from)

◆ GetScale()

float SCR_BasePreviewEntry.GetScale ( )

Get the scale saved in the Preview entity.

Note that the first entry in the scale vector is used

Returns
Scale

◆ LoadTransform()

void SCR_BasePreviewEntry.LoadTransform ( vector  outTransform[4])

Load entry data into transformation matrix.

Parameters
[out]outTransformLocal transformation matrix to be filled with entry data

◆ Log()

void SCR_BasePreviewEntry.Log ( int  index)

◆ SaveToContainer()

void SCR_BasePreviewEntry.SaveToContainer ( WorldEditorAPI  api,
IEntitySource  entitySource,
array< ref ContainerIdPathEntry >  entryPath 
)

◆ SaveTransform()

void SCR_BasePreviewEntry.SaveTransform ( vector  transform[4])

Save transformation matrix in entry data.

Parameters
transformLocal transformation matrix

◆ SetScale()

void SCR_BasePreviewEntry.SetScale ( float  scale)

Save scale of entity within vector scale.

Parameters
scaleScale to save

Member Data Documentation

◆ m_Entity

IEntity SCR_BasePreviewEntry.m_Entity

◆ m_EntitySource

IEntitySource SCR_BasePreviewEntry.m_EntitySource

◆ m_Flags

EPreviewEntityFlag SCR_BasePreviewEntry.m_Flags

◆ m_fQuat

float SCR_BasePreviewEntry.m_fQuat[4]

◆ m_iParentID

int SCR_BasePreviewEntry.m_iParentID

◆ m_iPivotID

string SCR_BasePreviewEntry.m_iPivotID

◆ m_Mesh

ResourceName SCR_BasePreviewEntry.m_Mesh

◆ m_Shape

EPreviewEntityShape SCR_BasePreviewEntry.m_Shape

◆ m_vAngles

vector SCR_BasePreviewEntry.m_vAngles

◆ m_vAnglesTerrain

vector SCR_BasePreviewEntry.m_vAnglesTerrain

◆ m_vHeightTerrain

float SCR_BasePreviewEntry.m_vHeightTerrain

◆ m_vPosition

vector SCR_BasePreviewEntry.m_vPosition

◆ m_vScale

vector SCR_BasePreviewEntry.m_vScale

The documentation for this interface was generated from the following file: