So I wrote a little function helper class and put it under plugins / include.
However, is it possible to add a Load/Unload method? I need to do some initialize when my helper class gets loaded.
Loaded method for detecting include file?
Discussion in 'Rust Development' started by mTrX, Apr 16, 2017.
-
Wulf Community Admin
Your plugin won't compile if you rely on something in an include file, so I don't think that's really possible.
-
I think you misunderstood me, plugins do work fine. I made a namespace under plugins/include and my plugins do all have access to this namespace.
The only question I have is since the namespace is not a plugin, just a pure namespace, is there some sort of base class where my namespace inherits some default methods like IncludeLoaded / IncludeUnloaded?
Oxide loading the include file but they're not registered as a plugin that's fine, but I might load/unload call load Loaded/Unloaded just for includes. -
Wulf Community Admin
-
I know that. Maybe I wrote my question wrong.
Are there any overloaded methods for an include for like Loaded/Unloaded ? -
Wulf Community Admin
-
Thanks. Would be nice to see two hooks for include files in the future if it's possible, Loaded + Unloaded is needed on my side.
-
Wulf Community Admin