engiGetAttrDerived
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); } }