63 lines
1.4 KiB
Objective-C
63 lines
1.4 KiB
Objective-C
//
|
||
// RoomDelegate.h
|
||
// YUMI
|
||
//
|
||
// Created by zu on 2021/10/26.
|
||
//
|
||
|
||
#import <Foundation/Foundation.h>
|
||
#import "MicroQueueProtocol.h"
|
||
#import "RoomAnimationProtocol.h"
|
||
|
||
NS_ASSUME_NONNULL_BEGIN
|
||
|
||
@class RoomInfoModel;
|
||
@class UserInfoModel;
|
||
|
||
/** RoomVC 与子 View 之间的通信协议。
|
||
|
||
调用方向:子 View —> RoomHostDelegate。
|
||
|
||
**Note:**
|
||
|
||
继承 MicroQueueProtocol、RoomAnimationProtocol 等协议是为了做桥接。
|
||
实现后的调用方向:子 View —> RoomHostDelegate —> XXXProtocol(RoomGuestDelegate)。
|
||
|
||
*/
|
||
@protocol RoomHostDelegate <NSObject, MicroQueueProtocol, RoomAnimationProtocol>
|
||
|
||
@optional //MARK: 不清楚哪些是必要的,添加 @optional 只是为了重构时忽略 warning
|
||
|
||
- (RoomInfoModel*)getRoomInfo;
|
||
- (UserInfoModel*)getUserInfo;
|
||
- (BOOL)isManagerOrOwner;
|
||
- (void)exitRoom;
|
||
- (void)miniRoom;
|
||
- (void)showPKPanel;
|
||
- (UINavigationController *)getCurrentNav;
|
||
-(UIView *)getSuperView;
|
||
- (NSArray *)getRoomSuperAdminList;
|
||
///获取房间PK队伍的
|
||
- (NSArray *)getRoomPKGroupTeamList;
|
||
///房间内PK是否正在进行
|
||
- (BOOL)isRoomPKPlaying;
|
||
- (BOOL)getIsMiniEnter;
|
||
///屏蔽
|
||
-(void)requesstShieldingAction;
|
||
|
||
///获取活动列表
|
||
-(NSMutableArray *)getPlayList;
|
||
|
||
///获取小游戏列表
|
||
-(NSMutableArray *)getLittleGameList;
|
||
|
||
-(NSInteger)getPublicScreenType;
|
||
|
||
- (void)displayMusicPanel;
|
||
|
||
- (void)updateScreenMessageState:(BOOL)isClose;
|
||
|
||
@end
|
||
|
||
NS_ASSUME_NONNULL_END
|