cf_trigger_fast AND cf_none

For developers using the Construct 2 Javascript SDK

Post » Sun Jan 26, 2014 11:38 pm

In function plugin in Condition section are present some flag not documented on online manual:

cf_trigger_fast AND cf_none

waht about this? Is the online doc outdated?



//////////////////////////////////////////////////////////////
// Conditions
AddStringParam("Name", "The name of the function that is being called.", "\"\"");
AddCondition(0, cf_trigger | cf_fast_trigger, "On function", "Function", "On <b>{0}</b>", "Triggered when a function is called.", "OnFunction");

AddNumberParam("Index", "Index of the parameter to compare.");
AddCmpParam("Comparison", "How to compare the function parameter.");
AddAnyTypeParam("Value", "The value to compare to.");
AddCondition(1, cf_none, "Compare parameter", "Function", "Parameter {0} {1} {2}", "Compare the value of a parameter in a function call.", "CompareParam");
B
13
S
5
G
3
Posts: 7
Reputation: 3,063

Post » Mon Jan 27, 2014 1:17 pm

cf_none means no flag. cf_fast_trigger is a special variant of triggers that are designed specifically for and only useful for the Function object, so are not documented.
Scirra Founder
B
395
S
231
G
88
Posts: 24,367
Reputation: 193,684

Post » Wed Jan 29, 2014 12:28 am

Ooook.
Thanks for answer to my question.
First question of many other :)
B
13
S
5
G
3
Posts: 7
Reputation: 3,063


Return to Javascript SDK

Who is online

Users browsing this forum: No registered users and 0 guests