THIS IS A STATIC MIRROR OF USERSCRIPTS.ORG - LOGINS DO NOT WORK

C&C Tiberium Alliances API Wrapper

By mmaelstrom Last update Jul 19, 2012 — Installed 74,475 times.

Script Summary: Supplies some wrapper functions for public use



Version: 0.9b11

Discontinued! Feel free to copy the script and update it on your own :)

Important

THIS IS A TOOL COLLECTION ONLY FOR DEVELOPERS, IT DOESN'T ADD ANYTHING TO THE GAME

Usage

Simply install this userscript and you can use it like this:
(function (){
  var MyTools_main = function() {
    try {
      function CCTAWrapperIsInstalled() {
        return (typeof(CCTAWrapper_IsInstalled) != 'undefined' && CCTAWrapper_IsInstalled);
      }
      
      function createMyTools() {
        if(!CCTAWrapperIsInstalled()) { console.log("meeeep prerequisites not installed!"); }
      }
    } catch (e) {
      console.log("createMyTools: ", e);
    }
    [...]
  }
}); 
[...]

Notice that people have to install both scripts to use the wrapper functions and your script.