x) minor renames
This commit is contained in:
parent
cf519ce865
commit
e656e46e7c
@ -28,6 +28,8 @@ public record class State<T, CTX> : imm.Recorded<State<T, CTX>>
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public record class FSM<T, CTX, ST> : imm.Recorded<FSM<T, CTX, ST>>
|
public record class FSM<T, CTX, ST> : imm.Recorded<FSM<T, CTX, ST>>
|
||||||
where T : FSM<T, CTX, ST>
|
where T : FSM<T, CTX, ST>
|
||||||
where CTX : Context
|
where CTX : Context
|
||||||
@ -36,10 +38,10 @@ public record class FSM<T, CTX, ST> : imm.Recorded<FSM<T, CTX, ST>>
|
|||||||
public CTX Context { get; private set; }
|
public CTX Context { get; private set; }
|
||||||
public ST State { get; private set; }
|
public ST State { get; private set; }
|
||||||
|
|
||||||
public FSM(CTX context, ST state)
|
public FSM( CTX context, ST stStart )
|
||||||
{
|
{
|
||||||
Context = context;
|
Context = context;
|
||||||
State = state;
|
State = stStart;
|
||||||
}
|
}
|
||||||
|
|
||||||
public FSM<T, CTX, ST> Transition(ST newState)
|
public FSM<T, CTX, ST> Transition(ST newState)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user