DayZ 1.26
DayZ Explorer by KGB
|
Структуры данных | |
class | IEntity |
class | ParamEnum |
class | Attribute |
Перечисления | |
enum | EntityEvent { TOUCH , VISIBLE , NOTVISIBLE , FRAME , POSTFRAME , INIT , JOINTBREAK , SIMULATE , POSTSIMULATE , PHYSICSMOVE , CONTACT , EXTRA , ANIMEVENT , SOUNDEVENT , PHYSICSSTEADY , USER , ENTER , LEAVE , ALL } |
Entity events for event-mask, or throwing event from code. Подробнее... | |
enum | EntityFlags { VISIBLE , SOLID , TRIGGER , TOUCHTRIGGERS , SYNCHRONIZATION_DIRTY , FEATURE , TRANSLUCENT , WATER , ACTIVE , STATIC , USER1 , USER2 , USER3 , USER4 , USER5 , USER6 } |
Entity flags. Подробнее... | |
Функции | |
proto native owned string | GetClassName () |
proto native owned string | GetName () |
proto native int | VarIndex (string varName) |
proto native bool | IsVariableSet (int varIndex) |
proto bool | IsType (int varIndex, typename type) |
proto bool | Get (int varIndex, out void val) |
proto native IEntitySource | GetChildren () |
proto native IEntitySource | GetSibling () |
proto native IEntitySource | GetParent () |
proto native WidgetSource | GetChildren () |
proto native WidgetSource | GetSibling () |
proto native WidgetSource | GetParent () |
void | ParamEnum (string key, string value, string desc="") |
ParamEnum Managed | FromEnum (typename e) |
void | ParamEnum (string key, string value, string desc="") |
void | Attribute (string defvalue, string uiwidget, string desc="", string rangescale="", ParamEnumArray enums=NULL) |
void | EditorAttribute (string style, string category, string description, vector sizeMin, vector sizeMax, string color, string color2="0 0 0 0", bool visible=true, bool insertable=true, bool dynamicBox=false) |
Переменные | |
string | m_Key |
string | m_Value |
string | m_Desc |
string | m_Key |
string | m_Value |
string | m_Desc |
string | m_DefValue |
string | m_UiWidget |
can be "editbox", "combobox", "spinbox", "slider", "font", "fileeditbox", "colorPicker", "flags", "resourceNamePicker" | |
string | m_RangeScale |
defined as "MIN_VALUE MAX_VALUE STEP" eg. "1 100 0.5" | |
string | m_Desc |
ref ParamEnumArray | m_Enums |
Only ints and floats are currently supported. Array can be defined this way: { ParamEnum("Choice 1", "1"), ParamEnum("Choicen 2", "2") }. | |
class Attribute | m_Style |
can be "box", "sphere", "cylinder", "pyramid", "diamond" or custom style name | |
string | m_Category |
folder structure eg. StaticEntities/Walls | |
string | m_Description |
class purpose description | |
vector | m_SizeMin |
min vector of a bounding box | |
vector | m_SizeMax |
max vector of a bounding box | |
string | m_Color |
string | m_Color2 |
bool | m_Visible |
bool | m_Insertable |
bool | m_DynamicBox |
Transformation methods | |
Setting and getting of entity transformation | |
proto external void | GetTransform (out vector mat[]) |
Returns transformation of Entity. It returns only so much vectors as array is big. | |
proto external void | GetRenderTransform (out vector mat[]) |
Returns render transformation of Entity. Must pass in vector array size of 4. | |
proto external void | GetLocalTransform (out vector mat[]) |
Returns local transformation of Entity. It returns only so much vectors as array is big. | |
proto native external vector | GetTransformAxis (int axis) |
Returns one row of Entity transformation matrix. | |
proto native external void | SetTransform (vector mat[4]) |
Sets entity transformation. | |
proto native external vector | GetOrigin () |
Returns origin of Entity. | |
proto external vector | GetLocalPosition () |
Returns local position of Entity. | |
proto native external vector | GetYawPitchRoll () |
Returns orientation of Entity in world space (Yaw, Pitch, Roll) | |
proto native external vector | GetAngles () |
Same as GetYawPitchRoll, but returns rotation vector around X, Y and Z axis. | |
proto native external vector | GetLocalYawPitchRoll () |
Returns local orientation when it's in hierarchy (Yaw, Pitch, Roll) | |
proto native external vector | GetLocalAngles () |
Same as GetLocalYawPitchRoll, but returns rotation vector around X, Y and Z axis. | |
proto native external void | SetYawPitchRoll (vector angles) |
Sets angles for entity (Yaw, Pitch, Roll) | |
proto native external void | SetAngles (vector angles) |
Same as SetYawPitchRoll, but sets rotation around X, Y and Z axis. | |
proto native external void | SetOrigin (vector orig) |
Sets origin for entity. | |
proto native external float | GetScale () |
proto native external void | SetScale (float scale) |
proto native external vector | VectorToParent (vector vec) |
Transforms local vector to world space. | |
proto native external vector | CoordToParent (vector coord) |
Transforms local position to world space. | |
proto native external vector | VectorToLocal (vector vec) |
Transforms world space vector to local space. | |
proto native external vector | CoordToLocal (vector coord) |
Transforms world space position to local space. | |
Name/ID methods <br> | |
proto native int | GetID () |
Return unique entity ID. | |
proto native void | SetID (int id) |
Set unique entity ID. | |
proto native void | SetName (string name) |
proto native external owned string | GetName () |
Hierarchy methods | |
Scene hierarchy management | |
proto native external bool | AddChild (notnull IEntity child, int pivot, bool positionOnly=false) |
Adds child entity to this entity. | |
proto native external bool | RemoveChild (notnull IEntity child, bool keepTransform=false) |
Removes child entity from hierarchy. | |
proto native bool | IsHierarchyPositionOnly () |
Returns if the hierarchy component was created with positionOnly. | |
proto native int | GetHierarchyPivot () |
Returns the hierarchy component pivot. | |
proto native IEntity | GetParent () |
Returns pointer to parent Entity in hierarchy. | |
proto native IEntity | GetChildren () |
Returns pointer to first child Entity in hierarchy. | |
proto native IEntity | GetSibling () |
Returns pointer to next child Entity on the same hierarchy. | |
proto external void | GetBounds (out vector mins, out vector maxs) |
Returns local bounding box of model on Entity. | |
proto external void | GetWorldBounds (out vector mins, out vector maxs) |
Returns quantized world-bound-box of Entity. | |
Simulation/handling properties | |
Flags that affects simulation and entity handling behavior | |
proto native external EntityFlags | GetFlags () |
Returns Entity flags. | |
proto native external bool | IsFlagSet (EntityFlags flags) |
Test if one or more of specified flags are set. | |
proto native external EntityFlags | SetFlags (EntityFlags flags, bool recursively) |
Sets Entity flags. It's OR operation, not rewrite. Returns previous flags. | |
proto native external EntityFlags | ClearFlags (EntityFlags flags, bool recursively) |
Clear Entity flags. Returns cleared flags. | |
proto native external EntityEvent | GetEventMask () |
Returns current event mask. | |
proto native external EntityEvent | SetEventMask (EntityEvent e) |
Sets event mask. | |
proto native external EntityEvent | ClearEventMask (EntityEvent e) |
Clears event mask. | |
proto external volatile void | SendEvent (notnull IEntity actor, EntityEvent e, void extra) |
Dynamic event invokation. Parameters are the same as in IEntity::EOnXXXX() methods. | |
Visual component methods | |
Manipulation with visual component - model, particle effect etc | |
proto native external void | SetObject (vobject object, string options) |
proto native vobject | GetVObject () |
Returns visual object set to this Entity. No reference is added. | |
proto native external int | Animate (float speed, int loop) |
Updates animation (either xob, or particle, whatever) | |
proto native external int | AnimateEx (float speed, int loop, out vector lin, out vector ang) |
Updates animation (either xob, or particle, whatever) | |
proto native external int | SetCameraMask (int mask) |
Sets visibility mask for cameras, where Entity will be rendered. | |
proto native external void | FilterNextTrace () |
When called, the Entity is excluded from consequent TraceMove/TraceLine. | |
proto native external int | Update () |
Entity events for event-mask, or throwing event from code.
Элементы перечислений | |
---|---|
TOUCH | entity was touched by other entity |
VISIBLE | entity is visible, so part of the rendering other WorldClass extra frame index result false should be rendered, true shoudn't be rendered Entity is visible. Is rendered if there is some attached object and event EntityEvent.VISIBLE is invoked, when event mask is set. |
NOTVISIBLE | entity is not visible, will not be part of rendering other WorldClass extra frame index |
FRAME | new frame event, called each frame other WorldClass extra frame index |
POSTFRAME | event at the end of each frame or when entity is moved during the frame other WorldClass |
INIT | event called after the world is created, including all entities other WorldClass |
JOINTBREAK | |
SIMULATE | |
POSTSIMULATE | |
PHYSICSMOVE | |
CONTACT | |
EXTRA | |
ANIMEVENT | |
SOUNDEVENT | |
PHYSICSSTEADY | |
USER | |
ENTER | |
LEAVE | |
ALL | Mask of all events. |
Entity flags.
Элементы перечислений | |
---|---|
VISIBLE | entity is visible, so part of the rendering other WorldClass extra frame index result false should be rendered, true shoudn't be rendered Entity is visible. Is rendered if there is some attached object and event EntityEvent.VISIBLE is invoked, when event mask is set. |
SOLID | Is collidable by various trace methods. |
TRIGGER | Is not collidable, but invokes touch events. |
TOUCHTRIGGERS | Interacts with triggers. |
SYNCHRONIZATION_DIRTY | Entity wants to synchronize (network) |
FEATURE | Scene rendering hint for dominant objects that are not culled by standard way. |
TRANSLUCENT | Used by tracing methods. When tracing with TraceFlags.PASSTRANSLUCENT, then this entity is ignored. Used for glass for example. |
WATER | Used by tracing methods. Traceable only with flag TraceFlags.WATER. |
ACTIVE | Tells that this entity has to be actively updated by engine, its EntityEvent.FRAME has to be called etc. |
STATIC | Static objects are included in the query. Tells that this entity will represent mostly static object, so we can use more precise but slower methods for scene-tree linking. Also it tells to scene tree that he can count with this entity as tree-split hint. |
USER1 | Flags for custom usage and filterings. |
USER2 | |
USER3 | |
USER4 | |
USER5 | |
USER6 |
|
protected |
Adds child entity to this entity.
child | IEntity Pointer to entity which become our child |
pivot | int Pivot is pivot index, or -1 for center of parent. |
positionOnly | bool When set to true, the orientation will still be in WS. |
bool
True when entity has been attached. False otherwise. Updates animation (either xob, or particle, whatever)
|
protected |
Updates animation (either xob, or particle, whatever)
|
inlineprivate |
Перекрестные ссылки Attribute::m_DefValue, Attribute::m_Desc, Attribute::m_Enums, Attribute::m_RangeScale и Attribute::m_UiWidget.
|
protected |
Clears event mask.
e | int event mask |
int
event mask
|
protected |
Clear Entity flags. Returns cleared flags.
flags | int flags to be set |
recursively | flags will be recursively applied to children of hierarchy too |
int
cleared flags void EditorAttribute | ( | string | style, |
string | category, | ||
string | description, | ||
vector | sizeMin, | ||
vector | sizeMax, | ||
string | color, | ||
string | color2 = "0 0 0 0", | ||
bool | visible = true, | ||
bool | insertable = true, | ||
bool | dynamicBox = false ) |
Перекрестные ссылки m_Category, m_Color, m_Color2, m_Description, m_DynamicBox, m_Insertable, m_SizeMax, m_SizeMin, m_Style и m_Visible.
EntityEvent.ANIMEVENT.
EntityEvent.PHYSICSMOVE.
EntityEvent.POSTSIMULATE.
|
inlineprotected |
EntityEvent.SOUNDEVENT.
EntityEvent.WORLDPROCESS.
When called, the Entity is excluded from consequent TraceMove/TraceLine.
Same as GetYawPitchRoll, but returns rotation vector around X, Y and Z axis.
Returns local bounding box of model on Entity.
[out] | mins | vector minimum point of bounding box |
[out] | maxs | vector maximum point of bounding box |
|
private |
|
private |
Returns pointer to first child Entity in hierarchy.
Используется в GetAttachedChildren().
|
protected |
|
protected |
Same as GetLocalYawPitchRoll, but returns rotation vector around X, Y and Z axis.
Returns local transformation of Entity. It returns only so much vectors as array is big.
mat | vector [1...4] matrix to be get |
|
private |
|
private |
|
private |
|
private |
Returns pointer to next child Entity on the same hierarchy.
Returns visual object set to this Entity. No reference is added.
Returns quantized world-bound-box of Entity.
[out] | mins | vector minimum point of bounding box |
[out] | maxs | vector maximum point of bounding box |
|
protected |
Test if one or more of specified flags are set.
bool
True if is set, false otherwise. Returns if the hierarchy component was created with positionOnly.
Перекрестные ссылки ParamEnum::m_Desc, ParamEnum::m_Key и ParamEnum::m_Value.
|
protected |
Removes child entity from hierarchy.
child | IEntity Pointer to child entity we want to remove. |
keepTransform | bool When set to true, Entity is kept on her world position. Otherwise it's local transform is used as world-space one. |
bool
True if it was removed, false when this entity is not our child.
|
protected |
Dynamic event invokation. Parameters are the same as in IEntity::EOnXXXX() methods.
Same as SetYawPitchRoll, but sets rotation around X, Y and Z axis.
Sets visibility mask for cameras, where Entity will be rendered.
|
protected |
|
protected |
Sets Entity flags. It's OR operation, not rewrite. Returns previous flags.
flags | int flags to be set |
recursively | flags will be recursively applied to children of hierarchy too |
int
previous flags \brief Sets the visual object to this entity. Reference is added and released upon entity destruction \param object handle to object got by GetObject() \param options String, dependant on object type.
Only supported one for XOB objects: $remap 'original material name' 'new material'; [$remap 'another original material name' 'anothernew material']
Sets entity transformation.
mat | vector [4] matrix to be set |
Updates entity state/position. Should be called when you want to manually commit position changes etc before trace methods etc. Entity is updated automatically at the end and the beginning of simulation step, when it has EntityFlags.TFL_ACTIVE flag set. \returns mask with flags
EntityFlags.UPDATE - hierarchy has been updated EntityFlags.UPDATE_MDL - model hierarchy has been updated
string m_Category |
folder structure eg. StaticEntities/Walls
Используется в EditorAttribute(), GestureMenuItem(), GetCategory(), GetItemCategory() и RadialQuickbarItem().
string m_Color |
Используется в EditorAttribute().
string m_Color2 |
Используется в EditorAttribute().
|
private |
Используется в Attribute::Attribute().
|
private |
Используется в ParamEnum::ParamEnum().
string m_Desc |
|
private |
Используется в Attribute::Attribute().
string m_Description |
class purpose description
Используется в InventoryItemSuper::DescriptionOverride(), EditorAttribute(), InventoryItemSuper::InitMapState(), ScriptedWidgetEventHandler::LoadData() и ScriptedWidgetEventHandler::ModsMenuDetailedEntry().
bool m_DynamicBox |
Используется в EditorAttribute().
|
private |
Only ints and floats are currently supported. Array can be defined this way: { ParamEnum("Choice 1", "1"), ParamEnum("Choicen 2", "2") }.
Используется в Attribute::Attribute().
bool m_Insertable |
Используется в EditorAttribute().
|
private |
Используется в ParamEnum::ParamEnum().
string m_Key |
Используется в DisplayElementBadge::BadgeBleeding(), DisplayElementBadge::BadgeFracture(), DisplayElementBadge::BadgeHeartbeat(), DisplayElementBadge::BadgeLegs(), DisplayElementBadge::BadgePills(), DisplayElementBadge::BadgePoisoned(), DisplayElementBadge::BadgeSick(), DisplayElementBadge::BadgeStuffed(), DisplayElementBadge::BadgeWet(), DisplayElementTendency::TendencyBacteria(), DisplayElementTendency::TendencyBlood(), DisplayElementTendency::TendencyHealth(), DisplayElementTendency::TendencyHunger(), DisplayElementTendency::TendencyTemperature(), DisplayElementTendency::TendencyThirst() и DisplayElementBase::UpdateHUD().
|
private |
defined as "MIN_VALUE MAX_VALUE STEP" eg. "1 100 0.5"
Используется в Attribute::Attribute().
vector m_SizeMax |
max vector of a bounding box
Используется в EditorAttribute().
vector m_SizeMin |
min vector of a bounding box
Используется в EditorAttribute().
can be "box", "sphere", "cylinder", "pyramid", "diamond" or custom style name
Используется в EditorAttribute().
|
private |
can be "editbox", "combobox", "spinbox", "slider", "font", "fileeditbox", "colorPicker", "flags", "resourceNamePicker"
Используется в Attribute::Attribute().
|
private |
Используется в ParamEnum::ParamEnum().
string m_Value |
Используется в Add(), CfgParamType::CfgParamBool(), CfgParamType::CfgParamFloat(), CfgParamType::CfgParamInt(), CfgParamType::CfgParamString(), GetValue(), MessageReceiverBase::GetValue(), MessageReceiverBase::IsValueChanged(), PPERequester_GameplayBase::OnStart(), OnStoreLoad(), OnStoreSave(), PlayerStat(), PresenceNotifierNoiseEvent(), PrintElements(), Set(), DisplayElementBase::SetSeriousnessLevel(), DisplayElementBase::SetTendency(), CfgParamType::SetValue(), CfgParamType::SetValue(), CfgParamType::SetValue(), MessageReceiverBase::SetValue(), CfgParamType::SetValue(), SyncedValueAgent(), SyncedValueLevel(), DisplayElementBase::UpdateHUD() и MessageReceiverBase::UpdateHUD().
bool m_Visible |
Используется в EditorAttribute(), ScriptedWidgetEventHandler::GetCrosshairPosition(), GameplayEffectsData::Init(), ScriptedWidgetEventHandler::ObjectFollower(), ScriptedWidgetEventHandler::ProjectedCrosshair(), ScriptedWidgetEventHandler::Update(), GameplayEffectsData::Update() и GameplayEffectsData::UpdateVisibility().