diff --git a/imm/FSM.cs b/imm/FSM.cs index 44bf500..e492ac2 100644 --- a/imm/FSM.cs +++ b/imm/FSM.cs @@ -28,6 +28,8 @@ public record class State : imm.Recorded> } } + + public record class FSM : imm.Recorded> where T : FSM where CTX : Context @@ -36,10 +38,10 @@ public record class FSM : imm.Recorded> public CTX Context { get; private set; } public ST State { get; private set; } - public FSM(CTX context, ST state) + public FSM( CTX context, ST stStart ) { Context = context; - State = state; + State = stStart; } public FSM Transition(ST newState)