Arma Reforger Explorer
1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Toggle main menu visibility
Loading...
Searching...
No Matches
GarbageSystem.c
Go to the documentation of this file.
1
/*
2
===========================================
3
Do not modify, this script is generated
4
===========================================
5
*/
6
11
12
class
GarbageSystem
:
GameSystem
13
{
19
proto external
bool
Insert(notnull
IEntity
entity,
float
lifetime = -1,
bool
ignoreBlacklist =
false
);
24
proto external
bool
IsInserted(notnull
IEntity
entity);
29
proto external
bool
Withdraw(notnull
IEntity
entity);
35
proto external
bool
Bump(notnull
IEntity
entity,
float
additionalLifetime);
40
proto external
float
GetLifetime(notnull
IEntity
entity);
47
proto external
float
GetRemainingLifetime(notnull
IEntity
entity);
49
proto external
void
Flush(
float
minTrackedSeconds = 30);
56
proto external
bool
UpdateBlacklist(notnull
IEntity
entity,
bool
blacklisted);
58
proto external
int
FetchTrackedEntities(notnull array<IEntity> entities);
59
60
// callbacks
61
62
/*
63
React to or change the behavior of the garbage insertion.
64
\param ent Entity instance to check logic for.
65
\param lifetime Original lifetime the insertion was requested with.
66
\return Returns a lifetime >0 for insertion and <= 0 to prevent it.
67
68
Example override to use in modded classes:
69
@code
70
override protected float OnInsertRequested(IEntity entity, float lifetime)
71
{
72
if (someCondition)
73
return -1; // Prevent insertion by returning negative values
74
75
if (someOtherCondition)
76
return lifetime * 0.5; // Cut lifetime in half based on specific needs.
77
78
return lifetime; // Return unmodified value
79
}
80
@endcode
81
*/
82
event
protected
float
OnInsertRequested
(
IEntity
entity,
float
lifetime) {
return
lifetime;};
83
/*
84
React to or skip the deletion of a tracked entity of which the lifetime has run out.
85
\param ent Entity instance to check logic for.
86
\return Return true to proceed with deletion, false to skip it (tracking for the item will end regardless).
87
*/
88
event
protected
bool
OnBeforeDelete
(
IEntity
entity) {
return
true
;};
89
}
90
GameSystem
Definition
GameSystem.c:16
GarbageSystem
Definition
GarbageSystem.c:13
GarbageSystem::OnBeforeDelete
bool OnBeforeDelete(IEntity entity)
Definition
GarbageSystem.c:88
GarbageSystem::OnInsertRequested
float OnInsertRequested(IEntity entity, float lifetime)
Definition
GarbageSystem.c:82
IEntity
Definition
IEntity.c:13
scripts
Game
generated
System
GarbageSystem.c
Generated by
1.17.0