Table of Contents

Class PromptBase<T>

Namespace
Glitch9.AIDevKit
public abstract class PromptBase<T> : IPrompt, IEquatable<PromptBase<T>>

Type Parameters

T
Inheritance
object
PromptBase<T>
Implements
IEquatable<PromptBase<T>>
Derived
Extension Methods

Constructors

PromptBase()

protected PromptBase()

PromptBase(T, float?)

protected PromptBase(T value, float? weight = null)

Parameters

value T
weight float?

Fields

m_Value

protected T m_Value

Field Value

T

Properties

PromptType

[LocalProperty("type")]
public abstract PromptType PromptType { get; }

Property Value

PromptType

Value

public virtual T Value { get; set; }

Property Value

T

Weight

public float? Weight { get; set; }

Property Value

float?

Methods

Equals(PromptBase<T>)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(PromptBase<T> other)

Parameters

other PromptBase<T>

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object)

Determines whether the specified object is equal to the current object.

public override bool Equals(object obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

GetInputText()

public abstract string GetInputText()

Returns

string

IsValid()

public abstract bool IsValid()

Returns

bool

Operators

operator ==(PromptBase<T>, PromptBase<T>)

public static bool operator ==(PromptBase<T> left, PromptBase<T> right)

Parameters

left PromptBase<T>
right PromptBase<T>

Returns

bool

operator !=(PromptBase<T>, PromptBase<T>)

public static bool operator !=(PromptBase<T> left, PromptBase<T> right)

Parameters

left PromptBase<T>
right PromptBase<T>

Returns

bool