mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-02 14:29:25 +00:00
Move many mods to Deprecated folder, fix spelling
This commit is contained in:
parent
5e822cec8d
commit
0042590aa6
539 changed files with 7475 additions and 3120 deletions
38
.Deprecated/FuckVivox/VivoxHelpers.cs
Normal file
38
.Deprecated/FuckVivox/VivoxHelpers.cs
Normal file
|
@ -0,0 +1,38 @@
|
|||
using ABI_RC.Core.IO;
|
||||
using ABI_RC.Core.Networking;
|
||||
using ABI_RC.Core.Savior;
|
||||
using ABI_RC.Systems.Communications;
|
||||
using NAK.FuckVivox;
|
||||
|
||||
namespace FuckMLA;
|
||||
|
||||
public static class VivoxHelpers
|
||||
{
|
||||
public static void AttemptLogin()
|
||||
{
|
||||
if (!AuthManager.IsAuthenticated)
|
||||
{
|
||||
FuckVivox.Logger.Msg("Attempted to log in without being authenticated!");
|
||||
return;
|
||||
}
|
||||
VivoxServiceManager.Instance.Login(MetaPort.Instance.ownerId, MetaPort.Instance.blockedUserIds);
|
||||
}
|
||||
|
||||
public static void AttemptLogout()
|
||||
{
|
||||
if (!VivoxServiceManager.Instance.IsLoggedIn())
|
||||
{
|
||||
FuckVivox.Logger.Msg("Attempted to log out when not logged in.");
|
||||
return;
|
||||
}
|
||||
VivoxServiceManager.Instance.Logout();
|
||||
}
|
||||
|
||||
public static void PleaseReLoginThankYou()
|
||||
{
|
||||
FuckVivox.Logger.Msg("PleaseReLoginThankYou!!!");
|
||||
|
||||
AttemptLogout();
|
||||
SchedulerSystem.AddJob(AttemptLogin, 3f, 1, 1);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue