realXtend / WebTundra

Scene model, rendering and networking functionality for a JavaScript WebTundra client
Apache License 2.0
20 stars 13 forks source link

port util to create webtundra js attrdefs from tundra c++ sources to v2. #83

Closed antont closed 9 years ago

antont commented 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");
jonnenauha commented 9 years ago

Cool :) :+1: for merge