Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
A content saliency strategy that returns the first of the best, least-recently seen choices from the provided options.
A content saliency strategy that returns the best of the provided options.
Represents a piece of content that may be selected by an .
Contains extension methods for System.Collections.Generic.IEnumerable`1
.
A content saliency strategy that always returns the first non-failing item in the list of available options.
A content saliency strategy that returns a random choice of the best, least-recently seen choices from the provided options.
Indicates what type of content a represents.
Contains methods for choosing a piece of content from a collection of options.
Class in
Inherits from System.Object
A content saliency strategy that returns the best of the provided options.
This strategy always selects the single best of the available items, regardless of how many times it has been seen before. For a saliency strategy that takes into account how recently content has been seen, see .
Called by Yarn Spinner to indicate that a piece of salient content has been selected, and this system should update any state related to how it selects content.
Chooses an item from content that is the most appropriate (or salient ) for the user's current context.
Method in BestLeastRecentlyViewedSalienceStrategy
Chooses an item from content that is the most appropriate (or salient ) for the user's current context.
Implementations of this method should not modify any state
that is, they should be 'read-only' operations. If a strategy needs to record information about when a piece of content has been selected, it should do it in the ContentWasSelected(ContentSaliencyOption) method.
System.Collections.Generic.IEnumerable<Yarn.Saliency.ContentSaliencyOption>
content
A collection of content items. This collection may be empty.
An item from content
that is the most appropriate for display, or null
if no content should be displayed.
Method in BestLeastRecentlyViewedSalienceStrategy
Called by Yarn Spinner to indicate that a piece of salient content has been selected, and this system should update any state related to how it selects content.
If a content saliency strategy does not need to keep track of any state, then this method can be empty.
content
The content that has been selected.
Class in Yarn.Saliency
Inherits from System.Object
A content saliency strategy that returns the first of the best, least-recently seen choices from the provided options.
This strategy stores information about the number of times each piece of content has been seen in the provided Yarn.Saliency.BestLeastRecentlyViewedSalienceStrategy.VariableStorage
.
Initalises a new instance of the class.
Called by Yarn Spinner to indicate that a piece of salient content has been selected, and this system should update any state related to how it selects content.
Chooses an item from content that is the most appropriate (or salient ) for the user's current context.
Method in BestSaliencyStrategy
Chooses an item from content that is the most appropriate (or salient ) for the user's current context.
Implementations of this method should not modify any state
that is, they should be 'read-only' operations. If a strategy needs to record information about when a piece of content has been selected, it should do it in the ContentWasSelected(ContentSaliencyOption) method.
System.Collections.Generic.IEnumerable<Yarn.Saliency.ContentSaliencyOption>
content
A collection of content items. This collection may be empty.
An item from content
that is the most appropriate for display, or null
if no content should be displayed.
Method in BestSaliencyStrategy
Called by Yarn Spinner to indicate that a piece of salient content has been selected, and this system should update any state related to how it selects content.
If a content saliency strategy does not need to keep track of any state, then this method can be empty.
content
The content that has been selected.
Enum in Yarn.Saliency
Inherits from System.Enum
Indicates what type of content a ContentSaliencyOption represents.
The content represents a line in a line group.
The content represents a node in a node group.
ContentSaliencyOption.ContentType: Gets the type of content that this option represents.
Yarn.IVariableStorage storage
The variable storage to use when determining which content to show.
Enumeration Member in ContentSaliencyContentType
The content represents a line in a line group.
Class in Yarn.Saliency
Inherits from System.Object
Contains extension methods for System.Collections.Generic.IEnumerable`1
.
Returns a random element from enumerable
.
Property in ContentSaliencyOption
Gets the type of content that this option represents.
This information may be used by custom IContentSaliencyStrategy classes to allow them to have different behaviour depending on the type of the content.
Property in ContentSaliencyOption
Gets a unique variable name that can be used for tracking the view count of a specific piece of content. This value is null
if ContentID is null
or empty.
Class in Yarn.Saliency
Inherits from System.Object
Represents a piece of content that may be selected by an IContentSaliencyStrategy .
Initializes a new instance of the ContentSaliencyOption class with the specified content ID.
Gets the complexity score of this option.
Gets a string that uniquely identifies this content.
Gets the type of content that this option represents.
Get the number of conditions that failed for this piece of content.
Gets the number of conditions that passed for this piece of content.
Gets a unique variable name that can be used for tracking the view count of a specific piece of content. This value is null
if is null
or empty.
Method in
Returns a random element from enumerable
.
This method uses System.Random to make a selection, which is cryptographically insecure. This means that this method should not be used for security-critical decisions.
A random element in enumerable
.
System.Collections.Generic.IEnumerable<T>
enumerable
The collection to choose an item from.
T
The type of element in enumerable
.
string
id
A string representing the unique identifier for the content.
Interface in Yarn.Saliency
Contains methods for choosing a piece of content from a collection of options.
Called by Yarn Spinner to indicate that a piece of salient content has been selected, and this system should update any state related to how it selects content.
Chooses an item from content that is the most appropriate (or salient ) for the user's current context.
Method in
Called by Yarn Spinner to indicate that a piece of salient content has been selected, and this system should update any state related to how it selects content.
If a content saliency strategy does not need to keep track of any state, then this method can be empty.
The content that has been selected.
Enumeration Member in ContentSaliencyContentType
The content represents a node in a node group.
Method in IContentSaliencyStrategy
Chooses an item from content that is the most appropriate (or salient ) for the user's current context.
Implementations of this method should not modify any state
that is, they should be 'read-only' operations. If a strategy needs to record information about when a piece of content has been selected, it should do it in the ContentWasSelected(ContentSaliencyOption) method.
System.Collections.Generic.IEnumerable<Yarn.Saliency.ContentSaliencyOption>
content
A collection of content items. This collection may be empty.
An item from content
that is the most appropriate for display, or null
if no content should be displayed.
Method in IContentSaliencyStrategy
Called by Yarn Spinner to indicate that a piece of salient content has been selected, and this system should update any state related to how it selects content.
If a content saliency strategy does not need to keep track of any state, then this method can be empty.
content
The content that has been selected.
Method in RandomBestLeastRecentlyViewedSalienceStrategy
Called by Yarn Spinner to indicate that a piece of salient content has been selected, and this system should update any state related to how it selects content.
If a content saliency strategy does not need to keep track of any state, then this method can be empty.
content
The content that has been selected.
Class in Yarn.Saliency
Inherits from System.Object
A content saliency strategy that always returns the first non-failing item in the list of available options.
This saliency strategy is used when a Dialogue has no provided saliency strategy, but is required to make a decision.
Called by Yarn Spinner to indicate that a piece of salient content has been selected, and this system should update any state related to how it selects content.
Chooses an item from content that is the most appropriate (or salient ) for the user's current context.
Class in Yarn.Saliency
Inherits from System.Object
A content saliency strategy that returns a random choice of the best, least-recently seen choices from the provided options.
This strategy stores information about the number of times each piece of content has been seen in the provided Yarn.Saliency.RandomBestLeastRecentlyViewedSalienceStrategy.VariableStorage
.
Initializes a new instance of the class.
Called by Yarn Spinner to indicate that a piece of salient content has been selected, and this system should update any state related to how it selects content.
Chooses an item from content that is the most appropriate (or salient ) for the user's current context.
Method in
Chooses an item from content that is the most appropriate (or salient ) for the user's current context.
Implementations of this method should not modify any state
that is, they should be 'read-only' operations. If a strategy needs to record information about when a piece of content has been selected, it should do it in the method.
An item from content
that is the most appropriate for display, or null
if no content should be displayed.
System.Collections.Generic.IEnumerable<Yarn.Saliency.ContentSaliencyOption>
content
A collection of content items. This collection may be empty.
Method in FirstSaliencyStrategy
Chooses an item from content that is the most appropriate (or salient ) for the user's current context.
Implementations of this method should not modify any state
that is, they should be 'read-only' operations. If a strategy needs to record information about when a piece of content has been selected, it should do it in the ContentWasSelected(ContentSaliencyOption) method.
System.Collections.Generic.IEnumerable<Yarn.Saliency.ContentSaliencyOption>
content
A collection of content items. This collection may be empty.
An item from content
that is the most appropriate for display, or null
if no content should be displayed.
Constructor in RandomBestLeastRecentlyViewedSalienceStrategy
Initializes a new instance of the RandomBestLeastRecentlyViewedSalienceStrategy class.
storage
The variable storage to use when determining which content to show.