MOEffect.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. //
  2. // MOEffect.h
  3. //
  4. // Created by SuperCabbage on 2023/11/24
  5. // Copyright (c) 2023 __MyCompanyName__. All rights reserved.
  6. //
  7. #import <Foundation/Foundation.h>
  8. @class MOAttributes;
  9. @interface MOEffect : NSObject <NSCoding, NSCopying>
  10. @property (nonatomic, strong) NSString *path;
  11. @property (nonatomic, assign) double code;
  12. @property (nonatomic, strong) NSString *source;
  13. @property (nonatomic, strong) NSString *name;
  14. @property (nonatomic, assign) double duration;
  15. @property (nonatomic, strong) NSString *id;
  16. /** 特效类型(0=无动效,1=SVGA,2=第三方绑定动效,3=动态WEBP,4=VAP 5=AR) */
  17. @property (nonatomic, assign) double effectType;
  18. //道具商店
  19. @property (nonatomic, assign) BOOL animation;
  20. @property (nonatomic, strong) NSString *image;
  21. @property (nonatomic, strong) NSString *resFile;
  22. @property (nonatomic, strong) NSString *effectFile;
  23. @property (nonatomic, assign) BOOL lock;//礼物皮肤 - 是否锁定
  24. @property (nonatomic, assign) BOOL isSelect;//是否选中
  25. @property (nonatomic, strong) MOAttributes *attributes;//尺寸
  26. + (instancetype)modelObjectWithDictionary:(NSDictionary *)dict;
  27. - (instancetype)initWithDictionary:(NSDictionary *)dict;
  28. - (NSDictionary *)dictionaryRepresentation;
  29. @end