1234567891011121314151617181920212223242526272829303132 |
- namespace Wayne.Lib.StateEngine.Generic
- {
- /// <summary>
- /// Generic initial state class that has a main object of a generic type.
- /// </summary>
- /// <typeparam name="TMain">Specifies the type of the main object.</typeparam>
- public abstract class InitialState<TMain> : InitialState, IGenericState<TMain>
- {
- #region Properties
- /// <summary>
- /// The main object.
- /// </summary>
- protected TMain Main
- {
- get;
- private set;
- }
- #endregion
- #region IGenericState<TMain> Members
- TMain IGenericState<TMain>.WritableMain
- {
- get { return Main; }
- set { Main = value; }
- }
- #endregion
- }
- }
|