Interface IResearchEffectFactory<T extends IResearchEffect>

All Superinterfaces:
IFactory<FactoryVoidInput,T>

public interface IResearchEffectFactory<T extends IResearchEffect> extends IFactory<FactoryVoidInput,T>
Interface for the IResearchEffectFactory which is responsible for creating and maintaining ResearchEffect objects.
  • Method Details

    • getNewInstance

      @NotNull default T getNewInstance(@NotNull @NotNull IFactoryController factoryController, @NotNull @NotNull FactoryVoidInput token, @NotNull @NotNull Object... context)
      Description copied from interface: IFactory
      Method to get a new instance of the output given the input and additional context data.
      Specified by:
      getNewInstance in interface IFactory<FactoryVoidInput,T extends IResearchEffect>
      Parameters:
      factoryController - The controller calling this factory method.
      token - The input to build a new output for.
      context - The context of the request.
      Returns:
      The new output instance for a given input.
    • getNewInstance

      @NotNull T getNewInstance(@NotNull @NotNull String id, Object obj)
      Method to get a new Instance of a ResearchEffect.
      Parameters:
      id - the input.
      obj - the grid size.
      Returns:
      a new Instance of ResearchEffect.