Beispiel #1
0
 void EntityDecay(DecayEvent de)
 {
 }
Beispiel #2
0
 private void EntityDecay(DecayEvent de)
 {
 }
Beispiel #3
0
 public void OnEntityDecay(DecayEvent evt)
 {
     Invoke("On_EntityDecay", evt);
 }
Beispiel #4
0
 void EntityDecay(DecayEvent de)
 {
     if (Core.IsEnabled() && (Core.config.GetSetting("Settings", "decay") == "false"))
         de.DamageAmount = 0f;
 }
Beispiel #5
0
        public static float EntityDecay(object entity, float dmg)
        {
            Contract.Assume(entity != null);

            try
            {
                DecayEvent de = new DecayEvent(new Entity(entity), ref dmg);
                if (OnEntityDecay != null)
                    OnEntityDecay(de);

                if (decayList.Contains(entity))
                    decayList.Remove(entity);

                decayList.Add(entity);
                return de.DamageAmount;
            }
            catch (Exception ex)
            {
                Logger.LogException(ex);
            }
            return 0f;
        }
Beispiel #6
0
 void OnEntityDecay(DecayEvent param0)
 {
     foreach (KeyValuePair<string, V8Plugin> plugin in plugins)
     {
         plugin.Value.Invoke("On_EntityDecay", param0); // Deprecated
         plugin.Value.Invoke("OnEntityDecay", param0);
     }
 }