Action
From MightyWiki
Actions are type of Items that wrap some procedure that can be executed by the user. Actions have supported Subject types, and subjects have available actions. Actions also sometimes have optional parameters that can affect the way they operate. Given a trio of a subject, action and a parameter, the engine can perform a Command by passing the action a reference to the pair of subject and param (if available).
Action Properties
Additionally to the properties defined by Items (being a super class of actions), actions add a basic set of properties.
| Property | Type | Description |
|---|---|---|
| Action | Delegate | delegate that points to a function which gets the (subject, param) pair, and is called by the engine when executing a command |
| Provider | Action Provider | A reference to the provider of this action. The |
| DisplaysResult | Boolean | A Boolean variable to flag the engine whether to reopen command window after command execution. |
| Rank | int | TBD |
