gclass_add_state()
#
Adds a new state to the finite state machine (FSM) of a GClass.
Prototype
PUBLIC int gclass_add_state(
hgclass gclass,
gobj_state_t state_name
);
Parameters
Key |
Type |
Description |
---|---|---|
|
Handle to the GClass to which the state is being added. |
|
|
The name of the state to add to the FSM. |
Return Value
0
: The state was successfully added.-1
: The state could not be added (e.g., if it already exists).
Prototype
// Not applicable in JS
Prototype
# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples