feat: 完成礼物连击功能

This commit is contained in:
eggmanQQQ
2024-09-12 14:01:12 +08:00
parent f668f43a42
commit 3c024b808f
52 changed files with 836 additions and 98 deletions

View File

@@ -10,7 +10,7 @@
#import "GiftInfoModel.h"
#import "GiftComboView.h"
@class GiftReceiveInfoModel, UserInfoModel, GiftReceiveInfoModel;
@class GiftReceiveInfoModel, UserInfoModel, GiftReceiveInfoModel, XPGiftCountModel;
typedef enum : NSUInteger {
ComboAction_ShowPanel,
@@ -42,12 +42,16 @@ NS_ASSUME_NONNULL_BEGIN
- (void)saveSendGiftNum:(NSString *)numString;
- (void)saveUserInfo:(UserInfoModel *)userInfo;
- (void)saveSessionID:(NSString *)sessionID;
- (void)saveGiftCountModel:(XPGiftCountModel *)model;
- (void)resetCombo;
- (void)sendGift;
- (void)forceRemove;
// 第一个 combo 由 send gift view 发起,需要手动 combo + 1
- (NSInteger)loadComboCountFromSendGiftView;
- (NSInteger)loadComboCount;
- (NSInteger)loadTotalGiftNum;
- (BOOL)isGiftCombing;
- (void)receiveGiftInfoForDisplayComboFlags:(GiftReceiveInfoModel *)receiveInfo