DayZ 1.24
|
Protected Member Functions | |
override void | OnEnter (Object obj) |
override void | OnLeave (Object obj) |
void | UpdateInsiders (int timeout) |
void | SetParentObject (Hologram projection) |
void | SetParentOwner (PlayerBase player) |
TriggerEvents, backwards compatibility calling | |
Implementation for backwards compatibility with old Trigger system | |
void | OnEnterBeginEvent (TriggerInsider insider) |
void | OnLeaveBeginEvent (TriggerInsider insider) |
DEPRECATED Events | |
left for backwards compatibility | |
void | OnEnter (Object obj) |
void | OnLeave (Object obj) |
TriggerInsider conditions | |
Conditions applied to TriggerInsider for if it can be added or should be removed | |
bool | CanAddObjectAsInsider (Object object) |
Condition whether an Object can be added as TriggerInsider (checked before calling AddInsider) | |
bool | ShouldRemoveInsider (TriggerInsider insider) |
Condition whether a TriggerInsider should still be updated or not (checked in update loop and before adding) | |
bool | ShouldRemoveInsiderNoLeave (TriggerInsider insider) |
Condition whether a TriggerInsider should still be updated or not, skips OnLeaveEvent (checked in update loop and before adding) | |
TriggerInsider processing | |
Logic and processing of adding, removing and updating a TriggerInsider | |
TriggerInsider | CreateInsider (Object obj) |
Used for easily overriding TriggerInsider creation without rewriting AddInsider. | |
void | AddInsider (Object obj) |
Adding of new TriggerInsider. | |
void | RemoveInsider (TriggerInsider insider, int index=-1) |
Removing of TriggerInsider. | |
void | RemoveInsiderByObject (Object object) |
Removing of TriggerInsider through Object. | |
void | UpdateInsiders (int timeout) |
Update the current TriggerInsider inside the Trigger, timeout paramter is deprecated. | |
DEBUGGING | |
General internal debugging functionality | |
override void | OnRPC (PlayerIdentity sender, int rpc_type, ParamsReadContext ctx) |
Protected Attributes | |
int | m_TriggerUpdateMs |
Hologram | m_ParentObj |
PlayerBase | m_Player |
Private Attributes | |
const int | TIMEOUT = 1000 |
DEPRECATED. | |
ref array< ref TriggerInsider > | m_insiders |
The objects and their metadata which are currently inside the Trigger. | |
Private Attributes inherited from TriggerEvents | |
ref ScriptInvoker | m_OnEnterInvoker |
ref ScriptInvoker | m_OnLeaveInvoker |
Scripted Trigger.
Definition at line 1517 of file Hologram.c.
|
inlineprivate |
ctor
Definition at line 53 of file Trigger.c.
References m_insiders, and SetFlags().
|
inlineprivate |
dtor
Adding of new TriggerInsider.
Definition at line 228 of file Trigger.c.
References CreateInsider(), TriggerEvents::Enter(), Error(), g_Game, GetDebugName(), GetInsiderForObject(), TriggerInsider::lastUpdated, m_insiders, ShouldRemoveInsider(), ShouldRemoveInsiderNoLeave(), TriggerInsider::timeEntered, TriggerInsider::timeStamp, and Debug::TriggerLog().
Referenced by EOnEnter().
Condition whether an Object can be added as TriggerInsider (checked before calling AddInsider)
Definition at line 198 of file Trigger.c.
Referenced by EOnEnter().
|
inlineprotected |
Used for easily overriding TriggerInsider creation without rewriting AddInsider.
Definition at line 222 of file Trigger.c.
Referenced by AddInsider().
When an Object enters the trigger add it to Insiders.
Definition at line 94 of file Trigger.c.
References AddInsider(), CanAddObjectAsInsider(), and Class::CastTo().
Set the default extents of the Trigger only once it is properly initialized.
Definition at line 74 of file Trigger.c.
References SetExtents().
When an Object exits the trigger remove it from Insiders.
Definition at line 102 of file Trigger.c.
References Class::CastTo(), and RemoveInsiderByObject().
|
inlineprivate |
Gets the TriggerInsider for the Object if it exists.
Definition at line 134 of file Trigger.c.
References m_insiders.
Referenced by AddInsider().
Gets the index in m_insiders for the Object.
Definition at line 149 of file Trigger.c.
References m_insiders.
|
inlineprivate |
Get the current TriggerInsider array, left for backwards compatibility, moved down from ManTrigger.
Definition at line 128 of file Trigger.c.
References m_insiders.
Referenced by ConstructionBoxTrigger::IsColliding().
Definition at line 1523 of file Hologram.c.
References m_ParentObj.
Referenced by OnEnterBeginEvent().
|
inlineprotected |
Definition at line 169 of file Trigger.c.
References TriggerInsider::GetObject(), and OnEnter().
Definition at line 1533 of file Hologram.c.
References m_ParentObj.
Referenced by OnLeaveBeginEvent().
|
inlineprotected |
Definition at line 175 of file Trigger.c.
References TriggerInsider::GetObject(), and OnLeave().
|
inlineprotected |
Definition at line 350 of file Trigger.c.
References vector::Zero.
|
inlineprotected |
Removing of TriggerInsider.
Definition at line 263 of file Trigger.c.
References GetDebugName(), TriggerInsider::GetObject(), TriggerEvents::Leave(), m_insiders, and Debug::TriggerLog().
Referenced by RemoveInsiderByObject(), and UpdateInsiders().
Removing of TriggerInsider through Object.
Definition at line 279 of file Trigger.c.
References m_insiders, and RemoveInsider().
Referenced by EOnLeave().
Set the size of the Trigger, avoid using SetCollisionBox directly.
Definition at line 116 of file Trigger.c.
References SetCollisionBox().
Referenced by CreateCollisionTrigger(), CreateTrigger(), TrapBase::CreateTrigger(), ManTrigger::EOnInit(), and EOnInit().
Definition at line 1545 of file Hologram.c.
References m_ParentObj.
|
inlineprotected |
|
inlineprotected |
Condition whether a TriggerInsider should still be updated or not (checked in update loop and before adding)
Definition at line 204 of file Trigger.c.
Referenced by AddInsider(), and UpdateInsiders().
|
inlineprotected |
Condition whether a TriggerInsider should still be updated or not, skips OnLeaveEvent (checked in update loop and before adding)
Definition at line 210 of file Trigger.c.
Referenced by AddInsider(), and UpdateInsiders().
Definition at line 1540 of file Hologram.c.
Referenced by EOnFrame().
Update the current TriggerInsider inside the Trigger, timeout paramter is deprecated.
Definition at line 297 of file Trigger.c.
References g_Game, GetDebugName(), TriggerInsider::GetObject(), TriggerInsider::lastUpdated, m_insiders, RemoveInsider(), ShouldRemoveInsider(), ShouldRemoveInsiderNoLeave(), TriggerEvents::Stay(), TriggerEvents::StayFinish(), TriggerEvents::StayStart(), and Debug::TriggerLog().
|
private |
The objects and their metadata which are currently inside the Trigger.
Definition at line 44 of file Trigger.c.
Referenced by AddInsider(), GetInsiderForObject(), GetInsiderIndexForObject(), GetInsiders(), RemoveInsider(), RemoveInsiderByObject(), Trigger(), and UpdateInsiders().
|
protected |
Definition at line 1520 of file Hologram.c.
|
protected |
Definition at line 1521 of file Hologram.c.
|
protected |
Definition at line 1519 of file Hologram.c.