Exemple #1
0
 public void RemoveShipSpawnMiddleware(ShipSpawnMiddleware shipSpawnMiddleware)
 {
     shipSpawnMiddlewares.Remove(shipSpawnMiddleware);
 }
Exemple #2
0
    /*private abstract class MiddleWareList<T>
     * {
     *  private List<T> collection = new List<T>();
     *  public abstract void Execute();
     * }
     *
     * private class ShipMiddleWareList : MiddleWareList<ShipSpawnMiddleware>
     * {
     *  public override void Execute()
     *  {
     *
     *  }
     * }*/

    public void AddShipSpawnMiddleware(ShipSpawnMiddleware shipSpawnMiddleware)
    {
        shipSpawnMiddlewares.Add(shipSpawnMiddleware);
    }