500{
503
505
539
545
547
549 {
551
554
556 }
557
559 {
561 {
564 }
565 }
566
574 {
575 if (!type)
576 {
577 Error(
"Requested type is NULL!");
578 return null;
579 }
580
584 {
586 if (temp.Type() == type)
587 {
589 break;
590 }
591 }
592
593 if (!ret)
594 {
595 Debug.
Log(
"'" + type.ToString() +
"' not found in bank! Register first in 'RegisterRequester' method.");
596 }
597 return ret;
598 }
599
607 {
609
610 if (!ret)
611 {
612 Debug.
Log(
"Requester idx '" + index +
"' not found in bank! Register first in 'RegisterRequester' method.");
613 }
614 return ret;
615 }
616
624 {
625 int ret = -1;
627
629 {
631 if (temp.Type() == type)
632 {
634 }
635 }
636
637 if ( ret == -1 )
638 {
639 Debug.
Log(
"Requester instance of the '" + type.ToString() +
"' type not found in bank! Register first in 'RegisterRequester' method.");
640 }
641 return ret;
642 }
643
650 {
651 typename ret;
653 if ( !temp )
654 {
655 Debug.
Log(
"No requester exists under idx '" + index +
"' in bank! Register first in 'RegisterRequester' method.");
656 }
657 else
658 {
659 ret = temp.Type();
660 }
661
662 return ret;
663 }
664
670 {
673
675 {
676
677 Debug.
Log(
"Trying to register an already existing requester type: " + type);
678 return -1;
679 }
680
682
687
689 }
690
693 {
695 {
696 return true;
697 }
698
701 {
703 if (temp == req)
704 {
705 return true;
706 }
707 }
708
709
710 Debug.
Log(
"Requester instance '" + req +
"' not valid! Please use registered instances from PPERequesterBank.");
711 return false;
712 }
713
716 {
718 if (req)
719 {
721 }
722 else
723 {
724 Debug.
Log(
"'" + type.ToString() +
"' not found in bank! Register first in 'RegisterRequester' method.");
725 }
726
727 return false;
728 }
729
732 {
734 if (req)
735 {
737 }
738 else
739 {
740 Debug.
Log(
"Requester idx '" + index +
"' not found in bank! Register first in 'RegisterRequester' method.");
741 }
742
743 return false;
744 }
745
746
747
748
749
750
751
752
753
754
755}
756
759{
761 {
763 }
764
766 {
767
768 }
769}
770
771
772
773
774
775
776
777
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.