mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-02-28 22:13:23 +00:00
cleanup
This commit is contained in:
parent
52f6d497af
commit
2024e5fcd9
@ -42,7 +42,7 @@ namespace QSB.ClientServerStateSync
|
||||
|
||||
if (QSBCore.IsHost)
|
||||
{
|
||||
|
||||
|
||||
switch (newScene)
|
||||
{
|
||||
case OWScene.TitleScreen:
|
||||
|
@ -4,9 +4,7 @@ using QSB.Patches;
|
||||
using QSB.Player;
|
||||
using QSB.ShipSync;
|
||||
using QSB.Utility;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Reflection.Emit;
|
||||
using UnityEngine;
|
||||
|
||||
namespace QSB.DeathSync.Patches
|
||||
|
@ -69,7 +69,7 @@ namespace QSB.ItemSync.Patches
|
||||
{
|
||||
sector = sectorGroup.GetSector();
|
||||
if (sector == null && sectorGroup is SectorCullGroup)
|
||||
{
|
||||
{
|
||||
SectorProxy controllingProxy = (sectorGroup as SectorCullGroup).GetControllingProxy();
|
||||
if (controllingProxy != null)
|
||||
{
|
||||
|
@ -1,5 +1,4 @@
|
||||
using QSB.Player;
|
||||
using QSB.Utility;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Networking;
|
||||
using UnityEngine.UI;
|
||||
@ -91,7 +90,7 @@ namespace QSB.Menus
|
||||
|
||||
DisconnectButton = MenuApi.PauseMenu_MakeSimpleButton("DISCONNECT");
|
||||
DisconnectButton.onClick.AddListener(Disconnect);
|
||||
|
||||
|
||||
|
||||
if (QSBCore.IsInMultiplayer)
|
||||
{
|
||||
@ -167,8 +166,8 @@ namespace QSB.Menus
|
||||
|
||||
private void OnConnected()
|
||||
{
|
||||
var text = QSBCore.IsHost
|
||||
? "STOP HOSTING"
|
||||
var text = QSBCore.IsHost
|
||||
? "STOP HOSTING"
|
||||
: "DISCONNECT";
|
||||
DisconnectButton.transform.GetChild(0).GetChild(1).GetComponent<Text>().text = text;
|
||||
}
|
||||
|
@ -1,7 +1,6 @@
|
||||
using OWML.Common;
|
||||
using OWML.ModHelper;
|
||||
using OWML.ModHelper.Input;
|
||||
using OWML.Utils;
|
||||
using QSB.Animation.NPC;
|
||||
using QSB.CampfireSync;
|
||||
using QSB.ConversationSync;
|
||||
|
@ -4,8 +4,6 @@ using QSB.Events;
|
||||
using QSB.Patches;
|
||||
using QSB.Utility;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Reflection.Emit;
|
||||
using UnityEngine;
|
||||
|
||||
namespace QSB.ShipSync.Patches
|
||||
|
@ -1,8 +1,6 @@
|
||||
using QSB.SectorSync;
|
||||
using QSB.Syncs.Sectored.Rigidbodies;
|
||||
using QSB.Utility;
|
||||
using QSB.WorldSync;
|
||||
using UnityEngine;
|
||||
|
||||
namespace QSB.ShipSync.TransformSync
|
||||
{
|
||||
|
@ -1,7 +1,6 @@
|
||||
using OWML.Common;
|
||||
using QSB.Utility;
|
||||
using System;
|
||||
using System.Reflection;
|
||||
using UnityEngine;
|
||||
|
||||
namespace QSB.Syncs
|
||||
|
@ -79,7 +79,7 @@ namespace QSB.Syncs.Sectored.Transforms
|
||||
_intermediaryTransform.SetPosition(Vector3.zero);
|
||||
_intermediaryTransform.SetRotation(Quaternion.identity);
|
||||
}
|
||||
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -41,7 +41,7 @@ namespace QSB.Utility
|
||||
var reason = WakeUpSync.LocalInstance.CurrentReason;
|
||||
if (currentState == WakeUpSync.State.FastForwarding && reason != null)
|
||||
{
|
||||
|
||||
|
||||
GUI.Label(new Rect(220, offset, 200f, 20f), $"Reason : {(FastForwardReason)reason}", guiStyle);
|
||||
offset += _debugLineSpacing;
|
||||
}
|
||||
|
@ -1,5 +1,4 @@
|
||||
using OWML.Common;
|
||||
using OWML.Utils;
|
||||
using QSB.Player;
|
||||
using QSB.Player.TransformSync;
|
||||
using QuantumUNET;
|
||||
|
@ -1,9 +1,4 @@
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
using QSB.Patches;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
|
||||
namespace QSBTests
|
||||
{
|
||||
|
@ -1,8 +1,5 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Networking.Match;
|
||||
|
||||
namespace QuantumUNET.Components
|
||||
{
|
||||
|
@ -1,5 +1,4 @@
|
||||
using UnityEngine;
|
||||
using UnityEngine.Networking;
|
||||
|
||||
namespace QuantumUNET
|
||||
{
|
||||
|
@ -8,7 +8,6 @@ using System.Collections.ObjectModel;
|
||||
using System.Linq;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Networking;
|
||||
using UnityEngine.Networking.Types;
|
||||
|
||||
namespace QuantumUNET
|
||||
{
|
||||
|
@ -6,7 +6,6 @@ using System.Collections.ObjectModel;
|
||||
using System.Linq;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Networking;
|
||||
using UnityEngine.Networking.Types;
|
||||
|
||||
namespace QuantumUNET
|
||||
{
|
||||
@ -22,8 +21,8 @@ namespace QuantumUNET
|
||||
public NetworkReader messageReader { get; private set; }
|
||||
public Type networkConnectionClass { get; private set; } = typeof(QNetworkConnection);
|
||||
|
||||
public void SetNetworkConnectionClass<T>()
|
||||
where T : QNetworkConnection
|
||||
public void SetNetworkConnectionClass<T>()
|
||||
where T : QNetworkConnection
|
||||
=> networkConnectionClass = typeof(T);
|
||||
|
||||
public virtual void Initialize()
|
||||
@ -77,7 +76,7 @@ namespace QuantumUNET
|
||||
return result;
|
||||
}
|
||||
|
||||
public bool Listen(int serverListenPort)
|
||||
public bool Listen(int serverListenPort)
|
||||
=> Listen(serverListenPort, hostTopology);
|
||||
|
||||
public bool Listen(int serverListenPort, HostTopology topology)
|
||||
|
Loading…
x
Reference in New Issue
Block a user