Beispiel #1
0
 public void Execute(World world)
 {
     OnReplace?.Invoke(world);
     OnRemove?.Invoke(world);
     OnCreate?.Invoke(world);
     OnSeed?.Invoke(world);
 }
Beispiel #2
0
 internal void Replace(CatPoint replacement)
 {
     if (this != replacement)
     {
         OnReplace?.Invoke(this, replacement);
     }
 }
Beispiel #3
0
 protected void RaiseOnReplace(T t) => OnReplace?.Invoke(t);
Beispiel #4
0
 /// <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);
 }