LavishScript:Object Queries

From Lavish Software Wiki
Revision as of 02:09, 6 May 2009 by CyberTech (talk | contribs)
(diff) ←Older revision | view current revision (diff) | Newer revision→ (diff)
Jump to navigation Jump to search

- LavishScript

* Object query support has been added. Extensions can use ISXDK 30a (or later) for direct
  access to this functionality. An object query is a math formula where all variables
  are relative to a specific object, and results in a boolean value -- the query is either
  true, or it is false. Query math can compare and manipulate text, decimals, or integers 
  (note that bool counts as an integer for this purpose) with standard math operators. Text
  comparisons are not case sensitive. One intended use for object queries is a uniform search 
  mechanism, to find an object or set of objects from a larger set of objects (compare to a 
  SQL SELECT statement, where a LavishScript object query is the WHERE clause).


 - Implemented 'lavishscript' type members:
   * uint CreateQuery[expression] - Creates a query with the given expression -- e.g. ${LavishScript.CreateQuery[Name=="Bonkers"]}
   * string RetrieveQueryExpression[ID] - Retrieves the query expression for a previously created query
   * bool QueryEvaluate[ID,object] - Determines if the given object matches the given query
 - Implemented 'lavishscript' type methods:
   * FreeQuery[ID] - Frees a previously created query