Class: Snow

Glodon.CIMCube.Animation.WeatherEffect. Snow

雪景特效类,用于实现雪天天气特效

new Snow(map [, opt])

雪景特效
Parameters:
Name Type Argument Description
map Glodon.CIMCube CIMCube实例
opt Object <optional>
雪景特效参数
Properties
Name Type Argument Default Description
darkness Number <optional>
0.5 阴天,天空暗度,0.1~0.9
density String <optional>
1.0 雪的密度;雪停:none;小雪:small;中雪:normal;大雪:great;
thickness Number <optional>
0.5 雪的厚度,0~1;

Methods


dispose()

释放资源

hide()

隐藏

show()

显示

update()

更新雪效果。

updateMyOption(opt)

更新参数。
Parameters:
Name Type Description
opt Object 参数。
Properties
Name Type Argument Description
darkness Number 暗度。
density String 密度。
thickness Number <optional>
厚度。

updateOption(opt)

更新选项
Parameters:
Name Type Description
opt Object 雪景特效参数
Properties
Name Type Argument Default Description
darkness Number <optional>
0.5 阴天,天空暗度,0.1~0.9
density String 雪的密度;雪停:none;小雪:small;中雪:normal;大雪:great;
thickness Number <optional>
雪的厚度,0~1;