Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
GarbageSystem.c
Go to the documentation of this file.
1 /*
2 ===========================================
3 Do not modify, this script is generated
4 ===========================================
5 */
6 
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);
51  proto external void Flush(float minTrackedSeconds = 60);
58  proto external bool UpdateBlacklist(notnull IEntity entity, bool blacklisted);
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 
GarbageSystem
Definition: GarbageSystem.c:12
GameSystem
Definition: GameSystem.c:12