Browse Source

register the function and the tag

Sven Czarnian 3 years ago
parent
commit
f2f68708ac
2 changed files with 4 additions and 0 deletions
  1. 3 0
      src/PlugIn.cpp
  2. 1 0
      src/PlugIn.h

+ 3 - 0
src/PlugIn.cpp

@@ -57,6 +57,9 @@ PlugIn::PlugIn() :
         m_compatible(false) {
     GOOGLE_PROTOBUF_VERIFY_VERSION;
 
+    this->RegisterTagItemType("Delta time", static_cast<int>(PlugIn::TagItemElement::DeltaTime));
+    this->RegisterTagItemFunction("Force planning", static_cast<int>(PlugIn::TagItemFunction::ForceToBackend));
+
     this->DisplayUserMessage(PLUGIN_NAME, "INFO", (std::string("Loaded ") + PLUGIN_NAME + " " + PLUGIN_VERSION).c_str(), true, true, false, false, false);
 
     /* get the dll-path */

+ 1 - 0
src/PlugIn.h

@@ -40,6 +40,7 @@ namespace aman {
 
     private:
         enum class TagItemElement {
+            DeltaTime = 0
         };
 
         void validateBackendData();