Plugins
hi.how can i get room properties in Plugins?????
in your documentation it's says that use GameProperties methods.
i dont know.can u help me plz??? tnx
in your documentation it's says that use GameProperties methods.
PluginHost.GameProperties.ContainsKey("map");]i log the GameProperties like this.
PluginHost.LogDebug(PluginHost.GameProperties);and in client i use pun for setting room option for example MaxPlayer.
RoomOptions _roomOption = new RoomOptions(); _roomOption.MaxPlayers = (byte)10; _roomOption.PlayerTtl = 20000; PhotonNetwork.CreateRoom("RoomNum1", _roomOption, TypedLobby.Default);but i cant get those values from my plugin log file:
2018-04-04 12:35:45,472 [22] DEBUG Photon.Hive.HiveGame.HiveHostGame.Plugin - {String[] {}, True, 10, True, True} 2018-04-04 12:40:30,820 [17] DEBUG Photon.Hive.HiveGame.HiveHostGame.Plugin - {255=0, 254=True, 253=True} 2018-04-04 12:43:27,791 [11] DEBUG Photon.Hive.HiveGame.HiveHostGame.Plugin - {0, True, True}and to your plugin API documentation:
Hashtable Photon.Hive.Plugin.IPluginHost.GameProperties get Game properties as set through the client per RoomOptions.CustomRoomProperties.the gameProperties is for customRoomProperties.not somthing like MaxPlayer or PlayerTTL.
i dont know.can u help me plz??? tnx
0
Comments
-
pfffffffffffffffffffffff.
it's the ICallInfo property that contains roomoptions.0