Просмотр исходного кода

Expose some information in EngineFunction exports for better interop capabilities

Lukas Aldershaab 1 год назад
Родитель
Сommit
8748a2cac8
1 измененных файлов с 7 добавлено и 1 удалено
  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.
       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.
       static void resetAllCallouts();
+
+      static const EngineFunctionInfo* getFirstFunction() { return smFirstFunction; }
+      const EngineFunctionInfo* getNextFunction() const { return mNextFunction; }
 };