engiGetAttrDerived

This call can be used to check if an attribute is defined schema wise in the context of a certain entity.

Syntax

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

[DllImport(enginedll, EntryPoint = "engiGetAttrDerived")]
public static extern Int64 x86_engiGetAttrDerived(Int32 entity, Int32 attribute);

[DllImport(enginedll, EntryPoint = "engiGetAttrDerived")]
public static extern Int64 x64_engiGetAttrDerived(Int64 entity, Int64 attribute);

public static Int64 engiGetAttrDerived(Int64 entity, Int64 attribute)
		{
			if (IntPtr.Size == 4)
			{
				var _result = x86_engiGetAttrDerived((Int32)entity, (Int32)attribute);
				return _result;
			}
			else
			{
				return x64_engiGetAttrDerived(entity, attribute);
			}
		}    

Property entity

Size: 64 bit / 8 byte (value)
...

Property attribute

Size: 64 bit / 8 byte (reference)
...