Skip to content
This repository was archived by the owner on Nov 16, 2025. It is now read-only.

FiniteStateMachine ctor()

ged edited this page Sep 9, 2024 · 10 revisions

Initializes a FiniteStateMachine<TContext> instance that has a specified context.

FiniteStateMachine(TContext* context)

Parameters
context: The context to be used by the state machine.

Usage

struct FooContext; // implementation omitted for brevity

auto fooContext = FooContext();
auto autoFooStateMachine = FiniteStateMachine<FooContext>(&fooContext);

Clone this wiki locally