forked from svga/SVGAPlayer-iOS
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSVGAAudioEntity.m
More file actions
34 lines (27 loc) · 810 Bytes
/
SVGAAudioEntity.m
File metadata and controls
34 lines (27 loc) · 810 Bytes
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
//
// SVGAAudioEntity.m
// SVGAPlayer
//
// Created by PonyCui on 2018/10/18.
// Copyright © 2018年 UED Center. All rights reserved.
//
#import "SVGAAudioEntity.h"
#import "Svga.pbobjc.h"
@interface SVGAAudioEntity ()
@property (nonatomic, readwrite) NSString *audioKey;
@property (nonatomic, readwrite) NSInteger startFrame;
@property (nonatomic, readwrite) NSInteger endFrame;
@property (nonatomic, readwrite) NSInteger startTime;
@end
@implementation SVGAAudioEntity
- (instancetype)initWithProtoObject:(SVGAProtoAudioEntity *)protoObject {
self = [super init];
if (self) {
_audioKey = protoObject.audioKey;
_startFrame = protoObject.startFrame;
_endFrame = protoObject.endFrame;
_startTime = protoObject.startTime;
}
return self;
}
@end