partial void OnWriteCodeCompleted(StateType state, StateMachineType model)
 {
     //writes the enum State store
     StateStore.WriteClass();
 }