//--------------------------------------------------------------------- // 玩家进入桌子 Task <DesktopData> ICellDesktop.s2sPlayerEnter(DesktopRequestPlayerEnter request_enter, EntityData etdata_playermirror) { var co_desktop = EtDesktop.getComponent <CellDesktop <DefDesktop> >(); return(co_desktop.s2sPlayerEnter(request_enter, etdata_playermirror)); }
//--------------------------------------------------------------------- public override Task OnDeactivateAsync() { TimerHandleUpdate.Dispose(); EtDesktop.close(); Logger.Info("OnDeactivateAsync()"); return(base.OnDeactivateAsync()); }
//--------------------------------------------------------------------- Task _save() { if (EtDesktop != null) { var co_desktop = EtDesktop.getComponent <CellDesktop <DefDesktop> >(); return(co_desktop.save()); } return(TaskDone.Done); }
//--------------------------------------------------------------------- Task _update() { if (EtDesktop != null) { EtDesktop.update((float)StopwatchUpdate.Elapsed.TotalSeconds); StopwatchUpdate.Restart(); } return(TaskDone.Done); }
//--------------------------------------------------------------------- // 获取桌子信息 Task <DesktopInfo> ICellDesktop.s2sGetDesktopInfo() { var co_desktop = EtDesktop.getComponent <CellDesktop <DefDesktop> >(); return(co_desktop.s2sGetDesktopInfo()); }
//--------------------------------------------------------------------- // 初始化桌子信息 Task ICellDesktop.s2sSetupDesktop(DesktopInfo desktop_info) { var co_desktop = EtDesktop.getComponent <CellDesktop <DefDesktop> >(); return(co_desktop.s2sSetupDesktop(desktop_info)); }
//--------------------------------------------------------------------- // 玩家操作请求 Task ICellDesktop.s2sPlayerActionRequest(string player_etguid, List <string> vec_param) { var co_desktop = EtDesktop.getComponent <CellDesktop <DefDesktop> >(); return(co_desktop.s2sPlayerActionRequest(player_etguid, vec_param)); }
//--------------------------------------------------------------------- // 玩家本轮操作取消托管 Task ICellDesktop.s2sPlayerCancelAutoAction(string player_etguid) { var co_desktop = EtDesktop.getComponent <CellDesktop <DefDesktop> >(); return(co_desktop.s2sPlayerCancelAutoAction(player_etguid)); }
//--------------------------------------------------------------------- // 桌子内聊天广播 Task ICellDesktop.s2sDesktopChat(ChatMsgRecv msg) { var co_desktop = EtDesktop.getComponent <CellDesktop <DefDesktop> >(); return(co_desktop.s2sDesktopChat(msg)); }
//--------------------------------------------------------------------- // 玩家离开桌子 Task <DesktopPlayerLeaveInfo> ICellDesktop.s2sPlayerLeave(string player_etguid) { var co_desktop = EtDesktop.getComponent <CellDesktop <DefDesktop> >(); return(co_desktop.s2sPlayerLeave(player_etguid)); }