-
Notifications
You must be signed in to change notification settings - Fork 7
Extension Development Is Fun
EDIF is an extension SDK for Multimedia Fusion 2, which attempts to remedy the issues in the other popular extension SDKs (such as the MMF2SDK (the original) and rSDK, which gained large popularity). In the EDIF SDK for Windows, the runtime behavior of the extension is encapsulated in a real C++ class; the Extension class. A JSON file is used to define the extension's information, Action, Condition, and Expression menus, and Action/Condition/Expression definitions, which correlate exactly to the member functions in the Extension class. The original Runtime.cpp and Edittime.cpp files are split up, with some functions being maintained solely by the EDIF SDK, and others simply being in their own source files grouped with similar functions. EDIF also solves the annoying problem of dealing with the editdata, which was not friendly to dynamic data and involved complex, convoluted code for even two dynamically sized strings. In EDIF, extension developers create an EditData class that can deserialize from and serialize to the editdata like a file in memory. This allows for dynamic data out-of-the-box and unites repeated and inconsistent code across various functions that deal with the editdata.