mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2024-12-29 03:28:26 +00:00
removed logs
This commit is contained in:
parent
7c1f9ac3a6
commit
72938b4c7c
@ -58,7 +58,6 @@ namespace QSB.Inputs
|
||||
|
||||
public void SetInputsEnabled(bool enabled)
|
||||
{
|
||||
DebugLog.DebugWrite($"INPUTS ENABLED? : {enabled}");
|
||||
InputsEnabled = enabled;
|
||||
}
|
||||
}
|
||||
|
@ -80,7 +80,6 @@ namespace QSB.Player.Events
|
||||
|
||||
if (QSBSceneManager.IsInUniverse)
|
||||
{
|
||||
DebugLog.DebugWrite($"Joined! SENDING READY = TRUE");
|
||||
QSBPlayerManager.LocalPlayer.IsReady = true;
|
||||
QSBEventManager.FireEvent(EventNames.QSBPlayerReady, true);
|
||||
}
|
||||
|
@ -21,7 +21,6 @@ namespace QSB.Player
|
||||
|
||||
public void Init(PlayerInfo player)
|
||||
{
|
||||
DebugLog.DebugWrite($"Init {player.PlayerId} name:{player.Name}");
|
||||
_player = player;
|
||||
_player.HudMarker = this;
|
||||
_needsInitializing = true;
|
||||
|
@ -91,7 +91,6 @@ namespace QSB.Player
|
||||
player.ProbeActive = message.ProbeActive;
|
||||
if (LocalPlayer.IsReady && player.IsReady)
|
||||
{
|
||||
DebugLog.DebugWrite($"{player.PlayerId} UpdateObjectsFromStates player.IsReady:{player.IsReady}, camerabody null :{player.CameraBody == null}");
|
||||
player.UpdateObjectsFromStates();
|
||||
}
|
||||
|
||||
|
@ -62,14 +62,12 @@ namespace QSB.Player.TransformSync
|
||||
|
||||
if (isInUniverse && !_isInitialized)
|
||||
{
|
||||
DebugLog.DebugWrite($"Is in universe, but is not initialized! SENDING READY = FALSE");
|
||||
Player.IsReady = false;
|
||||
QSBEventManager.FireEvent(EventNames.QSBPlayerReady, false);
|
||||
}
|
||||
|
||||
if (!isInUniverse)
|
||||
{
|
||||
DebugLog.DebugWrite($"Is not in universe! SENDING READY = FALSE");
|
||||
Player.IsReady = false;
|
||||
QSBEventManager.FireEvent(EventNames.QSBPlayerReady, false);
|
||||
}
|
||||
@ -81,8 +79,6 @@ namespace QSB.Player.TransformSync
|
||||
{
|
||||
base.Init();
|
||||
|
||||
DebugLog.DebugWrite($"Init! SENDING READY = TRUE");
|
||||
|
||||
Player.IsReady = true;
|
||||
QSBEventManager.FireEvent(EventNames.QSBPlayerReady, true);
|
||||
}
|
||||
|
@ -28,8 +28,6 @@ namespace QSB.StatueSync.Events
|
||||
|
||||
public override void OnReceiveLocal(bool server, StartStatueMessage message)
|
||||
{
|
||||
DebugLog.DebugWrite($"OnReceiveLocal StartStatueEvent");
|
||||
|
||||
if (!QSBCore.IsHost)
|
||||
{
|
||||
return;
|
||||
@ -40,8 +38,14 @@ namespace QSB.StatueSync.Events
|
||||
|
||||
public override void OnReceiveRemote(bool server, StartStatueMessage message)
|
||||
{
|
||||
DebugLog.DebugWrite($"OnReceiveRemote StartStatueEvent");
|
||||
StatueManager.Instance.BeginSequence(message.PlayerPosition, message.PlayerRotation, message.CameraDegrees);
|
||||
|
||||
if (!QSBCore.IsHost)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
QSBEventManager.FireEvent(EventNames.QSBServerState, ServerState.InStatueCutscene);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -278,7 +278,6 @@ namespace QSB.TimeSync
|
||||
{
|
||||
if (CurrentState != State.Pausing)
|
||||
{
|
||||
DebugLog.DebugWrite($"Wait for other clients to be ready");
|
||||
StartPausing(PauseReason.WaitingForAllPlayersToBeReady);
|
||||
}
|
||||
}
|
||||
@ -287,7 +286,6 @@ namespace QSB.TimeSync
|
||||
{
|
||||
if (clientState == ClientState.AliveInSolarSystem && serverState == ServerState.InSolarSystem)
|
||||
{
|
||||
DebugLog.DebugWrite($"start of new loop!");
|
||||
ResetTimeScale();
|
||||
}
|
||||
}
|
||||
@ -352,13 +350,11 @@ namespace QSB.TimeSync
|
||||
|
||||
if (serverState == ServerState.NotLoaded && CurrentState != State.Pausing && QSBSceneManager.IsInUniverse)
|
||||
{
|
||||
DebugLog.DebugWrite($"Server Not Loaded");
|
||||
StartPausing(PauseReason.ServerNotStarted);
|
||||
}
|
||||
|
||||
if (serverState == ServerState.WaitingForAllPlayersToReady && CurrentState != State.Pausing && clientState == ClientState.WaitingForOthersToReadyInSolarSystem)
|
||||
{
|
||||
DebugLog.DebugWrite($"Awaiting Play Confirmation");
|
||||
StartPausing(PauseReason.WaitingForAllPlayersToBeReady);
|
||||
}
|
||||
|
||||
@ -369,7 +365,6 @@ namespace QSB.TimeSync
|
||||
|
||||
if (serverState == ServerState.WaitingForAllPlayersToDie && clientState == ClientState.WaitingForOthersToReadyInSolarSystem)
|
||||
{
|
||||
DebugLog.DebugWrite($"Wait for others to load new scene");
|
||||
StartPausing(PauseReason.WaitingForAllPlayersToBeReady);
|
||||
}
|
||||
|
||||
@ -379,7 +374,6 @@ namespace QSB.TimeSync
|
||||
{
|
||||
if (serverState != ServerState.NotLoaded)
|
||||
{
|
||||
DebugLog.DebugWrite($"Server started!");
|
||||
ResetTimeScale();
|
||||
}
|
||||
}
|
||||
@ -388,7 +382,6 @@ namespace QSB.TimeSync
|
||||
{
|
||||
if (clientState == ClientState.AliveInSolarSystem && serverState == ServerState.InSolarSystem)
|
||||
{
|
||||
DebugLog.DebugWrite($"start of new loop!");
|
||||
ResetTimeScale();
|
||||
}
|
||||
}
|
||||
@ -397,7 +390,6 @@ namespace QSB.TimeSync
|
||||
{
|
||||
if (Time.timeSinceLevelLoad <= _serverTime)
|
||||
{
|
||||
DebugLog.DebugWrite($"Done pausing to match time!");
|
||||
ResetTimeScale();
|
||||
}
|
||||
}
|
||||
@ -406,7 +398,6 @@ namespace QSB.TimeSync
|
||||
{
|
||||
if (Time.timeSinceLevelLoad >= _serverTime)
|
||||
{
|
||||
DebugLog.DebugWrite($"Done fast-forwarding to match time!");
|
||||
ResetTimeScale();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user