public void OnRecvChatMessage(int userId) { if (!(HomePeople == null)) { LoungePlayer loungePlayer = HomePeople.GetLoungePlayer(userId); if (!(loungePlayer == null)) { loungePlayer.ResetAFKTimer(); } } }
public void OnRecvRoomAction(int cid, int aid) { if (!(HomePeople == null)) { LoungePlayer loungePlayer = HomePeople.GetLoungePlayer(cid); if (!(loungePlayer == null)) { loungePlayer.ResetAFKTimer(); switch (aid) { case 1: loungePlayer.OnRecvSit(); break; case 2: loungePlayer.OnRecvStandUp(); break; case 5: loungePlayer.OnRecvToEquip(); break; case 4: loungePlayer.OnRecvToGacha(); break; case 6: loungePlayer.OnRecvAFK(); break; default: loungePlayer.OnRecvNone(); break; } } } }