void EntityDecay(DecayEvent de) { }
private void EntityDecay(DecayEvent de) { }
public void OnEntityDecay(DecayEvent evt) { Invoke("On_EntityDecay", evt); }
void EntityDecay(DecayEvent de) { if (Core.IsEnabled() && (Core.config.GetSetting("Settings", "decay") == "false")) de.DamageAmount = 0f; }
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; }
void OnEntityDecay(DecayEvent param0) { foreach (KeyValuePair<string, V8Plugin> plugin in plugins) { plugin.Value.Invoke("On_EntityDecay", param0); // Deprecated plugin.Value.Invoke("OnEntityDecay", param0); } }