System1 vs System2

Created Diff never expires
4 removals
Lines
Total
Removed
Words
Total
Removed
To continue using this feature, upgrade to
Diffchecker logo
Diffchecker Pro
38 lines
13 additions
Lines
Total
Added
Words
Total
Added
To continue using this feature, upgrade to
Diffchecker logo
Diffchecker Pro
46 lines
[CompilerGenerated]
[CompilerGenerated]
public partial struct SampleSystem1 : ISystemCompilerGenerated
public partial struct SampleSystem2 : ISystemCompilerGenerated
{
{
void __OnUpdate_6D4E9467(ref SystemState state)
void __OnUpdate_6D4E9467(ref SystemState state)
{
{
var tick = __query_1024120566_0.GetSingleton<Tick>();
var tickEntity = __query_1024120582_0.GetSingletonEntity();
var tick = Internal.InternalCompilerInterface.GetComponentAfterCompletingDependency<Tick>(
ref __TypeHandle.__Module_EntitySystems_Tick_RO_ComponentLookup,
ref state,
tickEntity);
}
}


TypeHandle __TypeHandle;
TypeHandle __TypeHandle;
EntityQuery __query_1024120566_0;
EntityQuery __query_1024120582_0;
struct TypeHandle
struct TypeHandle
{
{
[ReadOnly] public ComponentLookup<Tick> __Module_EntitySystems_Tick_RO_ComponentLookup;
public void __AssignHandles(ref SystemState state)
public void __AssignHandles(ref SystemState state)
{
{
__Module_EntitySystems_Tick_RO_ComponentLookup = state.GetComponentLookup<Tick>(true);
}
}
}
}
void __AssignQueries(ref SystemState state)
void __AssignQueries(ref SystemState state)
{
{
var entityQueryBuilder = new EntityQueryBuilder(Allocator.Temp);
var entityQueryBuilder = new EntityQueryBuilder(Allocator.Temp);
__query_1024120566_0 =
__query_1024120582_0 =
entityQueryBuilder
entityQueryBuilder
.WithAll<global::Module.EntitySystems.Tick>()
.WithAll<global::Module.EntitySystems.Tick>()
.WithOptions(EntityQueryOptions.IncludeSystems)
.WithOptions(EntityQueryOptions.IncludeSystems)
.Build(ref state);
.Build(ref state);
entityQueryBuilder.Reset();
entityQueryBuilder.Reset();
entityQueryBuilder.Dispose();
entityQueryBuilder.Dispose();
}
}
public void OnCreateForCompiler(ref SystemState state)
public void OnCreateForCompiler(ref SystemState state)
{
{
__AssignQueries(ref state);
__AssignQueries(ref state);
__TypeHandle.__AssignHandles(ref state);
__TypeHandle.__AssignHandles(ref state);
}
}
}
}