SVGAAudioEntity.m 810 B

12345678910111213141516171819202122232425262728293031323334
  1. //
  2. // SVGAAudioEntity.m
  3. // SVGAPlayer
  4. //
  5. // Created by PonyCui on 2018/10/18.
  6. // Copyright © 2018年 UED Center. All rights reserved.
  7. //
  8. #import "SVGAAudioEntity.h"
  9. #import "Svga.pbobjc.h"
  10. @interface SVGAAudioEntity ()
  11. @property (nonatomic, readwrite) NSString *audioKey;
  12. @property (nonatomic, readwrite) NSInteger startFrame;
  13. @property (nonatomic, readwrite) NSInteger endFrame;
  14. @property (nonatomic, readwrite) NSInteger startTime;
  15. @end
  16. @implementation SVGAAudioEntity
  17. - (instancetype)initWithProtoObject:(SVGAProtoAudioEntity *)protoObject {
  18. self = [super init];
  19. if (self) {
  20. _audioKey = protoObject.audioKey;
  21. _startFrame = protoObject.startFrame;
  22. _endFrame = protoObject.endFrame;
  23. _startTime = protoObject.startTime;
  24. }
  25. return self;
  26. }
  27. @end