This commit is contained in:
ALIENJACK\alien 2024-11-07 20:33:44 +08:00
parent 7b85fd8ce8
commit 323f7a44df

View File

@ -32,6 +32,20 @@ namespace AxibugEmuOnline.Client
UpdateUI(roomInfo); UpdateUI(roomInfo);
} }
public override bool OnEnterItem()
{
if (!m_romFile.RomReady)
{
m_romFile.BeginDownload();
return false;
}
else
{
App.roomMgr.SendJoinRoom(roomID, 1);
return true;
}
}
private void UpdateUI(Protobuf_Room_MiniInfo roomInfo) private void UpdateUI(Protobuf_Room_MiniInfo roomInfo)
{ {
var hostNick = roomInfo.GetHostNickName(); var hostNick = roomInfo.GetHostNickName();