示例#1
0
 public static void TriggerEvent(CharacterClassManager ccm)
 {
     foreach (var type in types_update)
     {
         if (LabMod.GetObjectOfType(type) == null)
         {
             continue;
         }
         ((ILabModPostRoundStart)LabMod.GetObjectOfType(type)).Event(ccm);
     }
 }
 public static void TriggerEvent(MTFRespawn ccm)
 {
     foreach (var type in types_update)
     {
         if (LabMod.GetObjectOfType(type) == null)
         {
             continue;
         }
         ((ILabModCISpawn)LabMod.GetObjectOfType(type)).Event(ccm);
     }
 }
示例#3
0
 public static void TriggerEvent(RoundSummary sum, RoundSummary.SumInfo_ClassList list_start, RoundSummary.SumInfo_ClassList list_finish, RoundSummary.LeadingTeam leadingTeam, int e_ds, int e_sc, int scp_kills, int round_cd)
 {
     //bool shouldstop = false;
     foreach (var type in types_update)
     {
         if (LabMod.GetObjectOfType(type) == null)
         {
             continue;
         }
         ((ILabModRoundEnd)LabMod.GetObjectOfType(type)).Event(sum, list_start, list_finish, leadingTeam, e_ds, e_sc, scp_kills, round_cd);
     }
     //stop = shouldstop;
 }
示例#4
0
 public static void TriggerEvent()
 {
     //Huge thanks to all the smarter people who pointed out that this will lag the hell out of the server
     //var types = AppDomain.CurrentDomain.GetAssemblies().SelectMany(s => s.GetTypes()).Where(p => typeof(ILabModUpdate).IsAssignableFrom(p) && !p.IsInterface);
     foreach (var type in types_update)
     {
         if (LabMod.GetObjectOfType(type) == null)
         {
             continue;
         }
         ((ILabModUpdate)LabMod.GetObjectOfType(type)).Event();
     }
 }
        public static void TriggerEvent(CharacterClassManager ccm, out bool stop)
        {
            bool should_stop = false;

            foreach (var type in types_update)
            {
                if (LabMod.GetObjectOfType(type) == null)
                {
                    continue;
                }
                if (!((ILabModPlayerEscape)LabMod.GetObjectOfType(type)).Event(ccm))
                {
                    should_stop = true;
                }
            }
            stop = should_stop;
        }
        public static void TriggerEvent(DecontaminationLCZ ccm, out bool stop)
        {
            bool should_stop = false;

            foreach (var type in types_update)
            {
                if (LabMod.GetObjectOfType(type) == null)
                {
                    continue;
                }
                if (!((ILabModLCZDecont)LabMod.GetObjectOfType(type)).Event(ccm))
                {
                    should_stop = true;
                }
            }
            stop = should_stop;
        }
        public static void TriggerEvent(QueryProcessor processor, string query, bool encrypted, out bool stop)
        {
            bool shouldstop = false;

            foreach (var type in types_update)
            {
                if (LabMod.GetObjectOfType(type) == null)
                {
                    continue;
                }
                if (!((ILabModGameConsoleQuery)LabMod.GetObjectOfType(type)).Event(processor, query, encrypted))
                {
                    shouldstop = true;
                }
            }
            stop = shouldstop;
        }
示例#8
0
        public static void TriggerEvent(PlayerStats stats, PlayerStats.HitInfo info, GameObject go, out bool stop)
        {
            bool shouldstop = false;

            foreach (var type in types_update)
            {
                if (LabMod.GetObjectOfType(type) == null)
                {
                    continue;
                }
                if (!((ILabModPlayerHurt)LabMod.GetObjectOfType(type)).Event(stats, info, go))
                {
                    shouldstop = true;
                }
            }
            stop = shouldstop;
        }