public void Execute(World world) { OnReplace?.Invoke(world); OnRemove?.Invoke(world); OnCreate?.Invoke(world); OnSeed?.Invoke(world); }
internal void Replace(CatPoint replacement) { if (this != replacement) { OnReplace?.Invoke(this, replacement); } }
protected void RaiseOnReplace(T t) => OnReplace?.Invoke(t);
/// <summary> /// Applies a replacement action according to a given strategy defined by the delegate procedure. /// </summary> /// <param name="replace">This delegate function implements the strategy for applying the replacement.</param> public void Apply(OnReplace replace) { replace(StartIndex + CumulativeOffset, OldValue.Length, NewValue); }