Verifies the instance.
425{
428
430
464
468
470
472 {
474
477
479 }
480
482 {
484 {
487 }
488 }
489
497 {
498 if (!type)
499 {
500 Error(
"Requested type is NULL!");
501 return null;
502 }
503
507 {
509 if (temp.Type() == type)
510 {
512 break;
513 }
514 }
515
516 if (!ret)
517 {
518 Debug.
Log(
"'" + type.ToString() +
"' not found in bank! Register first in 'RegisterRequester' method.");
519 }
520 return ret;
521 }
522
530 {
532
533 if (!ret)
534 {
535 Debug.
Log(
"Requester idx '" + index +
"' not found in bank! Register first in 'RegisterRequester' method.");
536 }
537 return ret;
538 }
539
547 {
548 int ret = -1;
550
552 {
554 if (temp.Type() == type)
555 {
557 }
558 }
559
560 if ( ret == -1 )
561 {
562 Debug.
Log(
"Requester instance of the '" + type.ToString() +
"' type not found in bank! Register first in 'RegisterRequester' method.");
563 }
564 return ret;
565 }
566
573 {
574 typename ret;
576 if ( !temp )
577 {
578 Debug.
Log(
"No requester exists under idx '" + index +
"' in bank! Register first in 'RegisterRequester' method.");
579 }
580 else
581 {
582 ret = temp.Type();
583 }
584
585 return ret;
586 }
587
593 {
596
598 {
599
600 Debug.
Log(
"Trying to register an already existing requester type: " + type);
601 return -1;
602 }
603
605
610
612 }
613
616 {
618 {
619 return true;
620 }
621
624 {
626 if (temp == req)
627 {
628 return true;
629 }
630 }
631
632
633 Debug.
Log(
"Requester instance '" + req +
"' not valid! Please use registered instances from PPERequesterBank.");
634 return false;
635 }
636
637
638
639
640
641
642
643
644
645
646}
647
650{
652 {
654 }
655
657 {
658
659 }
660}
661
662
663
664
665
666
667
668
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_UNCONEFFECTS
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.
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.