Quantcast

Rudimentary support for Include(name) directives in scripts.

Author Johnny C. Lam <jlam88@gmail.com>
Author date 2013-10-31 19:06:21
Author local date 2013-10-31 19:06:21 +0000
Committer Johnny C. Lam <jlam88@gmail.com>
Committer date 2013-10-31 19:06:21
Committer local date 2013-10-31 19:06:21 +0000
Commit 90e91e6e508e26cedc2c5c801e40d8f8fc299fa6
Tree 4208d4bdb115ed6305824ad8286b55f726da949a
Parent ce9a30eac9cfbe18700b4745879d6574e5b6046a
Rudimentary support for Include(name) directives in scripts.

- Include(name) will cause the the contents of <name> from the script
  library to be inserted at that point prior to compiling the script.

- Include() may be nested, i.e., a script may include a script that
  includes another script, etc.

- A script that is intended to be included in other scripts and not to be
  listed as a selectable script for evaluation at runtime should be
  registered with OvaleScripts using:

    :RegisterScript(class, name, description, code, scriptType)

  where scriptType is anything other than "script", e.g., "include"

git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@1118 d5049fe3-3747-40f7-a4b5-f36d6801af5f