Resources | developer.brewmp.com Resources | developer.brewmp.com

Developer

resources

IDL interface in Lua

An IDL interface is mapped to a Lua table with its methods stripped. For example:

const AEEIID AEEIID_IFoo = 0x00123123;
interface IFoo : IQI
{
     const long MyInterfaceConst = 42;
     AEEResult Process(in short a);
};

is mapped as:

AEEIID_IFoo = 0x123123,
IFoo = {
   MyInterfaceConst = 42
}