public CommandAutoCompleteHandler( IConsoleActorAccessor consoleActorAccessor, ICommandStore commandStore, ICommandContextBuilder commandContextBuilder) { m_ConsoleActorAccessor = consoleActorAccessor; m_CommandStore = commandStore; m_CommandContextBuilder = commandContextBuilder; }
public CommandHelp( IPermissionChecker permissionChecker, ICommandStore commandStore, IServiceProvider serviceProvider, ICommandPermissionBuilder commandPermissionBuilder, ICommandContextBuilder commandContextBuilder, IOpenModStringLocalizer stringLocalizer) : base(serviceProvider) { m_PermissionChecker = permissionChecker; m_CommandStore = commandStore; m_CommandPermissionBuilder = commandPermissionBuilder; m_CommandContextBuilder = commandContextBuilder; m_StringLocalizer = stringLocalizer; }
protected CommandContext(ICommandContextBuilder <CommandContext> b) { Message = b.Message; MessageRemainder = b.Message.Substring(b.CommandString.Length).TrimStart(); Command = b.Command; OriginTerm = b.OriginTerm; GMTerm = b.GMTerm; UserTerm = b.UserTerm; User = b.User; AllowEventAsyncAction = b.SignalAsyncOkay; NewEventsAllowed = b.InitialAsyncState; ActingEntity = b.ActingEntity; Pipe = b.Pipe; }
public PluginHelpWriter( ICommandPermissionBuilder permissionBuilder, IPermissionRegistry permissionRegistry, IOpenModPlugin plugin, ICommandStore commandStore, ICommandContextBuilder commandContextBuilder) { m_PermissionBuilder = permissionBuilder; m_PermissionRegistry = permissionRegistry; m_Plugin = plugin; m_CommandStore = commandStore; m_CommandContextBuilder = commandContextBuilder; m_PrintedCommandPermissions = new List <IPermissionRegistration>(); }
public CommandHelp( IRuntime runtime, ICommandStore commandStore, IServiceProvider serviceProvider, IPermissionRegistry permissionRegistry, ICommandPermissionBuilder commandPermissionBuilder, ICommandContextBuilder commandContextBuilder, IOpenModStringLocalizer stringLocalizer) : base(serviceProvider) { // get global permission checker instead of scoped m_PermissionChecker = runtime.Host !.Services.GetRequiredService <IPermissionChecker>(); m_CommandStore = commandStore; m_PermissionRegistry = permissionRegistry; m_CommandPermissionBuilder = commandPermissionBuilder; m_CommandContextBuilder = commandContextBuilder; m_StringLocalizer = stringLocalizer; }