Ejemplo n.º 1
0
        private void OnEnable()
        {
            if (LobbySettings == null)
            {
                Debug.LogWarning("Lobby settings not found ... creating default settings");
                LobbySettings = ScriptableObject.CreateInstance <SteamworksLobbySettings>();
            }
            else if (LobbySettings.Manager != null && (object)LobbySettings.Manager != this)
            {
                Debug.LogWarning("Lobby settings already references a manager, this lobby manager will overwrite it. Please insure there is only 1 " + nameof(SteamworksLobbyManager) + " active at a time.");
            }

            LobbySettings.Manager = this;
            LobbySettings.Initalize();

            LobbySettings.OnGameLobbyJoinRequest.AddListener(OnGameLobbyJoinRequest.Invoke);
            LobbySettings.OnLobbyMatchList.AddListener(OnLobbyMatchList.Invoke);
            LobbySettings.OnLobbyCreated.AddListener(OnLobbyCreated.Invoke);
            LobbySettings.OnLobbyExit.AddListener(OnLobbyExit.Invoke);
            LobbySettings.OnLobbyEnter.AddListener(OnLobbyEnter.Invoke);
            LobbySettings.OnGameServerSet.AddListener(OnGameServerSet.Invoke);
            LobbySettings.OnLobbyChatUpdate.AddListener(OnLobbyChatUpdate.Invoke);
            LobbySettings.QuickMatchFailed.AddListener(QuickMatchFailed.Invoke);
            LobbySettings.SearchStarted.AddListener(SearchStarted.Invoke);
            LobbySettings.OnChatMessageReceived.AddListener(OnChatMessageReceived.Invoke);
            LobbySettings.ChatMemberStateChangeEntered.AddListener(ChatMemberStateChangeEntered.Invoke);
            LobbySettings.ChatMemberStateChangeLeft.AddListener(ChatMemberStateChangeLeft.Invoke);
            LobbySettings.ChatMemberStateChangeDisconnected.AddListener(ChatMemberStateChangeDisconnected.Invoke);
            LobbySettings.ChatMemberStateChangeKicked.AddListener(ChatMemberStateChangeKicked.Invoke);
            LobbySettings.ChatMemberStateChangeBanned.AddListener(ChatMemberStateChangeBanned.Invoke);
        }
Ejemplo n.º 2
0
 public virtual void SetLobby(LobbyHunterLobbyRecord record, SteamworksLobbySettings lobbySettings)
 {
 }