ManipulateLocalIntVariableAction ​
Inherits: EventAction < Resource
Action to manipulate a local integer variable
Properties ​
String | variable_key | "" |
IntOperation | operation | IntOperation.ADD |
int | amount | 1 |
Methods ​
String | get_function_description() |
Dictionary | save() |
void | load_data( data: Dictionary ) |
Enumerations ​
enum IntOperation ​
The options of int operation: add, subtract, multiply, divide.
- ADD =
0 - SUBTRACT =
1 - MULTIPLY =
2 - DIVIDE =
3
Property descriptions ​
String variable_key = "" ​
The name of the local variable.
IntOperation operation = IntOperation.ADD ​
What to do with the variable (add, subtract, multiply or divide).
int amount = 1 ​
The number for the operation.
Method descriptions ​
String get_function_description() ​
The sentence the editor shows for the action, with {placeholders} for its values.
Dictionary save() ​
The state of the action for a save.
void load_data( data: Dictionary ) ​
Restores the state of the action from a save.