Skip to content

Commit

Permalink
Add controller support for join server input and refactor whole process
Browse files Browse the repository at this point in the history
  • Loading branch information
Jannify committed Mar 14, 2024
1 parent b43dfe2 commit 9038864
Show file tree
Hide file tree
Showing 16 changed files with 893 additions and 860 deletions.
2 changes: 1 addition & 1 deletion NitroxClient/GameLogic/Settings/NitroxSettingsManager.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System;
using System.Collections.Generic;
using NitroxClient.GameLogic.Bases;
using NitroxClient.MonoBehaviours.Gui.MainMenu;
using NitroxClient.MonoBehaviours.Gui.MainMenu.ServersList;
using UnityEngine.Events;

namespace NitroxClient.GameLogic.Settings;
Expand Down
4 changes: 2 additions & 2 deletions NitroxClient/MonoBehaviours/Discord/DiscordClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using System.Linq;
using DiscordGameSDKWrapper;
using NitroxClient.Communication.Abstract;
using NitroxClient.MonoBehaviours.Gui.MainMenu;
using NitroxClient.MonoBehaviours.Gui.MainMenu.ServersList;
using NitroxModel;
using NitroxModel.Core;
using NitroxModel.Packets;
Expand Down Expand Up @@ -43,7 +43,7 @@ private void StartDiscordHook()
discord = new DiscordGameSDKWrapper.Discord(CLIENT_ID, (ulong)CreateFlags.NoRequireDiscord);
discord.SetLogHook(DiscordGameSDKWrapper.LogLevel.Debug, (level, message) => Log.Write((NitroxModel.Logger.LogLevel)level, $"[Discord] {message}"));
activityManager = discord.GetActivityManager();

activityManager.RegisterSteam((uint)GameInfo.Subnautica.SteamAppId);
activityManager.OnActivityJoinRequest += ActivityJoinRequest;
activityManager.OnActivityJoin += ActivityJoin;
Expand Down
Loading

0 comments on commit 9038864

Please sign in to comment.