Namespace Prefrontal.Attributes
Classes
- RequiredModuleAttribute
Specifies that this module requires the given module to be present on the Agent in order to function. The agent will ensure that the required module is present before configuring and initializing this module.
Example sage:public class MyModule : Module { [RequiredModule] public MyOtherModule OtherModule { get; set; } = null!; }
Module dependencies can also be specified in the module's constructor like so:
public class MyModule(MyOtherModule otherModule) : Module { public MyOtherModule OtherModule = otherModule; }
- SingletonModuleAttribute
Specifies that there can only be one instance of this module type per Agent.
Example:[SingletonModule] public class MySingletonModule : Module { // ... }