init(from:)
Creates an instance of CustomAction initialized from the provided TabletopAction. If the provided action is not a custom action, this initializer returns nil.
Declaration
init?(from action: some TabletopAction)Parameters
- action:
The action to initialize this instance from.