Skip to content

Property Namespace

webpigeon edited this page May 20, 2011 · 2 revisions

To make things more fluid, AdAstra uses a properties namespace for each asset.

Changing Properties

asset.getProperty(String property); //returns 0 if property doesn't exist
asset.setProperty(String property, int value); //creates property if doesn't exist
asset.addProperty(String property, int value); //pass negative value to remove

Cargo

adastra.cargo.*

Asset status

adstra.status.* infomation about the current status of the asset.

Clone this wiki locally