C# Class TeaseAI_CE.Scripting.Controller

Controllers are the part that figures out what the personality is going to say next.
Inheritance: IKeyed
Show file Open project: TeaseAI/TeaseAI-CE Class Usage Examples

Public Properties

Property Type Description
AutoFill bool
Interval int
OnOutput string>.Action
VM VM

Public Methods

Method Description
Add ( BlockBase root ) : void

Enqueue a root block to be added to the stack.

Add ( IEvent e ) : void
AddFromEmptyQuery ( Logger log ) : bool
AddFromStartQuery ( Logger log ) : bool
AddPersonality ( Personality p ) : void
Contains ( Personality p ) : bool
Get ( Key key, Logger log = null ) : Variable
Input ( Personality p, string text ) : void
Tick ( ) : void
WriteValues ( string prefix, StringBuilder sb ) : void

Private Methods

Method Description
Controller ( VM vm, string id ) : System
next ( StringBuilder output ) : bool

Executes the next line on the stack.

stop ( ) : void
tick_internal ( ) : void
writeValue ( string prefix, StringBuilder sb, string key, Variable v ) : void

Method Details

Add() public method

Enqueue a root block to be added to the stack.
public Add ( BlockBase root ) : void
root BlockBase
return void

Add() public method

public Add ( IEvent e ) : void
e IEvent
return void

AddFromEmptyQuery() public method

public AddFromEmptyQuery ( Logger log ) : bool
log Logger
return bool

AddFromStartQuery() public method

public AddFromStartQuery ( Logger log ) : bool
log Logger
return bool

AddPersonality() public method

public AddPersonality ( Personality p ) : void
p Personality
return void

Contains() public method

public Contains ( Personality p ) : bool
p Personality
return bool

Get() public method

public Get ( Key key, Logger log = null ) : Variable
key Key
log Logger
return Variable

Input() public method

public Input ( Personality p, string text ) : void
p Personality
text string
return void

Tick() public method

public Tick ( ) : void
return void

WriteValues() public method

public WriteValues ( string prefix, StringBuilder sb ) : void
prefix string
sb StringBuilder
return void

Property Details

AutoFill public property

public bool AutoFill
return bool

Interval public property

Time in between ticks.
public int Interval
return int

OnOutput public property

public Action OnOutput
return string>.Action

VM public property

public VM,TeaseAI_CE.Scripting VM
return VM