mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-01 03:32:38 +00:00
move DebugLog.DebugWrite
This commit is contained in:
parent
ece4ee3c86
commit
6f8d367b95
@ -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}");
|
||||
}
|
||||
}
|
||||
|
@ -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}");
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user