一些技术路线测试,增加git,方便代码还原
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/**
 * @Author : Caven Chen
 */
 
import Fog from './type/Fog'
import Rain from './type/Rain'
import Snow from './type/Snow'
import Cloud from './type/Cloud'
 
class Weather {
  constructor(viewer) {
    if (!viewer) {
      throw Error('missing viewer param')
    }
    this._fog = new Fog(viewer)
    this._rain = new Rain(viewer)
    this._snow = new Snow(viewer)
    this._cloud = new Cloud(viewer)
  }
 
  get fog() {
    return this._fog
  }
 
  get rain() {
    return this._rain
  }
 
  get snow() {
    return this._snow
  }
 
  get cloud() {
    return this._cloud
  }
}
 
export default Weather