wolfhece.plugins.state

State helpers for companion plugins.

Module Contents

class wolfhece.plugins.state.CompanionState[source]

Minimal resettable key/value store for companion state.

Subclass this to get typed attributes:

class _MyState(CompanionState):
    start_xy: tuple | None = None
    end_xy:   tuple | None = None
step: int[source]
reset() None[source]

Reset step and public mutable attributes to class defaults.

advance() int[source]

Increment step and return the new value.