Content struct enumerators (#11894)
This commit is contained in:
@@ -18,7 +18,9 @@ public sealed class RevenantOverloadedLightsSystem : SharedRevenantOverloadedLig
|
||||
{
|
||||
base.Update(frameTime);
|
||||
|
||||
foreach (var (comp, light) in EntityQuery<RevenantOverloadedLightsComponent, PointLightComponent>())
|
||||
var enumerator = EntityQueryEnumerator<RevenantOverloadedLightsComponent, PointLightComponent>();
|
||||
|
||||
while (enumerator.MoveNext(out var comp, out var light))
|
||||
{
|
||||
//this looks cool :HECK:
|
||||
light.Energy = 2f * Math.Abs((float) Math.Sin(0.25 * Math.PI * comp.Accumulator));
|
||||
|
||||
Reference in New Issue
Block a user