Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
SceneObject Class Reference

Protected Member Functions

void ~SceneObject ()
void AddAttachment (string att_name)
void AddRotation (float add_rot)
bool CanAttachment (EntityAI e)
void EditorLineAdd (SceneObject obj)
void EditorLineRemove (SceneObject obj)
void EditorShapeAdd ()
void EditorShapeDeselect ()
void EditorShapeRemove ()
void EditorShapeSelect ()
void EditorShapeSetColor (int color)
void EditorShapeUpdatePos ()
array< EntityAIGetAttachments ()
TStringArray GetConfigAttachments ()
float GetHealth ()
string GetInitScript ()
EntityAI GetLinkedObject (int i)
SceneObject GetLinkedSceneObject (int i)
array< SceneObjectGetLinkedSceneObjects ()
int GetLinkedSceneObjectsCount ()
float GetMaxHealth ()
string GetName ()
EntityAI GetObject ()
vector GetPosition ()
string GetPositionAsString ()
float GetRotation ()
vector GetSize ()
string GetTypeName ()
SceneObject Init (string obj_name, vector pos)
bool IsLinkedWithSceneObject (SceneObject scene_object)
bool IsPlayer ()
void LinkEntityAI (EntityAI e)
void LinkSceneObject (SceneObject scene_object, bool draw_line=true)
void PlaceOnSurface ()
void RemoveAttachment (EntityAI e)
void SceneObjectSynch (Param p)
void SetHealth (float value)
void SetInitScript (string init_script)
void SetPosition (vector pos)
void SetPositionAsString (string string_pos)
void SetRotation (float rot)
void UnlinkAll ()
void UnlinkSceneObject (SceneObject scene_object)

Protected Attributes

Shape m_DebugShapeBBox
string m_InitScript
ref array< SceneObjectm_LinkedSceneObjects
ref array< intm_LinkedSceneObjectsIndices
ref map< SceneObject, Shapem_LinkedSceneObjectsShapes
string m_ObjectName
string m_ObjectNameOrigin
EntityAI m_ObjectPtr

Private Member Functions

override bool IsPlayer ()

Static Private Attributes

static const int COLOR_OBJ_BBOX_NORMAL = 0x00000000
static const int COLOR_OBJ_BBOX_SELECT = 0x1f007C00

Detailed Description

Definition at line 1 of file sceneobject.c.

Constructor & Destructor Documentation

◆ ~SceneObject()

void ~SceneObject ( )
inlineprotected

Member Function Documentation

◆ AddAttachment()

void AddAttachment ( string att_name)
inlineprotected

Definition at line 546 of file sceneobject.c.

References GetObject().

Referenced by PluginBase::SelectedObjectDuplicate().

◆ AddRotation()

void AddRotation ( float add_rot)
inlineprotected

Definition at line 523 of file sceneobject.c.

References EditorShapeUpdatePos(), g_Game, m_ObjectPtr, and SceneObjectSynch().

◆ CanAttachment()

bool CanAttachment ( EntityAI e)
inlineprotected

Definition at line 554 of file sceneobject.c.

References GetObject().

◆ EditorLineAdd()

void EditorLineAdd ( SceneObject obj)
inlineprotected

◆ EditorLineRemove()

void EditorLineRemove ( SceneObject obj)
inlineprotected

◆ EditorShapeAdd()

void EditorShapeAdd ( )
inlineprotected

◆ EditorShapeDeselect()

void EditorShapeDeselect ( )
inlineprotected

Definition at line 135 of file sceneobject.c.

References COLOR_OBJ_BBOX_NORMAL, and EditorShapeSetColor().

Referenced by EditorShapeAdd(), and PluginBase::EditorUpdate().

◆ EditorShapeRemove()

void EditorShapeRemove ( )
inlineprotected

Definition at line 204 of file sceneobject.c.

References m_DebugShapeBBox.

