(info) This AI is still in early stages of development.

Check.basePath

The base path to the folder that contains the APIs folder...

 

Syntax

var root = Check.basePath;

Property Value

The value of the property depends on where Util.js is loaded from. For example:

Location of Util.jsCheck.basePath value
multiplay/skirmish/APIs/Util.js"multiplay/skirmish/"
 multiplay/skirmish/myAI/APIs/Util.js"multiplay/skirmish/myAI"
multiplay/skirmish/foo/Util.js"multiplay/skirmish/foo/"

You'll notice that if using standard EggPlant folder structures, Util.js should be in an "APIs" folder and that Check.basePath is set to the parent folder of the APIs folder. If Util.js is located somewhere else, then Check.basePath is set to the folder containing Util.js.

Note: Check.basePath is a read-only property.

 

Availability BETA

Requires:

Contents

Jump to:

Dependency Checking

Topics: