Browse Source

Expose some information in EngineFunction exports for better interop capabilities

Lukas Aldershaab 1 year ago
parent
commit
8748a2cac8
1 changed files with 7 additions and 1 deletions
  1. 7 1
      Engine/source/console/engineFunctions.h

+ 7 - 1
Engine/source/console/engineFunctions.h

@@ -298,9 +298,15 @@ class EngineFunctionInfo : public EngineExport
       
       
       /// Return the vector storing the default argument values.
       /// Return the vector storing the default argument values.
       const EngineFunctionDefaultArguments* getDefaultArguments() const { return mDefaultArgumentValues; }
       const EngineFunctionDefaultArguments* getDefaultArguments() const { return mDefaultArgumentValues; }
-      
+
+      /// Return the pointer to the C-API Function.
+      const void* getAddress() const { return mAddress; }
+
       /// Reset all callout function pointers back to NULL.  This deactivates all callbacks.
       /// Reset all callout function pointers back to NULL.  This deactivates all callbacks.
       static void resetAllCallouts();
       static void resetAllCallouts();
+
+      static const EngineFunctionInfo* getFirstFunction() { return smFirstFunction; }
+      const EngineFunctionInfo* getNextFunction() const { return mNextFunction; }
 };
 };