-
-
Notifications
You must be signed in to change notification settings - Fork 44
iw4madminapplicationpluginscript ScriptPlugin
RaidMax edited this page May 21, 2023
·
1 revision
implementation of IPlugin used to proxy script plugin requests
flowchart LR
classDef interfaceStyle stroke-dasharray: 5 5;
classDef abstractStyle stroke-width:4px
subgraph IW4MAdmin.Application.Plugin.Script
IW4MAdmin.Application.Plugin.Script.ScriptPlugin[[ScriptPlugin]]
end
subgraph SharedLibraryCore.Interfaces
SharedLibraryCore.Interfaces.IPlugin[[IPlugin]]
class SharedLibraryCore.Interfaces.IPlugin interfaceStyle;
end
SharedLibraryCore.Interfaces.IPlugin --> IW4MAdmin.Application.Plugin.Script.ScriptPlugin
Type | Name | Methods |
---|---|---|
string |
Author |
get, set |
bool |
IsParser indicates if the plugin is a parser |
get, private set |
string |
Name |
get, set |
float |
Version |
get, set |
FileSystemWatcher |
Watcher |
get |
Returns | Name |
---|---|
void |
Finalize () |
Returns | Name |
---|---|
T |
ExecuteAction (Delegate action, CancellationToken token, object``[] param) |
Task |
Initialize (IManager manager, IScriptCommandFactory scriptCommandFactory, IScriptPluginServiceResolver serviceResolver, IConfigurationHandlerV2 <ScriptPluginConfiguration > configHandler) |
Task |
OnEventAsync (GameEvent gameEvent, Server server) |
Task |
OnLoadAsync (IManager manager) |
Task |
OnTickAsync (Server server) |
Task |
OnUnloadAsync () |
T |
WrapDelegate (Delegate act, CancellationToken token, object``[] args) |
implementation of IPlugin used to proxy script plugin requests
public ScriptPlugin(ILogger logger, string filename, string workingDirectory)
Type | Name | Description |
---|---|---|
ILogger |
logger | |
string |
filename | |
string |
workingDirectory |
protected override void Finalize()
public async Task Initialize(IManager manager, IScriptCommandFactory scriptCommandFactory, IScriptPluginServiceResolver serviceResolver, IConfigurationHandlerV2<ScriptPluginConfiguration> configHandler)
Type | Name | Description |
---|---|---|
IManager |
manager | |
IScriptCommandFactory |
scriptCommandFactory | |
IScriptPluginServiceResolver |
serviceResolver | |
IConfigurationHandlerV2 <ScriptPluginConfiguration > |
configHandler |
public virtual async Task OnEventAsync(GameEvent gameEvent, Server server)
Type | Name | Description |
---|---|---|
GameEvent |
gameEvent | |
Server |
server |
public virtual Task OnLoadAsync(IManager manager)
Type | Name | Description |
---|---|---|
IManager |
manager |
public virtual Task OnTickAsync(Server server)
Type | Name | Description |
---|---|---|
Server |
server |
public virtual async Task OnUnloadAsync()
public T ExecuteAction<T>(Delegate action, CancellationToken token, object[] param)
where T :
Type | Name | Description |
---|---|---|
Delegate |
action | |
CancellationToken |
token | |
object``[] |
param |
public T WrapDelegate<T>(Delegate act, CancellationToken token, object[] args)
where T :
Type | Name | Description |
---|---|---|
Delegate |
act | |
CancellationToken |
token | |
object``[] |
args |
public string Name { get; set; }
public float Version { get; set; }
public string Author { get; set; }
public virtual bool IsParser { get; private set; }
indicates if the plugin is a parser
public FileSystemWatcher Watcher { get; }
Generated with ModularDoc