IStateFactory2.cs 680 B

1234567891011121314151617
  1. namespace Wayne.Lib.StateEngine
  2. {
  3. ///<summary>
  4. /// Interface to a State factory, that can use the State Type Container
  5. ///</summary>
  6. public interface IStateFactory2 : IStateFactory
  7. {
  8. /// <summary>
  9. /// Create a state object from the specified State name.
  10. /// </summary>
  11. /// <param name="stateFactoryName">Name of the state to be created.</param>
  12. /// <param name="stateTypeContainer"></param>
  13. /// <returns>If successful, it returns the object for the state name. If it not was found, it returns null.</returns>
  14. State CreateState(string stateFactoryName, StateTypeContainer stateTypeContainer);
  15. }
  16. }