Pro_Unit

IState

Jul 22nd, 2021
814
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. namespace AnimalSimulator.Infrastructure
  2. {
  3.     public interface IState : IExitableState
  4.     {
  5.         void Enter();
  6.     }
  7.  
  8.     public interface IPayloadedState<in TPayload> : IExitableState
  9.     {
  10.         void Enter(TPayload payload);
  11.     }
  12.  
  13.     public interface IExitableState
  14.     {
  15.         void Exit();
  16.     }
  17. }
RAW Paste Data