Pro_Unit

IState

Jul 22nd, 2021
1,117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.28 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment