move DebugLog.DebugWrite

This commit is contained in:
JohnCorby 2022-03-14 05:13:12 -07:00
parent ece4ee3c86
commit 6f8d367b95
2 changed files with 4 additions and 4 deletions

View File

@ -18,11 +18,11 @@ public class RequestLinksMessage : QSBMessage
private static void SendLinks(uint to)
{
DebugLog.DebugWrite($"sending world object links to {to}");
foreach (var worldObject in QSBWorldSync.GetWorldObjects<ILinkedWorldObject<NetworkBehaviour>>())
{
new LinkMessage(worldObject, worldObject.NetworkBehaviour) { To = to }.Send();
}
DebugLog.DebugWrite($"sent world object links to {to}");
}
}

View File

@ -20,8 +20,6 @@ public class RequestInitialStatesMessage : QSBMessage
private static void SendInitialStates(uint to)
{
DebugLog.DebugWrite($"sending initial states to {to}");
QSBWorldSync.DialogueConditions.ForEach(condition
=> new DialogueConditionMessage(condition.Key, condition.Value) { To = to }.Send());
@ -39,5 +37,7 @@ public class RequestInitialStatesMessage : QSBMessage
worldObject.Try("sending initial state", () =>
worldObject.SendInitialState(to));
}
DebugLog.DebugWrite($"sent initial states to {to}");
}
}