radio systems replace all entity query with enumerator (#15449)

This commit is contained in:
Slava0135
2023-04-23 11:29:08 +03:00
committed by GitHub
parent 9c9c273a4c
commit 8aef835d33
2 changed files with 3 additions and 3 deletions

View File

@@ -87,7 +87,7 @@ public sealed class RadioSystem : EntitySystem
var hasMicro = HasComp<RadioMicrophoneComponent>(radioSource);
var speakerQuery = GetEntityQuery<RadioSpeakerComponent>();
var radioQuery = AllEntityQuery<ActiveRadioComponent, TransformComponent>();
var radioQuery = EntityQueryEnumerator<ActiveRadioComponent, TransformComponent>();
var sentAtLeastOnce = false;
while (canSend && radioQuery.MoveNext(out var receiver, out var radio, out var transform))
{