DPB1Class · Bots, plugins and tasks

Logic

Describe a named logic request passed between components. The receiving component decides whether it can handle the request.

Namespace: DreamPoeBot.Loki.Bot

public class LogicView DPB2 version →

Members and overloads

18 results

Logic

MethodLink ↗
public Logic.Logic(string id, object sender = null)

Creates a new Logic instance using the supplied arguments.

idstring
Specifies id.
senderobject
Specifies sender. Optional; the default is shown in the signature.

Logic

MethodLink ↗
public Logic.Logic(string id, object sender, params dynamic[] input)

Creates a new Logic instance using the supplied arguments.

idstring
Specifies id.
senderobject
Specifies sender.
inputdynamic[]
Specifies input.

AddInput

MethodLink ↗
public void Logic.AddInput<T>(T input, string name)

Adds input using the supplied arguments.

inputT
Specifies input.
namestring
Specifies name.

AddInputs

MethodLink ↗
public void Logic.AddInputs(params dynamic[] input)

Adds inputs using the supplied arguments.

inputdynamic[]
Specifies input.

AddOutput

MethodLink ↗
public void Logic.AddOutput<T>(ILogicProvider handler, T output, string name = "")

Adds output using the supplied arguments.

handlerILogicProvider
Specifies handler.
outputT
Specifies output.
namestring
Specifies name. Optional; the default is shown in the signature.

AddOutputs

MethodLink ↗
public void Logic.AddOutputs(ILogicProvider handler, params dynamic[] output)

Adds outputs using the supplied arguments.

handlerILogicProvider
Specifies handler.
outputdynamic[]
Specifies output.

GetInput

MethodLink ↗
public T Logic.GetInput<T>(int index = 0)

Returns input using the supplied arguments.

indexint
Specifies index. Optional; the default is shown in the signature.

Returns: The T result.

GetInput

MethodLink ↗
public T Logic.GetInput<T>(string name)

Returns input using the supplied arguments.

namestring
Specifies name.

Returns: The T result.

GetOutput

MethodLink ↗
public T Logic.GetOutput<T>(int index = 0)

Returns output using the supplied arguments.

indexint
Specifies index. Optional; the default is shown in the signature.

Returns: The T result.

GetOutput

MethodLink ↗
public T Logic.GetOutput<T>(string name)

Returns output using the supplied arguments.

namestring
Specifies name.

Returns: The T result.

TryGetInput

MethodLink ↗
public bool Logic.TryGetInput<T>(int index, out T input)

Attempts to retrieve input using the supplied arguments.

indexint
Specifies index.
inputT
Receives input.

Returns: True when the request succeeds; read any out parameters only after checking the result.

TryGetInput

MethodLink ↗
public bool Logic.TryGetInput<T>(string name, out T input)

Attempts to retrieve input using the supplied arguments.

namestring
Specifies name.
inputT
Receives input.

Returns: True when the request succeeds; read any out parameters only after checking the result.

TryGetOutput

MethodLink ↗
public bool Logic.TryGetOutput<T>(int index, out T input)

Attempts to retrieve output using the supplied arguments.

indexint
Specifies index.
inputT
Receives input.

Returns: True when the request succeeds; read any out parameters only after checking the result.

TryGetOutput

MethodLink ↗
public bool Logic.TryGetOutput<T>(string name, out T output)

Attempts to retrieve output using the supplied arguments.

namestring
Specifies name.
outputT
Receives output.

Returns: True when the request succeeds; read any out parameters only after checking the result.

Id

PropertyLink ↗
public string Logic.Id { get; }

Gets id for Logic.

Inputs

PropertyLink ↗
public IReadOnlyList<Tuple<object, string>> Logic.Inputs { get; }

Gets the inputs collection. Its element types are linked below.

Outputs

PropertyLink ↗
public IReadOnlyList<Tuple<ILogicProvider, object, string>> Logic.Outputs { get; }

Gets the outputs collection. Its element types are linked below.

Sender

PropertyLink ↗
public object Logic.Sender { get; }

Gets sender for Logic.

DPB1 0.3.29.47 · Reference reviewed 2026-10-02. Descriptions use source summaries where available, otherwise concise signature-based descriptions. Examples illustrate usage; they are not a live-game test.