327{
330
332
366
372
374
376 {
378
381
383 }
384
386 {
388 {
391 }
392 }
393
401 {
402 if (!type)
403 {
404 Error(
"Requested type is NULL!");
405 return null;
406 }
407
411 {
413 if (temp.Type() == type)
414 {
416 break;
417 }
418 }
419
420 if (!ret)
421 {
422 Debug.
Log(
"'" + type.ToString() +
"' not found in bank! Register first in 'RegisterRequester' method.");
423 }
424 return ret;
425 }
426
434 {
436
437 if (!ret)
438 {
439 Debug.
Log(
"Requester idx '" + index +
"' not found in bank! Register first in 'RegisterRequester' method.");
440 }
441 return ret;
442 }
443
451 {
452 int ret = -1;
454
456 {
458 if (temp.Type() == type)
459 {
461 }
462 }
463
464 if ( ret == -1 )
465 {
466 Debug.
Log(
"Requester instance of the '" + type.ToString() +
"' type not found in bank! Register first in 'RegisterRequester' method.");
467 }
468 return ret;
469 }
470
477 {
478 typename ret;
480 if ( !temp )
481 {
482 Debug.
Log(
"No requester exists under idx '" + index +
"' in bank! Register first in 'RegisterRequester' method.");
483 }
484 else
485 {
486 ret = temp.Type();
487 }
488
489 return ret;
490 }
491
497 {
500
502 {
503
504 Debug.
Log(
"Trying to register an already existing requester type: " + type);
505 return -1;
506 }
507
509
514
516 }
517
520 {
522 {
523 return true;
524 }
525
528 {
530 if (temp == req)
531 {
532 return true;
533 }
534 }
535
536
537 Debug.
Log(
"Requester instance '" + req +
"' not valid! Please use registered instances from PPERequesterBank.");
538 return false;
539 }
540
543 {
545 if (req)
546 {
548 }
549 else
550 {
551 Debug.
Log(
"'" + type.ToString() +
"' not found in bank! Register first in 'RegisterRequester' method.");
552 }
553
554 return false;
555 }
556
559 {
561 if (req)
562 {
564 }
565 else
566 {
567 Debug.
Log(
"Requester idx '" + index +
"' not found in bank! Register first in 'RegisterRequester' method.");
568 }
569
570 return false;
571 }
572
573
574
575
576
577
578
579
580
581
582}
583
586{
588 {
590 }
591
593 {
594
595 }
596}
597
598
599
600
601
602
603
604
static const int REQ_HEALTHHITEFFECTS
static const int REQ_GLASSESTACTICAL
static const int REQ_CONTROLLERDISCONNECT
static const int REQ_LATENCYBLUR
static const int REQ_GLASSESSPORTBLACK
void RegisterAdditionalRequesters()
static ref map< int, ref PPERequesterBase > m_Instances
static const int REQ_FEEDBACKBLUR
static const int REQ_INTROCHROMABB
static const int REQ_CONTROLLERBLUR
static const int REQ_GLASSESDESIGNER
class PPERequesterBank extends Managed PPERequesterRegistrations()
Mod this, if you wish to register custom requesters inside 'RegisterAdditionalRequesters' override.
static const int REQ_BURLAPSACK
static const int REQ_INVENTORYBLUR
static const int REQ_CONTAMINATEDAREA
static const int REQ_GLASSESAVIATOR
static const int REQ_MOTOHELMETBLACK
static bool VerifyRequester(PPERequesterBase req)
Verifies the instance.
static const int REQ_GLASSESSPORTORANGE
static const int REQ_CAMERANV
static const int REQ_SHOCKHITEFFECTS
static const int REQ_FEVEREFFECTS
static int RegisterRequester(typename type)
Registers new requester type.
static const int REQ_DROWNING
static int GetRequesterID(typename type)
Returns an ID of a requester type.
static const int REQ_TUTORIALEFFECTS
static ref PPERequesterRegistrations m_Registrations
static const int REQ_DEATHEFFECTS
static GetRequesterTypename(int index)
Returns a typename from a requester ID.
static const int REQ_SQUINT
static const int REQ_UNCONEFFECTS
static const int REQ_SANDSTORMEFFECT
static const int REQ_TUNELVISSION
static const int REQ_BLOODLOSS
static const int REQ_HMP_GHOST
static const int REQ_GLASSESWELDING
static const int REQ_PAINBLUR
static const int REQ_FLASHBANGEFFECTS
static const int REQ_CAMERAADS
static const int REQ_MENUEFFECTS
static const int REQ_UNDERGROUND
static const int REQ_GLASSESSPORTBLUE
static const int REQ_SERVERBROWSEREFFECTS
static const int REQ_GLASSESSPORTGREEN
static const int REQ_SPOOKYAREA
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.
bool IsRequesterRunning()
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.