Property | Type | Description | |
---|---|---|---|
Punctuation | char[] |
Method | Description | |
---|---|---|
AddFunction ( System.Function func ) : void | ||
AddFunction ( string name, System.Function func ) : void | ||
ChangePersonalityID ( |
||
CreateController ( string id, Logger log = null ) : |
Creates a new controller for the given personality.
|
|
CreatePersonality ( string name ) : |
Craete a new personality with given name.
|
|
Get ( |
||
GetAllControllers ( ) : TeaseAI_CE.Scripting.Controller[] | ||
GetGroups ( ) : TeaseAI_CE.Scripting.GroupInfo[] | ||
GetPersonalities ( ) : TeaseAI_CE.Scripting.Personality[] | ||
GetScriptResponse ( string keyword ) : |
||
InputToShorthand ( string text ) : string |
Runs text through input replace, to convert to shorthand.
|
|
KeyClean ( string key, Logger log = null ) : string |
Removes white-space, sets lowercase, removes invalid characters, trims white-space.
|
|
KeyClean ( string keys, Logger log = null ) : string[] |
Removes white-space, sets lowercase, removes invalid characters, trims white-space.
|
|
KeySplit ( string key ) : string[] | ||
LoadFromDirectory ( string path ) : void |
Load files in path and all sub directories.
|
|
QueryScript ( VType query, Logger log ) : Script | ||
QueryScript ( |
||
RemoveController ( |
||
RunPersonalitySetup ( ) : void | ||
SanitizeInputReplace ( string str ) : string |
Sanitize a string for use in the input replace system.
|
|
SanitizeInputReplace ( string strings ) : string[] |
Sanitize strings for use in the input replace system.
|
|
Start ( ) : void |
Starts the controller update thread
|
|
Stop ( ) : void |
Stop controller updating.
|
|
TryGetPersonality ( string name, |
||
VM ( ) : System | ||
Validate ( ) : void |
Method | Description | |
---|---|---|
ExecLine ( |
Execute a line of code.
|
|
KeyClean ( string key, bool &isFloat, bool &isPercent, Logger log = null ) : string |
Removes white-space, sets lowercase, removes invalid characters, trims white-space.
|
|
addScript ( string type, string rootKey, string key, Script script, string tags, string responses ) : void | ||
execParenthCheckAdd ( |
Check whats in sb, then add it to the list. [float, bool, and, or, variable]
|
|
execParentheses ( |
Recursively parses and executes everything in the parentheses, then returns variable array.
|
|
execSplitCommand ( |
gets key and parentheses as args.
|
|
getFileLines ( string file, Logger &log ) : List |
Gets all lines in file, returns null on IOException.
|
|
isNumberChar ( char c ) : bool | ||
parseBlock ( List |
Parses rawLines in to blocks of code recursively based on blockIndent.
|
|
parseBlockStart ( string str, string &key, List |
||
parseCutLine ( string &str, int &indentCount ) : bool |
Counts indentation, and trims white-space and comments from str.
|
|
parseInputReplace ( List |
Parses rawLines as csv for the input replace system
|
|
parseScriptGroup ( List |
Parses raw lines in to the system.
|
|
parseStringArray ( string str, int &i, Logger log ) : string[] |
Parse [] as an array of strings
|
|
parseStringQuoted ( string str, int &i, Logger log ) : string |
Parse "" as a string
|
|
runAllSetupOn ( |
Runs all setup scripts on the controller.
|
|
runAllSetupOn ( |
Runs all setup scripts on the personality.
|
|
runThroughScript ( |
Add script to controller, call next until false.
|
|
threadTick ( ) : void |
Updates all controllers.
|
|
validateScript ( |
public AddFunction ( System.Function func ) : void | ||
func | System.Function | |
return | void |
public AddFunction ( string name, System.Function func ) : void | ||
name | string | |
func | System.Function | |
return | void |
public ChangePersonalityID ( |
||
p | ||
newID | string | |
return | bool |
public CreateController ( string id, Logger log = null ) : |
||
id | string | |
log | Logger | |
return |
public CreatePersonality ( string name ) : |
||
name | string | |
return |
public Get ( |
||
key | ||
log | Logger | |
return |
public GetAllControllers ( ) : TeaseAI_CE.Scripting.Controller[] | ||
return | TeaseAI_CE.Scripting.Controller[] |
public GetGroups ( ) : TeaseAI_CE.Scripting.GroupInfo[] | ||
return | TeaseAI_CE.Scripting.GroupInfo[] |
public GetPersonalities ( ) : TeaseAI_CE.Scripting.Personality[] | ||
return | TeaseAI_CE.Scripting.Personality[] |
public GetScriptResponse ( string keyword ) : |
||
keyword | string | |
return |
public InputToShorthand ( string text ) : string | ||
text | string | |
return | string |
public static KeyClean ( string key, Logger log = null ) : string | ||
key | string | |
log | Logger | |
return | string |
public static KeyClean ( string keys, Logger log = null ) : string[] | ||
keys | string | |
log | Logger | |
return | string[] |
public static KeySplit ( string key ) : string[] | ||
key | string | |
return | string[] |
public LoadFromDirectory ( string path ) : void | ||
path | string | |
return | void |
public QueryScript ( VType query, Logger log ) : Script | ||
query | VType | |
log | Logger | |
return | Script |
public QueryScript ( |
||
query | ||
log | Logger | |
return | Script |
public RemoveController ( |
||
c | ||
return | void |
public static SanitizeInputReplace ( string str ) : string | ||
str | string | |
return | string |
public static SanitizeInputReplace ( string strings ) : string[] | ||
strings | string | |
return | string[] |
public TryGetPersonality ( string name, |
||
name | string | |
p | ||
return | bool |