CustomAssets
Askowl Custom Assets
CustomAsset.Constant.Quotes Class Reference

Custom Asset for picking one or a list of quotes - either kept in the asset or as a separate text file. Each quote is on a separate line in the form: More...

Inheritance diagram for CustomAsset.Constant.Quotes:
CustomAsset.Constant.OfType< QuoteSet >

Public Member Functions

string Pick ()
  More...
 
- Public Member Functions inherited from CustomAsset.Constant.OfType< QuoteSet >
override string ToString ()
 Pass string conversion responsibility from the custom asset to the containing value More...
 

Static Public Member Functions

static string Rtf (string quote)
  More...
 
- Static Public Member Functions inherited from CustomAsset.Constant.OfType< QuoteSet >
static implicit operator T (OfType< T > t)
 All extraction by casting a custom object to the contained type. Same as getting the Value - as in myCustomAsset.Value === (MyCustomAsset) myCustomAsset More...
 

Public Attributes

int Count => Value.Count
  More...
 
- Public Attributes inherited from CustomAsset.Constant.OfType< QuoteSet >
Value
 For safe(ish) access to the contents field More...
 

Protected Member Functions

override void OnEnable ()
  More...
 

Additional Inherited Members

- Static Protected Member Functions inherited from CustomAsset.Constant.OfType< QuoteSet >
static OfType< T > Instance (string name)
 If this is a project asset, then you will need to reference it somewhere. Other classes can get a reference using Instance() or Instance(string name). Also useful for creating in-memory versions to share between hosts. More...
 

Detailed Description

Member Function Documentation

◆ OnEnable()

override void CustomAsset.Constant.Quotes.OnEnable ( )
protected

Definition at line 49 of file Quotes.cs.

◆ Pick()

string CustomAsset.Constant.Quotes.Pick ( )

◆ Rtf()

static string CustomAsset.Constant.Quotes.Rtf ( string  quote)
static

Member Data Documentation

◆ Count

int CustomAsset.Constant.Quotes.Count => Value.Count

Definition at line 64 of file Quotes.cs.


The documentation for this class was generated from the following file: