add structure picture
This commit is contained in:
parent
813f28f7e1
commit
fe0a289011
|
@ -26,6 +26,10 @@ pod "ResourcePackage"
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
|
|
||||||
|
## Structure
|
||||||
|
![Structure](structure.png)
|
||||||
|
|
||||||
## Author
|
## Author
|
||||||
|
|
||||||
[Alfred Gao](http://alfredg.org), [alfredg@alfredg.cn](mailto:alfredg@alfredg.cn)
|
[Alfred Gao](http://alfredg.org), [alfredg@alfredg.cn](mailto:alfredg@alfredg.cn)
|
||||||
|
|
|
@ -73,7 +73,7 @@ extension ResourcePackageReader {
|
||||||
/// 播放音乐
|
/// 播放音乐
|
||||||
///
|
///
|
||||||
/// play music
|
/// play music
|
||||||
func playMusic(_ key: String, loops: Int = 1, volume: Float = 100) {
|
public func playMusic(_ key: String, loops: Int = 1, volume: Float = 100) {
|
||||||
stopMusic()
|
stopMusic()
|
||||||
|
|
||||||
// load music data
|
// load music data
|
||||||
|
@ -103,7 +103,7 @@ extension ResourcePackageReader {
|
||||||
/// 停止音乐播放
|
/// 停止音乐播放
|
||||||
///
|
///
|
||||||
/// stop music
|
/// stop music
|
||||||
func stopMusic() {
|
public func stopMusic() {
|
||||||
musicPlayer?.stop()
|
musicPlayer?.stop()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Binary file not shown.
Binary file not shown.
After Width: | Height: | Size: 25 KiB |
Loading…
Reference in New Issue