Referenced by ~SceneObject(), and PluginBase::EditorUpdate().

◆ EditorShapeSelect()

void EditorShapeSelect ( )
inlineprotected

Definition at line 127 of file sceneobject.c.

References COLOR_OBJ_BBOX_SELECT, and EditorShapeSetColor().

Referenced by PluginBase::EditorUpdate().

◆ EditorShapeSetColor()

void EditorShapeSetColor ( int color)
inlineprotected

Definition at line 116 of file sceneobject.c.

References m_DebugShapeBBox.

Referenced by EditorShapeDeselect(), and EditorShapeSelect().

◆ EditorShapeUpdatePos()

void EditorShapeUpdatePos ( )
inlineprotected

Definition at line 99 of file sceneobject.c.

References GetObject(), and m_DebugShapeBBox.

Referenced by AddRotation(), EditorShapeAdd(), SetPosition(), and SetRotation().

◆ GetAttachments()

array< EntityAI > GetAttachments ( )
inlineprotected

Definition at line 570 of file sceneobject.c.

References GetObject().

Referenced by PluginBase::SelectedObjectDuplicate().

◆ GetConfigAttachments()

TStringArray GetConfigAttachments ( )
inlineprotected

Definition at line 585 of file sceneobject.c.

References CFG_MAGAZINESPATH, CFG_VEHICLESPATH, CFG_WEAPONSPATH, g_Game, and GetTypeName().

Referenced by UIScriptedMenu::Refresh().

◆ GetHealth()

float GetHealth ( )
inlineprotected

Definition at line 433 of file sceneobject.c.

References m_ObjectPtr.

Referenced by UIScriptedMenu::Refresh(), and PluginConfigHandler::SaveSceneObjects().

◆ GetInitScript()

string GetInitScript ( )
inlineprotected

Definition at line 83 of file sceneobject.c.

References m_InitScript.

Referenced by PluginBase::ExecuteInitScripts(), and PluginConfigHandler::SaveSceneObjects().

◆ GetLinkedObject()

EntityAI GetLinkedObject ( int i)
inlineprotected

Definition at line 348 of file sceneobject.c.

References GetLinkedSceneObject(), and GetObject().

◆ GetLinkedSceneObject()

SceneObject GetLinkedSceneObject ( int i)
inlineprotected

Definition at line 340 of file sceneobject.c.

References m_LinkedSceneObjects.

Referenced by GetLinkedObject(), and UnlinkAll().

◆ GetLinkedSceneObjects()

array< SceneObject > GetLinkedSceneObjects ( )
inlineprotected

◆ GetLinkedSceneObjectsCount()

int GetLinkedSceneObjectsCount ( )
inlineprotected

Definition at line 332 of file sceneobject.c.

References m_LinkedSceneObjects.

Referenced by UnlinkAll().

◆ GetMaxHealth()

float GetMaxHealth ( )
inlineprotected

Definition at line 443 of file sceneobject.c.

References m_ObjectPtr.

◆ GetName()

string GetName ( )
inlineprotected

Definition at line 67 of file sceneobject.c.

References m_ObjectName.

◆ GetObject()

◆ GetPosition()

◆ GetPositionAsString()

string GetPositionAsString ( )
inlineprotected

Definition at line 472 of file sceneobject.c.

References m_ObjectPtr, vector::ToString(), and Vector().

Referenced by PluginConfigHandler::SaveSceneObjects().

◆ GetRotation()

float GetRotation ( )
inlineprotected

◆ GetSize()

vector GetSize ( )
inlineprotected

◆ GetTypeName()

◆ Init()

◆ IsLinkedWithSceneObject()

bool IsLinkedWithSceneObject ( SceneObject scene_object)
inlineprotected

Definition at line 264 of file sceneobject.c.

References m_LinkedSceneObjects.

Referenced by PluginBase::AreSceneObjectsLinked(), and LinkSceneObject().

