Closed antont closed 9 years ago
doesn't output complete EC js now but just the attrdefs to copy-paste.
works enough to create this from the EC_Sound.h & .cpp now:
/** @property soundRef (attribute) @type Attribute */ this.declareAttribute(0, "soundRef", "", Attribute.AssetReference, "Sound ref"); /** @property soundInnerRadius (attribute) @type Attribute */ this.declareAttribute(1, "soundInnerRadius", 0.0, Attribute.Real, "Sound radius inner"); /** @property soundOuterRadius (attribute) @type Attribute */ this.declareAttribute(2, "soundOuterRadius", 20.0, Attribute.Real, "Sound radius outer"); /** @property soundGain (attribute) @type Attribute */ this.declareAttribute(3, "soundGain", 1.0, Attribute.Real, "Sound gain"); /** @property playOnLoad (attribute) @type Attribute */ this.declareAttribute(4, "playOnLoad", false, Attribute.Bool, "Play on load"); /** @property loopSound (attribute) @type Attribute */ this.declareAttribute(5, "loopSound", false, Attribute.Bool, "Loop sound"); /** @property spatial (attribute) @type Attribute */ this.declareAttribute(6, "spatial", true, Attribute.Bool, "Spatial");
Cool :) :+1: for merge
doesn't output complete EC js now but just the attrdefs to copy-paste.
works enough to create this from the EC_Sound.h & .cpp now: