engiGetEntityWhereRuleByIterator

Iterates where rules of the entity or defined type. Declaration can be ENTITY or DEFINED_TYPE. Includes this but not parent entities or types. Returns first rule if prev is NULL. Returns NULL when prev is the last rule. Use engiGetScriptText to get further information.

Syntax

public const string enginedll = @"engine.dll";

[DllImport(enginedll, EntryPoint = "engiGetEntityWhereRuleByIterator")]
public static extern Int32 x86_engiGetEntityWhereRuleByIterator(Int32 declaration, Int32 prev, out IntPtr label);

[DllImport(enginedll, EntryPoint = "engiGetEntityWhereRuleByIterator")]
public static extern Int32 x64_engiGetEntityWhereRuleByIterator(Int64 declaration, Int64 prev, out IntPtr label);

public static Int32 engiGetEntityWhereRuleByIterator(Int64 declaration, Int64 prev, out IntPtr label)
		{
			if (IntPtr.Size == 4)
			{
				var _result = x86_engiGetEntityWhereRuleByIterator((Int32)declaration, (Int32)prev, out IntPtr _label);
				label = _label;
				return _result;
			}
			else
			{
				return x64_engiGetEntityWhereRuleByIterator(declaration, prev, out label);
			}
		}    

Property declaration

Size: 32 bit / 4 byte (value)
???.

Property prev

Size: 32 bit / 4 byte (value)
???.

Property label

Size: 32 bit / 4 byte (reference)
???.