Lua function to set the lobby name.
◆ Implementation()
| void RoomService.SetLobbyName.Implementation |
( |
string | name | ) |
|
|
inlineprivate |
Usage:
Lua function to set the lobby name.
Definition RoomServiceLuaFunctions.cs:537
Definition MyPluginInfo.cs:2
- Parameters
-
| name | The new name for the lobby. |
Source Code
552 {
553 if (!RoomServiceUtils.IsOnlineHost())
554 {
555 return;
556 }
557
558 if (string.IsNullOrEmpty(name.Trim()))
559 {
560 return;
561 }
562
563 ZeepkistLobby currentLobby = ZeepkistNetwork.CurrentLobby;
564 if (currentLobby != null)
565 {
566 currentLobby.UpdateName(name);
567 }
568 }