◆ IsPlayer() [1/2]

bool IsPlayer ( )
inlineprotected

◆ IsPlayer() [2/2]

override bool IsPlayer ( )
inlineprivate

Definition at line 6 of file sceneplayer.c.

◆ LinkEntityAI()

void LinkEntityAI ( EntityAI e)
inlineprotected

Definition at line 256 of file sceneobject.c.

References m_ObjectPtr.

Referenced by SceneData::AddObject(), and Init().

◆ LinkSceneObject()

void LinkSceneObject ( SceneObject scene_object,
bool draw_line = true )
inlineprotected

◆ PlaceOnSurface()

void PlaceOnSurface ( )
inlineprotected

Definition at line 383 of file sceneobject.c.

References g_Game, m_ObjectPtr, and SceneObjectSynch().

Referenced by SetPosition().

◆ RemoveAttachment()

void RemoveAttachment ( EntityAI e)
inlineprotected

Definition at line 562 of file sceneobject.c.

References g_Game.

◆ SceneObjectSynch()

void SceneObjectSynch ( Param p)
inlineprotected

Definition at line 515 of file sceneobject.c.

References g_Game.

Referenced by AddRotation(), PlaceOnSurface(), SetHealth(), and SetPosition().

◆ SetHealth()

void SetHealth ( float value)
inlineprotected

◆ SetInitScript()

void SetInitScript ( string init_script)
inlineprotected

Definition at line 91 of file sceneobject.c.

References m_InitScript.

Referenced by PluginConfigHandler::LoadSceneObjects().

◆ SetPosition()

◆ SetPositionAsString()

void SetPositionAsString ( string string_pos)
inlineprotected

Definition at line 482 of file sceneobject.c.

References SetPosition(), and string::ToVector().

◆ SetRotation()

void SetRotation ( float rot)
inlineprotected

◆ UnlinkAll()

void UnlinkAll ( )
inlineprotected

Definition at line 308 of file sceneobject.c.

References GetLinkedSceneObject(), and GetLinkedSceneObjectsCount().

Referenced by PluginBase::DeleteSceneObject().

◆ UnlinkSceneObject()

void UnlinkSceneObject ( SceneObject scene_object)
inlineprotected

Definition at line 295 of file sceneobject.c.

References EditorLineRemove(), and m_LinkedSceneObjects.

Referenced by PluginBase::UnlinkSceneObjects().

Field Documentation

◆ COLOR_OBJ_BBOX_NORMAL

const int COLOR_OBJ_BBOX_NORMAL = 0x00000000
staticprivate

Definition at line 3 of file sceneobject.c.

Referenced by EditorShapeDeselect().

◆ COLOR_OBJ_BBOX_SELECT

const int COLOR_OBJ_BBOX_SELECT = 0x1f007C00
staticprivate

Definition at line 4 of file sceneobject.c.

Referenced by EditorShapeSelect().

◆ m_DebugShapeBBox

Shape m_DebugShapeBBox
protected

◆ m_InitScript

string m_InitScript
protected

Definition at line 8 of file sceneobject.c.

Referenced by GetInitScript(), and SetInitScript().

◆ m_LinkedSceneObjects

◆ m_LinkedSceneObjectsIndices

ref array<int> m_LinkedSceneObjectsIndices
protected

◆ m_LinkedSceneObjectsShapes

ref map<SceneObject, Shape> m_LinkedSceneObjectsShapes
protected

Definition at line 13 of file sceneobject.c.

Referenced by EditorLineAdd(), EditorLineRemove(), and Init().

◆ m_ObjectName

string m_ObjectName
protected

Definition at line 9 of file sceneobject.c.

Referenced by GetName(), and Init().

◆ m_ObjectNameOrigin

string m_ObjectNameOrigin
protected

Definition at line 10 of file sceneobject.c.

Referenced by GetSize(), and Init().

◆ m_ObjectPtr


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