mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-08 09:41:07 +00:00
remove some debug logs
This commit is contained in:
parent
56aca4179f
commit
178dea0722
@ -20,11 +20,7 @@ namespace QSB.Player.Events
|
|||||||
public override void SetupListener() => GlobalMessenger.AddListener(EventNames.QSBRequestStateResync, Handler);
|
public override void SetupListener() => GlobalMessenger.AddListener(EventNames.QSBRequestStateResync, Handler);
|
||||||
public override void CloseListener() => GlobalMessenger.RemoveListener(EventNames.QSBRequestStateResync, Handler);
|
public override void CloseListener() => GlobalMessenger.RemoveListener(EventNames.QSBRequestStateResync, Handler);
|
||||||
|
|
||||||
private void Handler()
|
private void Handler() => SendEvent(CreateMessage());
|
||||||
{
|
|
||||||
DebugLog.DebugWrite($"Sending QSBRequestStateResync");
|
|
||||||
SendEvent(CreateMessage());
|
|
||||||
}
|
|
||||||
|
|
||||||
private PlayerMessage CreateMessage() => new PlayerMessage
|
private PlayerMessage CreateMessage() => new PlayerMessage
|
||||||
{
|
{
|
||||||
@ -33,16 +29,11 @@ namespace QSB.Player.Events
|
|||||||
|
|
||||||
public override void OnReceiveRemote(bool isHost, PlayerMessage message)
|
public override void OnReceiveRemote(bool isHost, PlayerMessage message)
|
||||||
{
|
{
|
||||||
DebugLog.DebugWrite($"OnReceiveRemote RequestStateResyncEvent");
|
|
||||||
|
|
||||||
// if host, send worldobject and server states
|
// if host, send worldobject and server states
|
||||||
|
|
||||||
if (isHost)
|
if (isHost)
|
||||||
{
|
{
|
||||||
DebugLog.DebugWrite($"SENDING SERVER STATE");
|
|
||||||
QSBEventManager.FireEvent(EventNames.QSBServerState, ServerStateManager.Instance.GetServerState());
|
QSBEventManager.FireEvent(EventNames.QSBServerState, ServerStateManager.Instance.GetServerState());
|
||||||
|
|
||||||
DebugLog.DebugWrite($"SENDING PLAYER INFORMATION");
|
|
||||||
QSBEventManager.FireEvent(EventNames.QSBPlayerInformation);
|
QSBEventManager.FireEvent(EventNames.QSBPlayerInformation);
|
||||||
|
|
||||||
SendWorldObjectInfo();
|
SendWorldObjectInfo();
|
||||||
@ -51,15 +42,11 @@ namespace QSB.Player.Events
|
|||||||
}
|
}
|
||||||
|
|
||||||
// if client, send player and client states
|
// if client, send player and client states
|
||||||
|
|
||||||
DebugLog.DebugWrite($"SENDING PLAYER INFORMATION");
|
|
||||||
QSBEventManager.FireEvent(EventNames.QSBPlayerInformation);
|
QSBEventManager.FireEvent(EventNames.QSBPlayerInformation);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void SendWorldObjectInfo()
|
private void SendWorldObjectInfo()
|
||||||
{
|
{
|
||||||
DebugLog.DebugWrite($"SENDING WORLDOBJECT INFORMATION");
|
|
||||||
|
|
||||||
QSBWorldSync.DialogueConditions.ForEach(condition
|
QSBWorldSync.DialogueConditions.ForEach(condition
|
||||||
=> QSBEventManager.FireEvent(EventNames.DialogueCondition, condition.Key, condition.Value));
|
=> QSBEventManager.FireEvent(EventNames.DialogueCondition, condition.Key, condition.Value));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user