Class StatusInfoAttribute
A method attribute identifying a static method as a status info method. Static methods of algorithm classes that are marked with this attribute will be represented by buttons in the Particle Panel in Simulation Mode. The button belonging to each method will be marked with the given name.
Inheritance
Namespace: AS2
Assembly: .dll
Syntax
[AttributeUsage(AttributeTargets.Method)]
public class StatusInfoAttribute : Attribute
Constructors
| Edit this page View SourceStatusInfoAttribute(string, string, bool)
Marks this static method as a status info method. The method must have two parameters: The first must have type ParticleSystem and gives access to the entire particle system and the second must have type Particle and gives access to the currently selected particle.
Declaration
public StatusInfoAttribute(string name, string tooltip = null, bool autocall = false)
Parameters
Type | Name | Description |
---|---|---|
string | name | The label of the button in the Particle Panel. |
string | tooltip | The (optional) tooltip to be displayed for the button. |
bool | autocall | Whether the status info method should be called automatically at the end of each round by default. This behavior can be changed using the toggles in the Particle Panel. |
Fields
| Edit this page View Sourceautocall
Whether this info method should be called automatically at the end of each round.
Declaration
public bool autocall
Field Value
Type | Description |
---|---|
bool |
name
The display name of the status info method.
Declaration
public string name
Field Value
Type | Description |
---|---|
string |
tooltip
The tooltip to be displayed for the status info button.
Declaration
public string tooltip
Field Value
Type | Description |
---|---|
string |