update
This commit is contained in:
8
RobotApp/Services/State/RobotState.cs
Normal file
8
RobotApp/Services/State/RobotState.cs
Normal file
@@ -0,0 +1,8 @@
|
||||
namespace RobotApp.Services.State;
|
||||
|
||||
public abstract class RobotState<T>(T type) where T : Enum
|
||||
{
|
||||
public readonly T Type = type;
|
||||
public virtual void Enter() { }
|
||||
public virtual void Exit() { }
|
||||
}
|
||||
0
RobotApp/Services/State/RobotStateMachine.cs
Normal file
0
RobotApp/Services/State/RobotStateMachine.cs
Normal file
Reference in New Issue
Block a user