123456789101112131415161718192021222324252627282930313233343536 |
- using System;
- using System.Collections.Generic;
- using System.Text;
- namespace Wayne.Lib.StateEngine.Generic
- {
- /// <summary>
- /// Generic pseudo 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 PseudoState<TMain> : PseudoState, 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
- }
- }
|