80 Error(
"Requested type is NULL!");
89 if (temp.Type() == type)
98 Debug.
Log(
"'" + type.ToString() +
"' not found in bank! Register first in 'RegisterRequester' method.");
115 Debug.
Log(
"Requester idx '" + index +
"' not found in bank! Register first in 'RegisterRequester' method.");
134 if (temp.Type() == type)
142 Debug.
Log(
"Requester instance of the '" + type.ToString() +
"' type not found in bank! Register first in 'RegisterRequester' method.");
158 Debug.
Log(
"No requester exists under idx '" + index +
"' in bank! Register first in 'RegisterRequester' method.");
180 Debug.
Log(
"Trying to register an already existing requester type: " + type);
213 Debug.
Log(
"Requester instance '" + req +
"' not valid! Please use registered instances from PPERequesterBank.");
void RegisterAdditionalRequesters()
class PPERequesterBank extends Managed PPERequesterRegistrations()
Mod this, if you wish to register custom requesters inside 'RegisterAdditionalRequesters' override.
PPERUndergroundAcco GetRequester()
Super root of all classes in Enforce script.
static void Log(string message=LOG_DEFAULT, string plugin=LOG_DEFAULT, string author=LOG_DEFAULT, string label=LOG_DEFAULT, string entity=LOG_DEFAULT)
Prints debug message with normal prio.
static const int REQ_GLASSESWELDING
static const int REQ_FEEDBACKBLUR
static const int REQ_SERVERBROWSEREFFECTS
static const int REQ_GLASSESSPORTBLACK
static const int REQ_GLASSESSPORTORANGE
static const int REQ_TUTORIALEFFECTS
static const int REQ_MENUEFFECTS
static const int REQ_FLASHBANGEFFECTS
static const int REQ_GLASSESAVIATOR
static const int REQ_GLASSESSPORTGREEN
static const int REQ_DEATHEFFECTS
static const int REQ_SPOOKYAREA
static GetRequesterTypename(int index)
Returns a typename from a requester ID.
static const int REQ_INTROCHROMABB
static const int REQ_HMP_GHOST
static const int REQ_DROWNING
static ref PPERequesterRegistrations m_Registrations
static const int REQ_LATENCYBLUR
static const int REQ_CAMERAADS
static const int REQ_CONTAMINATEDAREA
static PPERequesterBase GetRequester(int index)
Returns an instance (singleton) of a requester based on index.
static const int REQ_INVENTORYBLUR
static const int REQ_UNCONEFFECTS
static int GetRequesterID(typename type)
Returns an ID of a requester type.
static bool m_Initialized
static const int REQ_MOTOHELMETBLACK
static const int REQ_PAINBLUR
static ref map< int, ref PPERequesterBase > m_Instances
static const int REQ_FEVEREFFECTS
static const int REQ_BURLAPSACK
static const int REQ_CONTROLLERBLUR
static const int REQ_CAMERANV
static const int REQ_UNDERGROUND
static PPERequesterBase GetRequester(typename type)
Returns an instance (singleton) of a requester based on typename.
static const int REQ_HEALTHHITEFFECTS
static const int REQ_GLASSESDESIGNER
static int RegisterRequester(typename type)
Registers new requester type.
static const int REQ_CONTROLLERDISCONNECT
static const int REQ_TUNELVISSION
static const int REQ_SHOCKHITEFFECTS
static const int REQ_BLOODLOSS
static const int REQ_GLASSESSPORTBLUE
static const int REQ_GLASSESTACTICAL
static bool VerifyRequester(PPERequesterBase req)
Verifies the instance.
void SetRequesterIDX(int idx)
automatically assigned by PPERequesterBank
void Error(string err)
Messagebox with error message.
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.