コード例 #1
0
        public ILobby CreateLobby(Dictionary <string, string> properties, IPeer creator)
        {
            var lobby = _factory.Invoke(_plugin, properties, creator);

            // Add the lobby type if it's not set by the factory method
            if (lobby != null && lobby.Type == null)
            {
                lobby.Type = Id;
            }

            return(lobby);
        }
コード例 #2
0
        public ILobby CreateLobby(MstProperties options, IPeer creator)
        {
            var lobby = _factory.Invoke(_module, options, creator);

            // Add the lobby type if it's not set by the factory method
            if (lobby != null && lobby.Type == null)
            {
                lobby.Type = Id;
            }

            return(lobby);
        }