29 lines
739 B
JavaScript
29 lines
739 B
JavaScript
|
/**
|
||
|
* Raw Light API object - should always correspond with the Light Schema
|
||
|
* @constructor
|
||
|
* @param apiLight
|
||
|
*/
|
||
|
GameLib.D3.API.Light.Ambient = function(
|
||
|
apiLight
|
||
|
) {
|
||
|
|
||
|
if (GameLib.Utils.UndefinedOrNull(apiLight)) {
|
||
|
apiLight = {
|
||
|
lightType : GameLib.D3.API.Light.LIGHT_TYPE_AMBIENT
|
||
|
};
|
||
|
}
|
||
|
|
||
|
GameLib.D3.API.Light.call(
|
||
|
this,
|
||
|
apiLight.id,
|
||
|
apiLight.name,
|
||
|
apiLight.lightType,
|
||
|
apiLight.color,
|
||
|
apiLight.intensity,
|
||
|
apiLight.parentScene,
|
||
|
apiLight.parentEntity
|
||
|
);
|
||
|
};
|
||
|
|
||
|
GameLib.D3.API.Light.Ambient.prototype = Object.create(GameLib.D3.API.Light.prototype);
|
||
|
GameLib.D3.API.Light.Ambient.prototype.constructor = GameLib.D3.API.Light.Ambient;
|