Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Reflection;
- namespace scare2D {
- public sealed class EntityWorld : IEntityWorld {
- public EntityManager Entities { get; set; }
- public ComponentManager Components => Entities.Components;
- public Microsoft.Xna.Framework.Graphics.SpriteBatch _Microsoft_dot_Xna_dot_Framework_dot_Graphics_dot_SpriteBatch_null;
- public scare2D.FastSpriteBatch _scare2D_dot_FastSpriteBatch_null;
- public Microsoft.Xna.Framework.Content.ContentManager _Microsoft_dot_Xna_dot_Framework_dot_Content_dot_ContentManager_null;
- public Microsoft.Xna.Framework.Graphics.GraphicsDevice _Microsoft_dot_Xna_dot_Framework_dot_Graphics_dot_GraphicsDevice_null;
- public scare2D.IPrimitiveBatch _scare2D_dot_IPrimitiveBatch_null;
- public scare2D.Camera2D _scare2D_dot_Camera2D_null;
- public System.Single _System_dot_Single_deltaTime;
- public System.Single _System_dot_Single_fixedTime;
- public System.Single _System_dot_Single_alpha;
- public System.Single _System_dot_Single_totalTime;
- public System.String _System_dot_String_player1Name;
- public System.String _System_dot_String_player2Name;
- public Microsoft.Xna.Framework.Color _Microsoft_dot_Xna_dot_Framework_dot_Color_null;
- public Microsoft.Xna.Framework.Graphics.Texture2D _Microsoft_dot_Xna_dot_Framework_dot_Graphics_dot_Texture2D_redTexture;
- public Microsoft.Xna.Framework.Graphics.SpriteFont _Microsoft_dot_Xna_dot_Framework_dot_Graphics_dot_SpriteFont_null;
- public scare2D.float4 _scare2D_dot_float4_rect;
- public scare2D.float2 _scare2D_dot_float2_gravity;
- public bool _scare2D_dot_AutoLerpTransformBeginFixedUpdateSystem_enabled = true;
- public scare2D.AutoLerpTransformBeginFixedUpdateSystem _scare2D_dot_AutoLerpTransformBeginFixedUpdateSystem_null;
- public bool _scare2D_dot_AutoLerpTransformBeginDrawSystem_enabled = true;
- public scare2D.AutoLerpTransformBeginDrawSystem _scare2D_dot_AutoLerpTransformBeginDrawSystem_null;
- public bool _scare2D_dot_AutoSetDefaultTransformSystem_enabled = true;
- public scare2D.AutoSetDefaultTransformSystem _scare2D_dot_AutoSetDefaultTransformSystem_null;
- public bool _scare2D_dot_PhysicsCleanupSystem_enabled = true;
- public scare2D.PhysicsCleanupSystem _scare2D_dot_PhysicsCleanupSystem_null;
- public bool _scare2D_dot_BroadPhaseRendererSystem_enabled = true;
- public scare2D.BroadPhaseRendererSystem _scare2D_dot_BroadPhaseRendererSystem_null;
- public bool _scare2D_dot_BroadPhaseSystem_enabled = true;
- public scare2D.BroadPhaseSystem _scare2D_dot_BroadPhaseSystem_null;
- public bool _scare2D_dot_NarrowPhaseSystem_enabled = true;
- public scare2D.NarrowPhaseSystem _scare2D_dot_NarrowPhaseSystem_null;
- public bool _scare2D_dot_CollisionResponseSystem_enabled = true;
- public scare2D.CollisionResponseSystem _scare2D_dot_CollisionResponseSystem_null;
- public bool _scare2D_dot_RigidBody2DSystem_enabled = true;
- public scare2D.RigidBody2DSystem _scare2D_dot_RigidBody2DSystem_null;
- public bool _scare2D_dot_ParticleEmitterRenderer_enabled = true;
- public scare2D.ParticleEmitterRenderer _scare2D_dot_ParticleEmitterRenderer_null;
- public bool _scare2D_dot_SpawnerSystem_enabled = true;
- public scare2D.SpawnerSystem _scare2D_dot_SpawnerSystem_null;
- public bool _scare2D_dot_LifeTimeSystem_enabled = true;
- public scare2D.LifeTimeSystem _scare2D_dot_LifeTimeSystem_null;
- public bool _scare2D_dot_PingPongSystem_enabled = true;
- public scare2D.PingPongSystem _scare2D_dot_PingPongSystem_null;
- public bool _scare2D_dot_SpriteRendererSystem_enabled = true;
- public scare2D.SpriteRendererSystem _scare2D_dot_SpriteRendererSystem_null;
- public bool _scare2D_dot_NameRendererSystem_enabled = true;
- public scare2D.NameRendererSystem _scare2D_dot_NameRendererSystem_null;
- public bool _scare2D_dot_BoxColliderRendererSystem_enabled = true;
- public scare2D.BoxColliderRendererSystem _scare2D_dot_BoxColliderRendererSystem_null;
- public bool _scare2D_dot_TextureRotatorSystem_enabled = true;
- public scare2D.TextureRotatorSystem _scare2D_dot_TextureRotatorSystem_null;
- public bool _scare2D_dot_AutoLerpTransformEndFixedUpdateSystem_enabled = true;
- public scare2D.AutoLerpTransformEndFixedUpdateSystem _scare2D_dot_AutoLerpTransformEndFixedUpdateSystem_null;
- public bool _scare2D_dot_RigidBody2DColliderRendererSystem_enabled = true;
- public scare2D.RigidBody2DColliderRendererSystem _scare2D_dot_RigidBody2DColliderRendererSystem_null;
- public bool _scare2D_dot_RigidBody2DVelocityRendererSystem_enabled = true;
- public scare2D.RigidBody2DVelocityRendererSystem _scare2D_dot_RigidBody2DVelocityRendererSystem_null;
- public bool _scare2D_dot_Manifold2DRendererSystem_enabled = true;
- public scare2D.Manifold2DRendererSystem _scare2D_dot_Manifold2DRendererSystem_null;
- public EntityWorld() : this(new EntityManager()) { }
- internal EntityWorld(EntityManager entities) {
- Entities = entities;
- _scare2D_dot_AutoLerpTransformBeginFixedUpdateSystem_null = new scare2D.AutoLerpTransformBeginFixedUpdateSystem();
- typeof(scare2D.AutoLerpTransformBeginFixedUpdateSystem).GetField("addAutoLerpGroup", BindingFlags.Instance | BindingFlags.NonPublic).SetValue(_scare2D_dot_AutoLerpTransformBeginFixedUpdateSystem_null, new _scare2D_dot_AutoLerpTransformBeginFixedUpdateSystem_dot_AddAutoLerpGroup_Collection(this));
- typeof(scare2D.AutoLerpTransformBeginFixedUpdateSystem).GetField("autoLerpGroup", BindingFlags.Instance | BindingFlags.NonPublic).SetValue(_scare2D_dot_AutoLerpTransformBeginFixedUpdateSystem_null, new _scare2D_dot_AutoLerpTransformBeginFixedUpdateSystem_dot_AutoLerpGroup_Collection(this));
- _scare2D_dot_AutoLerpTransformBeginDrawSystem_null = new scare2D.AutoLerpTransformBeginDrawSystem();
- typeof(scare2D.AutoLerpTransformBeginDrawSystem).GetField("items", BindingFlags.Instance | BindingFlags.NonPublic).SetValue(_scare2D_dot_AutoLerpTransformBeginDrawSystem_null, new _scare2D_dot_AutoLerpTransformBeginDrawSystem_dot_AutoLerpGroup_Collection(this));
- _scare2D_dot_AutoSetDefaultTransformSystem_null = new scare2D.AutoSetDefaultTransformSystem();
- typeof(scare2D.AutoSetDefaultTransformSystem).GetField("items", BindingFlags.Instance | BindingFlags.NonPublic).SetValue(_scare2D_dot_AutoSetDefaultTransformSystem_null, new _scare2D_dot_AutoSetDefaultTransformSystem_dot_ItemGroup_Collection(this));
- _scare2D_dot_PhysicsCleanupSystem_null = new scare2D.PhysicsCleanupSystem();
- typeof(scare2D.PhysicsCleanupSystem).GetField("items", BindingFlags.Instance | BindingFlags.NonPublic).SetValue(_scare2D_dot_PhysicsCleanupSystem_null, new _scare2D_dot_PhysicsCleanupSystem_dot_ItemGroup_Collection(this));
- typeof(scare2D.PhysicsCleanupSystem).GetField("items2", BindingFlags.Instance | BindingFlags.NonPublic).SetValue(_scare2D_dot_PhysicsCleanupSystem_null, new _scare2D_dot_PhysicsCleanupSystem_dot_ItemGroup2_Collection(this));
- _scare2D_dot_BroadPhaseRendererSystem_null = new scare2D.BroadPhaseRendererSystem();
- typeof(scare2D.BroadPhaseRendererSystem).GetField("items", BindingFlags.Instance | BindingFlags.NonPublic).SetValue(_scare2D_dot_BroadPhaseRendererSystem_null, new _scare2D_dot_BroadPhaseRendererSystem_dot_ItemGroup_Collection(this));
- _scare2D_dot_BroadPhaseSystem_null = new scare2D.BroadPhaseSystem();
- typeof(scare2D.BroadPhaseSystem).GetField("items", BindingFlags.Instance | BindingFlags.NonPublic).SetValue(_scare2D_dot_BroadPhaseSystem_null, new _scare2D_dot_PhysicsObject_Collection(this));
- _scare2D_dot_NarrowPhaseSystem_null = new scare2D.NarrowPhaseSystem();
- typeof(scare2D.NarrowPhaseSystem).GetField("items", BindingFlags.Instance | BindingFlags.NonPublic).SetValue(_scare2D_dot_NarrowPhaseSystem_null, new _scare2D_dot_NarrowPhaseSystem_dot_ItemGroup_Collection(this));
- _scare2D_dot_CollisionResponseSystem_null = new scare2D.CollisionResponseSystem();
- typeof(scare2D.CollisionResponseSystem).GetField("items", BindingFlags.Instance | BindingFlags.NonPublic).SetValue(_scare2D_dot_CollisionResponseSystem_null, new _scare2D_dot_CollisionResponseSystem_dot_ItemGroup_Collection(this));
- _scare2D_dot_RigidBody2DSystem_null = new scare2D.RigidBody2DSystem();
- typeof(scare2D.RigidBody2DSystem).GetField("items", BindingFlags.Instance | BindingFlags.NonPublic).SetValue(_scare2D_dot_RigidBody2DSystem_null, new _scare2D_dot_PhysicsObject_Collection(this));
- _scare2D_dot_ParticleEmitterRenderer_null = new scare2D.ParticleEmitterRenderer();
- typeof(scare2D.ParticleEmitterRenderer).GetField("items", BindingFlags.Instance | BindingFlags.NonPublic).SetValue(_scare2D_dot_ParticleEmitterRenderer_null, new _scare2D_dot_ParticleEmitterRenderer_dot_ItemGroup_Collection(this));
- _scare2D_dot_SpawnerSystem_null = new scare2D.SpawnerSystem();
- typeof(scare2D.SpawnerSystem).GetField("items", BindingFlags.Instance | BindingFlags.NonPublic).SetValue(_scare2D_dot_SpawnerSystem_null, new _scare2D_dot_SpawnerSystem_dot_Group_Collection(this));
- _scare2D_dot_LifeTimeSystem_null = new scare2D.LifeTimeSystem();
- typeof(scare2D.LifeTimeSystem).GetField("items", BindingFlags.Instance | BindingFlags.NonPublic).SetValue(_scare2D_dot_LifeTimeSystem_null, new _scare2D_dot_LifeTimeSystem_dot_Group_Collection(this));
- _scare2D_dot_PingPongSystem_null = new scare2D.PingPongSystem();
- typeof(scare2D.PingPongSystem).GetField("items", BindingFlags.Instance | BindingFlags.NonPublic).SetValue(_scare2D_dot_PingPongSystem_null, new _scare2D_dot_PingPongSystem_dot_PingPong_Collection(this));
- _scare2D_dot_SpriteRendererSystem_null = new scare2D.SpriteRendererSystem();
- typeof(scare2D.SpriteRendererSystem).GetField("sprites", BindingFlags.Instance | BindingFlags.NonPublic).SetValue(_scare2D_dot_SpriteRendererSystem_null, new _scare2D_dot_SpriteRendererSystem_dot_ItemGroup_Collection(this));
- typeof(scare2D.SpriteRendererSystem).GetField("items", BindingFlags.Instance | BindingFlags.NonPublic).SetValue(_scare2D_dot_SpriteRendererSystem_null, new _scare2D_dot_SpriteRendererSystem_dot_ItemGroup2_Collection(this));
- _scare2D_dot_NameRendererSystem_null = new scare2D.NameRendererSystem();
- typeof(scare2D.NameRendererSystem).GetField("items", BindingFlags.Instance | BindingFlags.NonPublic).SetValue(_scare2D_dot_NameRendererSystem_null, new _scare2D_dot_NameRendererSystem_dot_ItemGroup_Collection(this));
- typeof(scare2D.NameRendererSystem).GetField("items2", BindingFlags.Instance | BindingFlags.NonPublic).SetValue(_scare2D_dot_NameRendererSystem_null, new _scare2D_dot_NameRendererSystem_dot_ItemGroup2_Collection(this));
- typeof(scare2D.NameRendererSystem).GetField("items3", BindingFlags.Instance | BindingFlags.NonPublic).SetValue(_scare2D_dot_NameRendererSystem_null, new _scare2D_dot_NameRendererSystem_dot_ItemGroup3_Collection(this));
- _scare2D_dot_BoxColliderRendererSystem_null = new scare2D.BoxColliderRendererSystem();
- typeof(scare2D.BoxColliderRendererSystem).GetField("items", BindingFlags.Instance | BindingFlags.NonPublic).SetValue(_scare2D_dot_BoxColliderRendererSystem_null, new _scare2D_dot_BoxColliderRendererSystem_dot_ItemGroup_Collection(this));
- _scare2D_dot_TextureRotatorSystem_null = new scare2D.TextureRotatorSystem();
- typeof(scare2D.TextureRotatorSystem).GetField("items", BindingFlags.Instance | BindingFlags.NonPublic).SetValue(_scare2D_dot_TextureRotatorSystem_null, new _scare2D_dot_TextureRotatorSystem_dot_ItemGroup_Collection(this));
- _scare2D_dot_AutoLerpTransformEndFixedUpdateSystem_null = new scare2D.AutoLerpTransformEndFixedUpdateSystem();
- typeof(scare2D.AutoLerpTransformEndFixedUpdateSystem).GetField("autoLerpGroup", BindingFlags.Instance | BindingFlags.NonPublic).SetValue(_scare2D_dot_AutoLerpTransformEndFixedUpdateSystem_null, new _scare2D_dot_AutoLerpTransformEndFixedUpdateSystem_dot_AutoLerpGroup_Collection(this));
- _scare2D_dot_RigidBody2DColliderRendererSystem_null = new scare2D.RigidBody2DColliderRendererSystem();
- typeof(scare2D.RigidBody2DColliderRendererSystem).GetField("items", BindingFlags.Instance | BindingFlags.NonPublic).SetValue(_scare2D_dot_RigidBody2DColliderRendererSystem_null, new _scare2D_dot_PhysicsObject_Collection(this));
- _scare2D_dot_RigidBody2DVelocityRendererSystem_null = new scare2D.RigidBody2DVelocityRendererSystem();
- typeof(scare2D.RigidBody2DVelocityRendererSystem).GetField("items", BindingFlags.Instance | BindingFlags.NonPublic).SetValue(_scare2D_dot_RigidBody2DVelocityRendererSystem_null, new _scare2D_dot_RigidBody2DVelocityRendererSystem_dot_ItemGroup_Collection(this));
- _scare2D_dot_Manifold2DRendererSystem_null = new scare2D.Manifold2DRendererSystem();
- typeof(scare2D.Manifold2DRendererSystem).GetField("items", BindingFlags.Instance | BindingFlags.NonPublic).SetValue(_scare2D_dot_Manifold2DRendererSystem_null, new _scare2D_dot_ReadOnlyGenericGroup_scare2D_dot_Manifold2D__Collection(this));
- }
- static EntityWorld() {
- SharedDataType.PERFORMANCE_HACK.Add(typeof(scare2D.EntityHandle), ((Func<Func<object, IEnumerable<SharedDataValue>>>)(() => {
- return o => {
- return new SharedDataValue[] {};
- };
- }))());
- SharedDataType.PERFORMANCE_HACK.Add(typeof(scare2D.Transform2D), ((Func<Func<object, IEnumerable<SharedDataValue>>>)(() => {
- return o => {
- return new SharedDataValue[] {};
- };
- }))());
- SharedDataType.PERFORMANCE_HACK.Add(typeof(scare2D.AutoLerpTransformComponent), ((Func<Func<object, IEnumerable<SharedDataValue>>>)(() => {
- return o => {
- return new SharedDataValue[] {};
- };
- }))());
- SharedDataType.PERFORMANCE_HACK.Add(typeof(scare2D.BroadPhasePair), ((Func<Func<object, IEnumerable<SharedDataValue>>>)(() => {
- return o => {
- return new SharedDataValue[] {};
- };
- }))());
- SharedDataType.PERFORMANCE_HACK.Add(typeof(scare2D.Manifold2D), ((Func<Func<object, IEnumerable<SharedDataValue>>>)(() => {
- return o => {
- return new SharedDataValue[] {};
- };
- }))());
- SharedDataType.PERFORMANCE_HACK.Add(typeof(scare2D.RigidBody2D), ((Func<Func<object, IEnumerable<SharedDataValue>>>)(() => {
- var CollisionMask = typeof(scare2D.RigidBody2D).GetField("CollisionMask");
- return o => {
- return new SharedDataValue[] {new SharedDataValue(CollisionMask, ((scare2D.RigidBody2D)o).CollisionMask)};
- };
- }))());
- SharedDataType.PERFORMANCE_HACK.Add(typeof(scare2D.Transform), ((Func<Func<object, IEnumerable<SharedDataValue>>>)(() => {
- return o => {
- return new SharedDataValue[] {};
- };
- }))());
- SharedDataType.PERFORMANCE_HACK.Add(typeof(scare2D.ParticleEmitter), ((Func<Func<object, IEnumerable<SharedDataValue>>>)(() => {
- var textureName = typeof(scare2D.ParticleEmitter).GetField("textureName");
- return o => {
- return new SharedDataValue[] {new SharedDataValue(textureName, ((scare2D.ParticleEmitter)o).textureName)};
- };
- }))());
- SharedDataType.PERFORMANCE_HACK.Add(typeof(scare2D.Spawner), ((Func<Func<object, IEnumerable<SharedDataValue>>>)(() => {
- return o => {
- return new SharedDataValue[] {};
- };
- }))());
- SharedDataType.PERFORMANCE_HACK.Add(typeof(scare2D.LifeTime), ((Func<Func<object, IEnumerable<SharedDataValue>>>)(() => {
- return o => {
- return new SharedDataValue[] {};
- };
- }))());
- SharedDataType.PERFORMANCE_HACK.Add(typeof(scare2D.BoxCollider), ((Func<Func<object, IEnumerable<SharedDataValue>>>)(() => {
- var canCollide = typeof(scare2D.BoxCollider).GetField("canCollide");
- return o => {
- return new SharedDataValue[] {new SharedDataValue(canCollide, ((scare2D.BoxCollider)o).canCollide)};
- };
- }))());
- SharedDataType.PERFORMANCE_HACK.Add(typeof(scare2D.PingPongComponent), ((Func<Func<object, IEnumerable<SharedDataValue>>>)(() => {
- return o => {
- return new SharedDataValue[] {};
- };
- }))());
- SharedDataType.PERFORMANCE_HACK.Add(typeof(scare2D.SpriteRenderer), ((Func<Func<object, IEnumerable<SharedDataValue>>>)(() => {
- var textureName = typeof(scare2D.SpriteRenderer).GetField("textureName");
- return o => {
- return new SharedDataValue[] {new SharedDataValue(textureName, ((scare2D.SpriteRenderer)o).textureName)};
- };
- }))());
- SharedDataType.PERFORMANCE_HACK.Add(typeof(scare2D.EntityName), ((Func<Func<object, IEnumerable<SharedDataValue>>>)(() => {
- return o => {
- return new SharedDataValue[] {};
- };
- }))());
- SharedDataType.PERFORMANCE_HACK.Add(typeof(scare2D.TextureRotator), ((Func<Func<object, IEnumerable<SharedDataValue>>>)(() => {
- return o => {
- return new SharedDataValue[] {};
- };
- }))());
- }
- public void SetSystemState<T>(T value) {
- if(value is Microsoft.Xna.Framework.Graphics.SpriteBatch @_Microsoft_dot_Xna_dot_Framework_dot_Graphics_dot_SpriteBatch_local) {
- _Microsoft_dot_Xna_dot_Framework_dot_Graphics_dot_SpriteBatch_null = @_Microsoft_dot_Xna_dot_Framework_dot_Graphics_dot_SpriteBatch_local;
- }
- else if(value is scare2D.FastSpriteBatch @_scare2D_dot_FastSpriteBatch_local) {
- _scare2D_dot_FastSpriteBatch_null = @_scare2D_dot_FastSpriteBatch_local;
- }
- else if(value is Microsoft.Xna.Framework.Content.ContentManager @_Microsoft_dot_Xna_dot_Framework_dot_Content_dot_ContentManager_local) {
- _Microsoft_dot_Xna_dot_Framework_dot_Content_dot_ContentManager_null = @_Microsoft_dot_Xna_dot_Framework_dot_Content_dot_ContentManager_local;
- }
- else if(value is Microsoft.Xna.Framework.Graphics.GraphicsDevice @_Microsoft_dot_Xna_dot_Framework_dot_Graphics_dot_GraphicsDevice_local) {
- _Microsoft_dot_Xna_dot_Framework_dot_Graphics_dot_GraphicsDevice_null = @_Microsoft_dot_Xna_dot_Framework_dot_Graphics_dot_GraphicsDevice_local;
- }
- else if(value is scare2D.IPrimitiveBatch @_scare2D_dot_IPrimitiveBatch_local) {
- _scare2D_dot_IPrimitiveBatch_null = @_scare2D_dot_IPrimitiveBatch_local;
- }
- else if(value is scare2D.Camera2D @_scare2D_dot_Camera2D_local) {
- _scare2D_dot_Camera2D_null = @_scare2D_dot_Camera2D_local;
- }
- else if(value is Microsoft.Xna.Framework.Color @_Microsoft_dot_Xna_dot_Framework_dot_Color_local) {
- _Microsoft_dot_Xna_dot_Framework_dot_Color_null = @_Microsoft_dot_Xna_dot_Framework_dot_Color_local;
- }
- else if(value is Microsoft.Xna.Framework.Graphics.SpriteFont @_Microsoft_dot_Xna_dot_Framework_dot_Graphics_dot_SpriteFont_local) {
- _Microsoft_dot_Xna_dot_Framework_dot_Graphics_dot_SpriteFont_null = @_Microsoft_dot_Xna_dot_Framework_dot_Graphics_dot_SpriteFont_local;
- }
- }
- public void SetSystemState<T>(string name, T value) {
- if(value is System.Single @_System_dot_Single_local) {
- if(name == "deltaTime") {
- _System_dot_Single_deltaTime = @_System_dot_Single_local;
- }
- else if(name == "fixedTime") {
- _System_dot_Single_fixedTime = @_System_dot_Single_local;
- }
- else if(name == "alpha") {
- _System_dot_Single_alpha = @_System_dot_Single_local;
- }
- else if(name == "totalTime") {
- _System_dot_Single_totalTime = @_System_dot_Single_local;
- }
- }
- else if(value is System.String @_System_dot_String_local) {
- if(name == "player1Name") {
- _System_dot_String_player1Name = @_System_dot_String_local;
- }
- else if(name == "player2Name") {
- _System_dot_String_player2Name = @_System_dot_String_local;
- }
- }
- else if(value is Microsoft.Xna.Framework.Graphics.Texture2D @_Microsoft_dot_Xna_dot_Framework_dot_Graphics_dot_Texture2D_local) {
- if(name == "redTexture") {
- _Microsoft_dot_Xna_dot_Framework_dot_Graphics_dot_Texture2D_redTexture = @_Microsoft_dot_Xna_dot_Framework_dot_Graphics_dot_Texture2D_local;
- }
- }
- else if(value is scare2D.float4 @_scare2D_dot_float4_local) {
- if(name == "rect") {
- _scare2D_dot_float4_rect = @_scare2D_dot_float4_local;
- }
- }
- else if(value is scare2D.float2 @_scare2D_dot_float2_local) {
- if(name == "gravity") {
- _scare2D_dot_float2_gravity = @_scare2D_dot_float2_local;
- }
- }
- }
- public void SetSystemEnabled<T>(bool enabled) {
- if(typeof(T) == typeof(scare2D.AutoLerpTransformBeginFixedUpdateSystem)) {
- _scare2D_dot_AutoLerpTransformBeginFixedUpdateSystem_enabled = enabled;
- return;
- }
- if(typeof(T) == typeof(scare2D.AutoLerpTransformBeginDrawSystem)) {
- _scare2D_dot_AutoLerpTransformBeginDrawSystem_enabled = enabled;
- return;
- }
- if(typeof(T) == typeof(scare2D.AutoSetDefaultTransformSystem)) {
- _scare2D_dot_AutoSetDefaultTransformSystem_enabled = enabled;
- return;
- }
- if(typeof(T) == typeof(scare2D.PhysicsCleanupSystem)) {
- _scare2D_dot_PhysicsCleanupSystem_enabled = enabled;
- return;
- }
- if(typeof(T) == typeof(scare2D.BroadPhaseRendererSystem)) {
- _scare2D_dot_BroadPhaseRendererSystem_enabled = enabled;
- return;
- }
- if(typeof(T) == typeof(scare2D.BroadPhaseSystem)) {
- _scare2D_dot_BroadPhaseSystem_enabled = enabled;
- return;
- }
- if(typeof(T) == typeof(scare2D.NarrowPhaseSystem)) {
- _scare2D_dot_NarrowPhaseSystem_enabled = enabled;
- return;
- }
- if(typeof(T) == typeof(scare2D.CollisionResponseSystem)) {
- _scare2D_dot_CollisionResponseSystem_enabled = enabled;
- return;
- }
- if(typeof(T) == typeof(scare2D.RigidBody2DSystem)) {
- _scare2D_dot_RigidBody2DSystem_enabled = enabled;
- return;
- }
- if(typeof(T) == typeof(scare2D.ParticleEmitterRenderer)) {
- _scare2D_dot_ParticleEmitterRenderer_enabled = enabled;
- return;
- }
- if(typeof(T) == typeof(scare2D.SpawnerSystem)) {
- _scare2D_dot_SpawnerSystem_enabled = enabled;
- return;
- }
- if(typeof(T) == typeof(scare2D.LifeTimeSystem)) {
- _scare2D_dot_LifeTimeSystem_enabled = enabled;
- return;
- }
- if(typeof(T) == typeof(scare2D.PingPongSystem)) {
- _scare2D_dot_PingPongSystem_enabled = enabled;
- return;
- }
- if(typeof(T) == typeof(scare2D.SpriteRendererSystem)) {
- _scare2D_dot_SpriteRendererSystem_enabled = enabled;
- return;
- }
- if(typeof(T) == typeof(scare2D.NameRendererSystem)) {
- _scare2D_dot_NameRendererSystem_enabled = enabled;
- return;
- }
- if(typeof(T) == typeof(scare2D.BoxColliderRendererSystem)) {
- _scare2D_dot_BoxColliderRendererSystem_enabled = enabled;
- return;
- }
- if(typeof(T) == typeof(scare2D.TextureRotatorSystem)) {
- _scare2D_dot_TextureRotatorSystem_enabled = enabled;
- return;
- }
- if(typeof(T) == typeof(scare2D.AutoLerpTransformEndFixedUpdateSystem)) {
- _scare2D_dot_AutoLerpTransformEndFixedUpdateSystem_enabled = enabled;
- return;
- }
- if(typeof(T) == typeof(scare2D.RigidBody2DColliderRendererSystem)) {
- _scare2D_dot_RigidBody2DColliderRendererSystem_enabled = enabled;
- return;
- }
- if(typeof(T) == typeof(scare2D.RigidBody2DVelocityRendererSystem)) {
- _scare2D_dot_RigidBody2DVelocityRendererSystem_enabled = enabled;
- return;
- }
- if(typeof(T) == typeof(scare2D.Manifold2DRendererSystem)) {
- _scare2D_dot_Manifold2DRendererSystem_enabled = enabled;
- return;
- }
- }
- public bool GetSystemEnabled<T>() {
- if(typeof(T) == typeof(scare2D.AutoLerpTransformBeginFixedUpdateSystem)) {
- return _scare2D_dot_AutoLerpTransformBeginFixedUpdateSystem_enabled;
- }
- if(typeof(T) == typeof(scare2D.AutoLerpTransformBeginDrawSystem)) {
- return _scare2D_dot_AutoLerpTransformBeginDrawSystem_enabled;
- }
- if(typeof(T) == typeof(scare2D.AutoSetDefaultTransformSystem)) {
- return _scare2D_dot_AutoSetDefaultTransformSystem_enabled;
- }
- if(typeof(T) == typeof(scare2D.PhysicsCleanupSystem)) {
- return _scare2D_dot_PhysicsCleanupSystem_enabled;
- }
- if(typeof(T) == typeof(scare2D.BroadPhaseRendererSystem)) {
- return _scare2D_dot_BroadPhaseRendererSystem_enabled;
- }
- if(typeof(T) == typeof(scare2D.BroadPhaseSystem)) {
- return _scare2D_dot_BroadPhaseSystem_enabled;
- }
- if(typeof(T) == typeof(scare2D.NarrowPhaseSystem)) {
- return _scare2D_dot_NarrowPhaseSystem_enabled;
- }
- if(typeof(T) == typeof(scare2D.CollisionResponseSystem)) {
- return _scare2D_dot_CollisionResponseSystem_enabled;
- }
- if(typeof(T) == typeof(scare2D.RigidBody2DSystem)) {
- return _scare2D_dot_RigidBody2DSystem_enabled;
- }
- if(typeof(T) == typeof(scare2D.ParticleEmitterRenderer)) {
- return _scare2D_dot_ParticleEmitterRenderer_enabled;
- }
- if(typeof(T) == typeof(scare2D.SpawnerSystem)) {
- return _scare2D_dot_SpawnerSystem_enabled;
- }
- if(typeof(T) == typeof(scare2D.LifeTimeSystem)) {
- return _scare2D_dot_LifeTimeSystem_enabled;
- }
- if(typeof(T) == typeof(scare2D.PingPongSystem)) {
- return _scare2D_dot_PingPongSystem_enabled;
- }
- if(typeof(T) == typeof(scare2D.SpriteRendererSystem)) {
- return _scare2D_dot_SpriteRendererSystem_enabled;
- }
- if(typeof(T) == typeof(scare2D.NameRendererSystem)) {
- return _scare2D_dot_NameRendererSystem_enabled;
- }
- if(typeof(T) == typeof(scare2D.BoxColliderRendererSystem)) {
- return _scare2D_dot_BoxColliderRendererSystem_enabled;
- }
- if(typeof(T) == typeof(scare2D.TextureRotatorSystem)) {
- return _scare2D_dot_TextureRotatorSystem_enabled;
- }
- if(typeof(T) == typeof(scare2D.AutoLerpTransformEndFixedUpdateSystem)) {
- return _scare2D_dot_AutoLerpTransformEndFixedUpdateSystem_enabled;
- }
- if(typeof(T) == typeof(scare2D.RigidBody2DColliderRendererSystem)) {
- return _scare2D_dot_RigidBody2DColliderRendererSystem_enabled;
- }
- if(typeof(T) == typeof(scare2D.RigidBody2DVelocityRendererSystem)) {
- return _scare2D_dot_RigidBody2DVelocityRendererSystem_enabled;
- }
- if(typeof(T) == typeof(scare2D.Manifold2DRendererSystem)) {
- return _scare2D_dot_Manifold2DRendererSystem_enabled;
- }
- throw new ArgumentException();
- }
- public void ReadComponentGroup<T>(EntityHandle handle, T componentGroup)
- where T : IComponentGroup
- {
- if(componentGroup is scare2D.AutoLerpTransformBeginFixedUpdateSystem.AddAutoLerpGroup _scare2D_dot_AutoLerpTransformBeginFixedUpdateSystem_dot_AddAutoLerpGroup_local) {
- _scare2D_dot_AutoLerpTransformBeginFixedUpdateSystem_dot_AddAutoLerpGroup_local.Handle = handle;
- _scare2D_dot_AutoLerpTransformBeginFixedUpdateSystem_dot_AddAutoLerpGroup_local.Transform = handle.GetComponentUnsafe<scare2D.Transform2D>();
- return;
- }
- else if(componentGroup is scare2D.AutoLerpTransformBeginFixedUpdateSystem.AutoLerpGroup _scare2D_dot_AutoLerpTransformBeginFixedUpdateSystem_dot_AutoLerpGroup_local) {
- _scare2D_dot_AutoLerpTransformBeginFixedUpdateSystem_dot_AutoLerpGroup_local.Transform = handle.GetComponentUnsafe<scare2D.Transform2D>();
- _scare2D_dot_AutoLerpTransformBeginFixedUpdateSystem_dot_AutoLerpGroup_local.AutoLerp = handle.GetComponentUnsafe<scare2D.AutoLerpTransformComponent>();
- return;
- }
- else if(componentGroup is scare2D.AutoLerpTransformBeginDrawSystem.AutoLerpGroup _scare2D_dot_AutoLerpTransformBeginDrawSystem_dot_AutoLerpGroup_local) {
- _scare2D_dot_AutoLerpTransformBeginDrawSystem_dot_AutoLerpGroup_local.Transform = handle.GetComponentUnsafe<scare2D.Transform2D>();
- _scare2D_dot_AutoLerpTransformBeginDrawSystem_dot_AutoLerpGroup_local.AutoLerp = handle.GetComponentUnsafe<scare2D.AutoLerpTransformComponent>();
- return;
- }
- else if(componentGroup is scare2D.AutoSetDefaultTransformSystem.ItemGroup _scare2D_dot_AutoSetDefaultTransformSystem_dot_ItemGroup_local) {
- _scare2D_dot_AutoSetDefaultTransformSystem_dot_ItemGroup_local.Transform = handle.GetComponentUnsafe<scare2D.Transform2D>();
- return;
- }
- else if(componentGroup is scare2D.PhysicsCleanupSystem.ItemGroup _scare2D_dot_PhysicsCleanupSystem_dot_ItemGroup_local) {
- _scare2D_dot_PhysicsCleanupSystem_dot_ItemGroup_local.Handle = handle;
- _scare2D_dot_PhysicsCleanupSystem_dot_ItemGroup_local._ = handle.GetComponentUnsafe<scare2D.BroadPhasePair>();
- return;
- }
- else if(componentGroup is scare2D.PhysicsCleanupSystem.ItemGroup2 _scare2D_dot_PhysicsCleanupSystem_dot_ItemGroup2_local) {
- _scare2D_dot_PhysicsCleanupSystem_dot_ItemGroup2_local.Handle = handle;
- _scare2D_dot_PhysicsCleanupSystem_dot_ItemGroup2_local._ = handle.GetComponentUnsafe<scare2D.Manifold2D>();
- return;
- }
- else if(componentGroup is scare2D.BroadPhaseRendererSystem.ItemGroup _scare2D_dot_BroadPhaseRendererSystem_dot_ItemGroup_local) {
- _scare2D_dot_BroadPhaseRendererSystem_dot_ItemGroup_local.Pair = handle.GetComponentUnsafe<scare2D.BroadPhasePair>();
- return;
- }
- else if(componentGroup is scare2D.PhysicsObject _scare2D_dot_PhysicsObject_local) {
- _scare2D_dot_PhysicsObject_local.Handle = handle;
- _scare2D_dot_PhysicsObject_local.Transform = handle.GetComponentUnsafe<scare2D.Transform2D>();
- _scare2D_dot_PhysicsObject_local.RigidBody = handle.GetComponentUnsafe<scare2D.RigidBody2D>();
- return;
- }
- else if(componentGroup is scare2D.NarrowPhaseSystem.ItemGroup _scare2D_dot_NarrowPhaseSystem_dot_ItemGroup_local) {
- _scare2D_dot_NarrowPhaseSystem_dot_ItemGroup_local.Pair = handle.GetComponentUnsafe<scare2D.BroadPhasePair>();
- return;
- }
- else if(componentGroup is scare2D.CollisionResponseSystem.ItemGroup _scare2D_dot_CollisionResponseSystem_dot_ItemGroup_local) {
- _scare2D_dot_CollisionResponseSystem_dot_ItemGroup_local.Collision = handle.GetComponentUnsafe<scare2D.Manifold2D>();
- return;
- }
- else if(componentGroup is scare2D.ParticleEmitterRenderer.ItemGroup _scare2D_dot_ParticleEmitterRenderer_dot_ItemGroup_local) {
- _scare2D_dot_ParticleEmitterRenderer_dot_ItemGroup_local.handle = handle;
- _scare2D_dot_ParticleEmitterRenderer_dot_ItemGroup_local.transform = handle.GetComponentUnsafe<scare2D.Transform>();
- _scare2D_dot_ParticleEmitterRenderer_dot_ItemGroup_local.emitter = handle.GetComponentUnsafe<scare2D.ParticleEmitter>();
- return;
- }
- else if(componentGroup is scare2D.SpawnerSystem.Group _scare2D_dot_SpawnerSystem_dot_Group_local) {
- _scare2D_dot_SpawnerSystem_dot_Group_local.transform = handle.GetComponentUnsafe<scare2D.Transform>();
- _scare2D_dot_SpawnerSystem_dot_Group_local.spawner = handle.GetComponentUnsafe<scare2D.Spawner>();
- return;
- }
- else if(componentGroup is scare2D.LifeTimeSystem.Group _scare2D_dot_LifeTimeSystem_dot_Group_local) {
- _scare2D_dot_LifeTimeSystem_dot_Group_local.handle = handle;
- _scare2D_dot_LifeTimeSystem_dot_Group_local.lifeTime = handle.GetComponentUnsafe<scare2D.LifeTime>();
- return;
- }
- else if(componentGroup is scare2D.PingPongSystem.PingPong _scare2D_dot_PingPongSystem_dot_PingPong_local) {
- _scare2D_dot_PingPongSystem_dot_PingPong_local.transform = handle.GetComponentUnsafe<scare2D.Transform>();
- _scare2D_dot_PingPongSystem_dot_PingPong_local.collider = handle.GetComponentUnsafe<scare2D.BoxCollider>();
- _scare2D_dot_PingPongSystem_dot_PingPong_local.ball = handle.GetComponentUnsafe<scare2D.PingPongComponent>();
- return;
- }
- else if(componentGroup is scare2D.SpriteRendererSystem.ItemGroup _scare2D_dot_SpriteRendererSystem_dot_ItemGroup_local) {
- _scare2D_dot_SpriteRendererSystem_dot_ItemGroup_local.transform = handle.GetComponentUnsafe<scare2D.Transform>();
- _scare2D_dot_SpriteRendererSystem_dot_ItemGroup_local.collider = handle.GetComponentUnsafe<scare2D.BoxCollider>();
- _scare2D_dot_SpriteRendererSystem_dot_ItemGroup_local.renderer = handle.GetComponentUnsafe<scare2D.SpriteRenderer>();
- return;
- }
- else if(componentGroup is scare2D.SpriteRendererSystem.ItemGroup2 _scare2D_dot_SpriteRendererSystem_dot_ItemGroup2_local) {
- _scare2D_dot_SpriteRendererSystem_dot_ItemGroup2_local.Transform = handle.GetComponentUnsafe<scare2D.Transform2D>();
- _scare2D_dot_SpriteRendererSystem_dot_ItemGroup2_local.SpriteRenderer = handle.GetComponentUnsafe<scare2D.SpriteRenderer>();
- return;
- }
- else if(componentGroup is scare2D.NameRendererSystem.ItemGroup _scare2D_dot_NameRendererSystem_dot_ItemGroup_local) {
- _scare2D_dot_NameRendererSystem_dot_ItemGroup_local.handle = handle;
- _scare2D_dot_NameRendererSystem_dot_ItemGroup_local.entityName = handle.GetComponentUnsafe<scare2D.EntityName>();
- _scare2D_dot_NameRendererSystem_dot_ItemGroup_local.transform = handle.GetComponentUnsafe<scare2D.Transform>();
- return;
- }
- else if(componentGroup is scare2D.NameRendererSystem.ItemGroup2 _scare2D_dot_NameRendererSystem_dot_ItemGroup2_local) {
- _scare2D_dot_NameRendererSystem_dot_ItemGroup2_local.handle = handle;
- _scare2D_dot_NameRendererSystem_dot_ItemGroup2_local.entityName = handle.GetComponentUnsafe<scare2D.EntityName>();
- _scare2D_dot_NameRendererSystem_dot_ItemGroup2_local.transform = handle.GetComponentUnsafe<scare2D.Transform>();
- _scare2D_dot_NameRendererSystem_dot_ItemGroup2_local.collider = handle.GetComponentUnsafe<scare2D.BoxCollider>();
- return;
- }
- else if(componentGroup is scare2D.NameRendererSystem.ItemGroup3 _scare2D_dot_NameRendererSystem_dot_ItemGroup3_local) {
- _scare2D_dot_NameRendererSystem_dot_ItemGroup3_local.handle = handle;
- _scare2D_dot_NameRendererSystem_dot_ItemGroup3_local.transform = handle.GetComponentUnsafe<scare2D.Transform>();
- return;
- }
- else if(componentGroup is scare2D.BoxColliderRendererSystem.ItemGroup _scare2D_dot_BoxColliderRendererSystem_dot_ItemGroup_local) {
- _scare2D_dot_BoxColliderRendererSystem_dot_ItemGroup_local.transform = handle.GetComponentUnsafe<scare2D.Transform>();
- _scare2D_dot_BoxColliderRendererSystem_dot_ItemGroup_local.collider = handle.GetComponentUnsafe<scare2D.BoxCollider>();
- return;
- }
- else if(componentGroup is scare2D.TextureRotatorSystem.ItemGroup _scare2D_dot_TextureRotatorSystem_dot_ItemGroup_local) {
- _scare2D_dot_TextureRotatorSystem_dot_ItemGroup_local.SpriteRenderer = handle.GetComponentUnsafe<scare2D.SpriteRenderer>();
- _scare2D_dot_TextureRotatorSystem_dot_ItemGroup_local.TextureRotator = handle.GetComponentUnsafe<scare2D.TextureRotator>();
- return;
- }
- else if(componentGroup is scare2D.AutoLerpTransformEndFixedUpdateSystem.AutoLerpGroup _scare2D_dot_AutoLerpTransformEndFixedUpdateSystem_dot_AutoLerpGroup_local) {
- _scare2D_dot_AutoLerpTransformEndFixedUpdateSystem_dot_AutoLerpGroup_local.Transform = handle.GetComponentUnsafe<scare2D.Transform2D>();
- _scare2D_dot_AutoLerpTransformEndFixedUpdateSystem_dot_AutoLerpGroup_local.AutoLerp = handle.GetComponentUnsafe<scare2D.AutoLerpTransformComponent>();
- return;
- }
- else if(componentGroup is scare2D.RigidBody2DVelocityRendererSystem.ItemGroup _scare2D_dot_RigidBody2DVelocityRendererSystem_dot_ItemGroup_local) {
- _scare2D_dot_RigidBody2DVelocityRendererSystem_dot_ItemGroup_local.Transform = handle.GetComponentUnsafe<scare2D.Transform2D>();
- _scare2D_dot_RigidBody2DVelocityRendererSystem_dot_ItemGroup_local.RigidBody = handle.GetComponentUnsafe<scare2D.RigidBody2D>();
- return;
- }
- else if(componentGroup is scare2D.ReadOnlyGenericGroup<scare2D.Manifold2D> _scare2D_dot_ReadOnlyGenericGroup_scare2D_dot_Manifold2D__local) {
- _scare2D_dot_ReadOnlyGenericGroup_scare2D_dot_Manifold2D__local.Component = handle.GetComponentUnsafe<scare2D.Manifold2D>();
- return;
- }
- throw new NotSupportedException();
- }
- public void WriteComponentGroup<T>(EntityHandle handle, T componentGroup)
- where T : IComponentGroup
- {
- if(componentGroup is scare2D.AutoLerpTransformBeginFixedUpdateSystem.AddAutoLerpGroup _scare2D_dot_AutoLerpTransformBeginFixedUpdateSystem_dot_AddAutoLerpGroup_local) {
- handle.GetComponentUnsafe<scare2D.Transform2D>() = _scare2D_dot_AutoLerpTransformBeginFixedUpdateSystem_dot_AddAutoLerpGroup_local.Transform;
- return;
- }
- else if(componentGroup is scare2D.AutoLerpTransformBeginFixedUpdateSystem.AutoLerpGroup _scare2D_dot_AutoLerpTransformBeginFixedUpdateSystem_dot_AutoLerpGroup_local) {
- handle.GetComponentUnsafe<scare2D.Transform2D>() = _scare2D_dot_AutoLerpTransformBeginFixedUpdateSystem_dot_AutoLerpGroup_local.Transform;
- handle.GetComponentUnsafe<scare2D.AutoLerpTransformComponent>() = _scare2D_dot_AutoLerpTransformBeginFixedUpdateSystem_dot_AutoLerpGroup_local.AutoLerp;
- return;
- }
- else if(componentGroup is scare2D.AutoLerpTransformBeginDrawSystem.AutoLerpGroup _scare2D_dot_AutoLerpTransformBeginDrawSystem_dot_AutoLerpGroup_local) {
- handle.GetComponentUnsafe<scare2D.Transform2D>() = _scare2D_dot_AutoLerpTransformBeginDrawSystem_dot_AutoLerpGroup_local.Transform;
- handle.GetComponentUnsafe<scare2D.AutoLerpTransformComponent>() = _scare2D_dot_AutoLerpTransformBeginDrawSystem_dot_AutoLerpGroup_local.AutoLerp;
- return;
- }
- else if(componentGroup is scare2D.AutoSetDefaultTransformSystem.ItemGroup _scare2D_dot_AutoSetDefaultTransformSystem_dot_ItemGroup_local) {
- handle.GetComponentUnsafe<scare2D.Transform2D>() = _scare2D_dot_AutoSetDefaultTransformSystem_dot_ItemGroup_local.Transform;
- return;
- }
- else if(componentGroup is scare2D.PhysicsCleanupSystem.ItemGroup _scare2D_dot_PhysicsCleanupSystem_dot_ItemGroup_local) {
- handle.GetComponentUnsafe<scare2D.BroadPhasePair>() = _scare2D_dot_PhysicsCleanupSystem_dot_ItemGroup_local._;
- return;
- }
- else if(componentGroup is scare2D.PhysicsCleanupSystem.ItemGroup2 _scare2D_dot_PhysicsCleanupSystem_dot_ItemGroup2_local) {
- handle.GetComponentUnsafe<scare2D.Manifold2D>() = _scare2D_dot_PhysicsCleanupSystem_dot_ItemGroup2_local._;
- return;
- }
- else if(componentGroup is scare2D.BroadPhaseRendererSystem.ItemGroup _scare2D_dot_BroadPhaseRendererSystem_dot_ItemGroup_local) {
- handle.GetComponentUnsafe<scare2D.BroadPhasePair>() = _scare2D_dot_BroadPhaseRendererSystem_dot_ItemGroup_local.Pair;
- return;
- }
- else if(componentGroup is scare2D.PhysicsObject _scare2D_dot_PhysicsObject_local) {
- handle.GetComponentUnsafe<scare2D.Transform2D>() = _scare2D_dot_PhysicsObject_local.Transform;
- handle.GetComponentUnsafe<scare2D.RigidBody2D>() = _scare2D_dot_PhysicsObject_local.RigidBody;
- return;
- }
- else if(componentGroup is scare2D.NarrowPhaseSystem.ItemGroup _scare2D_dot_NarrowPhaseSystem_dot_ItemGroup_local) {
- handle.GetComponentUnsafe<scare2D.BroadPhasePair>() = _scare2D_dot_NarrowPhaseSystem_dot_ItemGroup_local.Pair;
- return;
- }
- else if(componentGroup is scare2D.CollisionResponseSystem.ItemGroup _scare2D_dot_CollisionResponseSystem_dot_ItemGroup_local) {
- handle.GetComponentUnsafe<scare2D.Manifold2D>() = _scare2D_dot_CollisionResponseSystem_dot_ItemGroup_local.Collision;
- return;
- }
- else if(componentGroup is scare2D.ParticleEmitterRenderer.ItemGroup _scare2D_dot_ParticleEmitterRenderer_dot_ItemGroup_local) {
- handle.GetComponentUnsafe<scare2D.Transform>() = _scare2D_dot_ParticleEmitterRenderer_dot_ItemGroup_local.transform;
- handle.GetComponentUnsafe<scare2D.ParticleEmitter>() = _scare2D_dot_ParticleEmitterRenderer_dot_ItemGroup_local.emitter;
- return;
- }
- else if(componentGroup is scare2D.SpawnerSystem.Group _scare2D_dot_SpawnerSystem_dot_Group_local) {
- handle.GetComponentUnsafe<scare2D.Transform>() = _scare2D_dot_SpawnerSystem_dot_Group_local.transform;
- handle.GetComponentUnsafe<scare2D.Spawner>() = _scare2D_dot_SpawnerSystem_dot_Group_local.spawner;
- return;
- }
- else if(componentGroup is scare2D.LifeTimeSystem.Group _scare2D_dot_LifeTimeSystem_dot_Group_local) {
- handle.GetComponentUnsafe<scare2D.LifeTime>() = _scare2D_dot_LifeTimeSystem_dot_Group_local.lifeTime;
- return;
- }
- else if(componentGroup is scare2D.PingPongSystem.PingPong _scare2D_dot_PingPongSystem_dot_PingPong_local) {
- handle.GetComponentUnsafe<scare2D.Transform>() = _scare2D_dot_PingPongSystem_dot_PingPong_local.transform;
- handle.GetComponentUnsafe<scare2D.BoxCollider>() = _scare2D_dot_PingPongSystem_dot_PingPong_local.collider;
- handle.GetComponentUnsafe<scare2D.PingPongComponent>() = _scare2D_dot_PingPongSystem_dot_PingPong_local.ball;
- return;
- }
- else if(componentGroup is scare2D.SpriteRendererSystem.ItemGroup _scare2D_dot_SpriteRendererSystem_dot_ItemGroup_local) {
- handle.GetComponentUnsafe<scare2D.Transform>() = _scare2D_dot_SpriteRendererSystem_dot_ItemGroup_local.transform;
- handle.GetComponentUnsafe<scare2D.BoxCollider>() = _scare2D_dot_SpriteRendererSystem_dot_ItemGroup_local.collider;
- handle.GetComponentUnsafe<scare2D.SpriteRenderer>() = _scare2D_dot_SpriteRendererSystem_dot_ItemGroup_local.renderer;
- return;
- }
- else if(componentGroup is scare2D.SpriteRendererSystem.ItemGroup2 _scare2D_dot_SpriteRendererSystem_dot_ItemGroup2_local) {
- handle.GetComponentUnsafe<scare2D.Transform2D>() = _scare2D_dot_SpriteRendererSystem_dot_ItemGroup2_local.Transform;
- handle.GetComponentUnsafe<scare2D.SpriteRenderer>() = _scare2D_dot_SpriteRendererSystem_dot_ItemGroup2_local.SpriteRenderer;
- return;
- }
- else if(componentGroup is scare2D.NameRendererSystem.ItemGroup _scare2D_dot_NameRendererSystem_dot_ItemGroup_local) {
- handle.GetComponentUnsafe<scare2D.EntityName>() = _scare2D_dot_NameRendererSystem_dot_ItemGroup_local.entityName;
- handle.GetComponentUnsafe<scare2D.Transform>() = _scare2D_dot_NameRendererSystem_dot_ItemGroup_local.transform;
- return;
- }
- else if(componentGroup is scare2D.NameRendererSystem.ItemGroup2 _scare2D_dot_NameRendererSystem_dot_ItemGroup2_local) {
- handle.GetComponentUnsafe<scare2D.EntityName>() = _scare2D_dot_NameRendererSystem_dot_ItemGroup2_local.entityName;
- handle.GetComponentUnsafe<scare2D.Transform>() = _scare2D_dot_NameRendererSystem_dot_ItemGroup2_local.transform;
- handle.GetComponentUnsafe<scare2D.BoxCollider>() = _scare2D_dot_NameRendererSystem_dot_ItemGroup2_local.collider;
- return;
- }
- else if(componentGroup is scare2D.NameRendererSystem.ItemGroup3 _scare2D_dot_NameRendererSystem_dot_ItemGroup3_local) {
- handle.GetComponentUnsafe<scare2D.Transform>() = _scare2D_dot_NameRendererSystem_dot_ItemGroup3_local.transform;
- return;
- }
- else if(componentGroup is scare2D.BoxColliderRendererSystem.ItemGroup _scare2D_dot_BoxColliderRendererSystem_dot_ItemGroup_local) {
- handle.GetComponentUnsafe<scare2D.Transform>() = _scare2D_dot_BoxColliderRendererSystem_dot_ItemGroup_local.transform;
- handle.GetComponentUnsafe<scare2D.BoxCollider>() = _scare2D_dot_BoxColliderRendererSystem_dot_ItemGroup_local.collider;
- return;
- }
- else if(componentGroup is scare2D.TextureRotatorSystem.ItemGroup _scare2D_dot_TextureRotatorSystem_dot_ItemGroup_local) {
- handle.GetComponentUnsafe<scare2D.SpriteRenderer>() = _scare2D_dot_TextureRotatorSystem_dot_ItemGroup_local.SpriteRenderer;
- handle.GetComponentUnsafe<scare2D.TextureRotator>() = _scare2D_dot_TextureRotatorSystem_dot_ItemGroup_local.TextureRotator;
- return;
- }
- else if(componentGroup is scare2D.AutoLerpTransformEndFixedUpdateSystem.AutoLerpGroup _scare2D_dot_AutoLerpTransformEndFixedUpdateSystem_dot_AutoLerpGroup_local) {
- handle.GetComponentUnsafe<scare2D.Transform2D>() = _scare2D_dot_AutoLerpTransformEndFixedUpdateSystem_dot_AutoLerpGroup_local.Transform;
- handle.GetComponentUnsafe<scare2D.AutoLerpTransformComponent>() = _scare2D_dot_AutoLerpTransformEndFixedUpdateSystem_dot_AutoLerpGroup_local.AutoLerp;
- return;
- }
- else if(componentGroup is scare2D.RigidBody2DVelocityRendererSystem.ItemGroup _scare2D_dot_RigidBody2DVelocityRendererSystem_dot_ItemGroup_local) {
- handle.GetComponentUnsafe<scare2D.Transform2D>() = _scare2D_dot_RigidBody2DVelocityRendererSystem_dot_ItemGroup_local.Transform;
- handle.GetComponentUnsafe<scare2D.RigidBody2D>() = _scare2D_dot_RigidBody2DVelocityRendererSystem_dot_ItemGroup_local.RigidBody;
- return;
- }
- else if(componentGroup is scare2D.ReadOnlyGenericGroup<scare2D.Manifold2D> _scare2D_dot_ReadOnlyGenericGroup_scare2D_dot_Manifold2D__local) {
- handle.GetComponentUnsafe<scare2D.Manifold2D>() = _scare2D_dot_ReadOnlyGenericGroup_scare2D_dot_Manifold2D__local.Component;
- return;
- }
- throw new NotSupportedException();
- }
- public void FixedUpdate() {
- if(_scare2D_dot_AutoLerpTransformBeginFixedUpdateSystem_enabled) {
- _scare2D_dot_AutoLerpTransformBeginFixedUpdateSystem_null.FixedUpdate();
- }
- if(_scare2D_dot_AutoSetDefaultTransformSystem_enabled) {
- _scare2D_dot_AutoSetDefaultTransformSystem_null.FixedUpdate();
- }
- if(_scare2D_dot_PhysicsCleanupSystem_enabled) {
- _scare2D_dot_PhysicsCleanupSystem_null.FixedUpdate();
- }
- if(_scare2D_dot_BroadPhaseSystem_enabled) {
- _scare2D_dot_BroadPhaseSystem_null.FixedUpdate();
- }
- if(_scare2D_dot_NarrowPhaseSystem_enabled) {
- _scare2D_dot_NarrowPhaseSystem_null.FixedUpdate();
- }
- if(_scare2D_dot_CollisionResponseSystem_enabled) {
- _scare2D_dot_CollisionResponseSystem_null.FixedUpdate();
- }
- if(_scare2D_dot_RigidBody2DSystem_enabled) {
- _scare2D_dot_RigidBody2DSystem_null.FixedUpdate(_System_dot_Single_fixedTime, _scare2D_dot_float2_gravity);
- }
- if(_scare2D_dot_AutoLerpTransformEndFixedUpdateSystem_enabled) {
- _scare2D_dot_AutoLerpTransformEndFixedUpdateSystem_null.FixedUpdate();
- }
- }
- public void Update() {
- if(_scare2D_dot_AutoSetDefaultTransformSystem_enabled) {
- _scare2D_dot_AutoSetDefaultTransformSystem_null.Update();
- }
- if(_scare2D_dot_ParticleEmitterRenderer_enabled) {
- _scare2D_dot_ParticleEmitterRenderer_null.Update(_System_dot_Single_deltaTime, _Microsoft_dot_Xna_dot_Framework_dot_Graphics_dot_GraphicsDevice_null);
- }
- if(_scare2D_dot_SpawnerSystem_enabled) {
- _scare2D_dot_SpawnerSystem_null.Update(_System_dot_Single_deltaTime);
- }
- if(_scare2D_dot_LifeTimeSystem_enabled) {
- _scare2D_dot_LifeTimeSystem_null.Update(_System_dot_Single_deltaTime);
- }
- if(_scare2D_dot_PingPongSystem_enabled) {
- _scare2D_dot_PingPongSystem_null.Update(_scare2D_dot_float4_rect, _System_dot_Single_deltaTime);
- }
- if(_scare2D_dot_TextureRotatorSystem_enabled) {
- _scare2D_dot_TextureRotatorSystem_null.Update(_System_dot_Single_deltaTime);
- }
- }
- public void Draw() {
- if(_scare2D_dot_AutoLerpTransformBeginDrawSystem_enabled) {
- _scare2D_dot_AutoLerpTransformBeginDrawSystem_null.Draw(_System_dot_Single_alpha);
- }
- if(_scare2D_dot_BroadPhaseRendererSystem_enabled) {
- _scare2D_dot_BroadPhaseRendererSystem_null.Draw(_scare2D_dot_IPrimitiveBatch_null, _scare2D_dot_Camera2D_null);
- }
- if(_scare2D_dot_ParticleEmitterRenderer_enabled) {
- _scare2D_dot_ParticleEmitterRenderer_null.Draw(_Microsoft_dot_Xna_dot_Framework_dot_Graphics_dot_GraphicsDevice_null, _scare2D_dot_Camera2D_null);
- }
- if(_scare2D_dot_SpriteRendererSystem_enabled) {
- _scare2D_dot_SpriteRendererSystem_null.Draw(_Microsoft_dot_Xna_dot_Framework_dot_Graphics_dot_SpriteBatch_null, _scare2D_dot_Camera2D_null);
- }
- if(_scare2D_dot_NameRendererSystem_enabled) {
- _scare2D_dot_NameRendererSystem_null.Draw(_Microsoft_dot_Xna_dot_Framework_dot_Graphics_dot_SpriteBatch_null, _Microsoft_dot_Xna_dot_Framework_dot_Graphics_dot_SpriteFont_null, _scare2D_dot_Camera2D_null);
- }
- if(_scare2D_dot_BoxColliderRendererSystem_enabled) {
- _scare2D_dot_BoxColliderRendererSystem_null.Draw(_scare2D_dot_IPrimitiveBatch_null, _scare2D_dot_Camera2D_null);
- }
- if(_scare2D_dot_RigidBody2DColliderRendererSystem_enabled) {
- _scare2D_dot_RigidBody2DColliderRendererSystem_null.Draw(_scare2D_dot_IPrimitiveBatch_null, _scare2D_dot_Camera2D_null);
- }
- if(_scare2D_dot_RigidBody2DVelocityRendererSystem_enabled) {
- _scare2D_dot_RigidBody2DVelocityRendererSystem_null.Draw(_scare2D_dot_IPrimitiveBatch_null, _scare2D_dot_Camera2D_null, _System_dot_Single_fixedTime);
- }
- if(_scare2D_dot_Manifold2DRendererSystem_enabled) {
- _scare2D_dot_Manifold2DRendererSystem_null.Draw(_scare2D_dot_IPrimitiveBatch_null, _scare2D_dot_Camera2D_null);
- }
- }
- }
- public sealed class _scare2D_dot_AutoLerpTransformBeginFixedUpdateSystem_dot_AddAutoLerpGroup_Collection : IComponentCollection<scare2D.AutoLerpTransformBeginFixedUpdateSystem.AddAutoLerpGroup> {
- public sealed class _scare2D_dot_AutoLerpTransformBeginFixedUpdateSystem_dot_AddAutoLerpGroup_Enumerator : IRefEnumerator<scare2D.AutoLerpTransformBeginFixedUpdateSystem.AddAutoLerpGroup> {
- private _scare2D_dot_AutoLerpTransformBeginFixedUpdateSystem_dot_AddAutoLerpGroup_Collection collection;
- private scare2D.AutoLerpTransformBeginFixedUpdateSystem.AddAutoLerpGroup currentValue = new scare2D.AutoLerpTransformBeginFixedUpdateSystem.AddAutoLerpGroup();
- private IEnumerator<bool> moveNextEnumerator;
- public _scare2D_dot_AutoLerpTransformBeginFixedUpdateSystem_dot_AddAutoLerpGroup_Enumerator(_scare2D_dot_AutoLerpTransformBeginFixedUpdateSystem_dot_AddAutoLerpGroup_Collection collection) {
- this.collection = collection;
- }
- public ref scare2D.AutoLerpTransformBeginFixedUpdateSystem.AddAutoLerpGroup Current => ref currentValue;
- public bool MoveNext() {
- if(moveNextEnumerator == null) {
- moveNextEnumerator = MoveNextInternal();
- }
- return moveNextEnumerator.MoveNext();
- }
- public IEnumerator<bool> MoveNextInternal() {
- foreach(var setType in collection.EntityWorld.Entities.Components) {
- bool keepSetType = setType.TypeSet.IsSupersetOf(collection.Includes) && setType.TypeSet.GetIntersection(collection.Excludes).IsEmpty;
- if(keepSetType == false) continue;
- foreach(var set in setType) {
- var refList__scare2D_dot_EntityHandle_null = set.GetRefList<scare2D.EntityHandle>();
- var refList__scare2D_dot_Transform2D_null = set.GetRefList<scare2D.Transform2D>();
- for(var i = 0; i < set.Handles.Count; ++i) {
- currentValue.Handle = refList__scare2D_dot_EntityHandle_null[i];
- currentValue.Transform = refList__scare2D_dot_Transform2D_null[i];
- yield return true;
- }
- }
- }
- }
- }
- public sealed class _scare2D_dot_AutoLerpTransformBeginFixedUpdateSystem_dot_AddAutoLerpGroup_Enumerator_ReadOnlyFilter : IRefEnumerator<scare2D.AutoLerpTransformBeginFixedUpdateSystem.AddAutoLerpGroup> {
- private Func<SharedDataType, bool> filter;
- private _scare2D_dot_AutoLerpTransformBeginFixedUpdateSystem_dot_AddAutoLerpGroup_Collection collection;
- private scare2D.AutoLerpTransformBeginFixedUpdateSystem.AddAutoLerpGroup currentValue = new scare2D.AutoLerpTransformBeginFixedUpdateSystem.AddAutoLerpGroup();
- private IEnumerator<bool> moveNextEnumerator;
- public _scare2D_dot_AutoLerpTransformBeginFixedUpdateSystem_dot_AddAutoLerpGroup_Enumerator_ReadOnlyFilter(_scare2D_dot_AutoLerpTransformBeginFixedUpdateSystem_dot_AddAutoLerpGroup_Collection collection, Func<SharedDataType, bool> filter) {
- this.collection = collection;
- this.filter = filter;
- }
- public ref scare2D.AutoLerpTransformBeginFixedUpdateSystem.AddAutoLerpGroup Current => ref currentValue;
- public bool MoveNext() {
- if(moveNextEnumerator == null) {
- moveNextEnumerator = MoveNextInternal();
- }
- return moveNextEnumerator.MoveNext();
- }
- public IEnumerator<bool> MoveNextInternal() {
- foreach(var setType in collection.EntityWorld.Entities.Components) {
- bool keepSetType = setType.TypeSet.IsSupersetOf(collection.Includes) && setType.TypeSet.GetIntersection(collection.Excludes).IsEmpty;
- if(keepSetType == false) continue;
- foreach(var set in setType) {
- if(filter(set.SharedDataType) == false) continue;
- var refList__scare2D_dot_EntityHandle_null = set.GetRefList<scare2D.EntityHandle>();
- var refList__scare2D_dot_Transform2D_null = set.GetRefList<scare2D.Transform2D>();
- for(var i = 0; i < set.Handles.Count; ++i) {
- currentValue.Handle = refList__scare2D_dot_EntityHandle_null[i];
- currentValue.Transform = refList__scare2D_dot_Transform2D_null[i];
- yield return true;
- }
- }
- }
- }
- }
- public scare2D.AutoLerpTransformBeginFixedUpdateSystem System => EntityWorld._scare2D_dot_AutoLerpTransformBeginFixedUpdateSystem_null;
- public EntityWorld EntityWorld { get; }
- public TypeSet Includes { get; }
- public TypeSet Excludes { get; }
- public IEntityWorld World => EntityWorld;
- public _scare2D_dot_AutoLerpTransformBeginFixedUpdateSystem_dot_AddAutoLerpGroup_Collection(EntityWorld world) {
- EntityWorld = world;
- Includes = new TypeSet(typeof(scare2D.Transform2D));
- Excludes = new TypeSet(typeof(scare2D.AutoLerpTransformComponent));
- }
- public IRefEnumerator<scare2D.AutoLerpTransformBeginFixedUpdateSystem.AddAutoLerpGroup> GetEnumerator() => new _scare2D_dot_AutoLerpTransformBeginFixedUpdateSystem_dot_AddAutoLerpGroup_Enumerator(this);
- public IRefEnumerable<scare2D.AutoLerpTransformBeginFixedUpdateSystem.AddAutoLerpGroup> WithFilter(Func<SharedDataType, bool> filter) => new RefEnumeratorWrapper<scare2D.AutoLerpTransformBeginFixedUpdateSystem.AddAutoLerpGroup>(new _scare2D_dot_AutoLerpTransformBeginFixedUpdateSystem_dot_AddAutoLerpGroup_Enumerator_ReadOnlyFilter(this, filter));
- }
- public sealed class _scare2D_dot_AutoLerpTransformBeginFixedUpdateSystem_dot_AutoLerpGroup_Collection : IComponentCollection<scare2D.AutoLerpTransformBeginFixedUpdateSystem.AutoLerpGroup> {
- public sealed class _scare2D_dot_AutoLerpTransformBeginFixedUpdateSystem_dot_AutoLerpGroup_Enumerator : IRefEnumerator<scare2D.AutoLerpTransformBeginFixedUpdateSystem.AutoLerpGroup> {
- private _scare2D_dot_AutoLerpTransformBeginFixedUpdateSystem_dot_AutoLerpGroup_Collection collection;
- private scare2D.AutoLerpTransformBeginFixedUpdateSystem.AutoLerpGroup currentValue = new scare2D.AutoLerpTransformBeginFixedUpdateSystem.AutoLerpGroup();
- private IEnumerator<bool> moveNextEnumerator;
- public _scare2D_dot_AutoLerpTransformBeginFixedUpdateSystem_dot_AutoLerpGroup_Enumerator(_scare2D_dot_AutoLerpTransformBeginFixedUpdateSystem_dot_AutoLerpGroup_Collection collection) {
- this.collection = collection;
- }
- public ref scare2D.AutoLerpTransformBeginFixedUpdateSystem.AutoLerpGroup Current => ref currentValue;
- public bool MoveNext() {
- if(moveNextEnumerator == null) {
- moveNextEnumerator = MoveNextInternal();
- }
- return moveNextEnumerator.MoveNext();
- }
- public IEnumerator<bool> MoveNextInternal() {
- foreach(var setType in collection.EntityWorld.Entities.Components) {
- bool keepSetType = setType.TypeSet.IsSupersetOf(collection.Includes);
- if(keepSetType == false) continue;
- foreach(var set in setType) {
- var refList__scare2D_dot_Transform2D_null = set.GetRefList<scare2D.Transform2D>();
- var refList__scare2D_dot_AutoLerpTransformComponent_null = set.GetRefList<scare2D.AutoLerpTransformComponent>();
- for(var i = 0; i < set.Handles.Count; ++i) {
- currentValue.Transform = refList__scare2D_dot_Transform2D_null[i];
- currentValue.AutoLerp = refList__scare2D_dot_AutoLerpTransformComponent_null[i];
- yield return true;
- refList__scare2D_dot_Transform2D_null[i] = currentValue.Transform;
- refList__scare2D_dot_AutoLerpTransformComponent_null[i] = currentValue.AutoLerp;
- }
- }
- }
- }
- }
- public sealed class _scare2D_dot_AutoLerpTransformBeginFixedUpdateSystem_dot_AutoLerpGroup_Enumerator_ReadOnlyFilter : IRefEnumerator<scare2D.AutoLerpTransformBeginFixedUpdateSystem.AutoLerpGroup> {
- private Func<SharedDataType, bool> filter;
- private _scare2D_dot_AutoLerpTransformBeginFixedUpdateSystem_dot_AutoLerpGroup_Collection collection;
- private scare2D.AutoLerpTransformBeginFixedUpdateSystem.AutoLerpGroup currentValue = new scare2D.AutoLerpTransformBeginFixedUpdateSystem.AutoLerpGroup();
- private IEnumerator<bool> moveNextEnumerator;
- public _scare2D_dot_AutoLerpTransformBeginFixedUpdateSystem_dot_AutoLerpGroup_Enumerator_ReadOnlyFilter(_scare2D_dot_AutoLerpTransformBeginFixedUpdateSystem_dot_AutoLerpGroup_Collection collection, Func<SharedDataType, bool> filter) {
- this.collection = collection;
- this.filter = filter;
- }
- public ref scare2D.AutoLerpTransformBeginFixedUpdateSystem.AutoLerpGroup Current => ref currentValue;
- public bool MoveNext() {
- if(moveNextEnumerator == null) {
- moveNextEnumerator = MoveNextInternal();
- }
- return moveNextEnumerator.MoveNext();
- }
- public IEnumerator<bool> MoveNextInternal() {
- foreach(var setType in collection.EntityWorld.Entities.Components) {
- bool keepSetType = setType.TypeSet.IsSupersetOf(collection.Includes);
- if(keepSetType == false) continue;
- foreach(var set in setType) {
- if(filter(set.SharedDataType) == false) continue;
- var refList__scare2D_dot_Transform2D_null = set.GetRefList<scare2D.Transform2D>();
- var refList__scare2D_dot_AutoLerpTransformComponent_null = set.GetRefList<scare2D.AutoLerpTransformComponent>();
- for(var i = 0; i < set.Handles.Count; ++i) {
- currentValue.Transform = refList__scare2D_dot_Transform2D_null[i];
- currentValue.AutoLerp = refList__scare2D_dot_AutoLerpTransformComponent_null[i];
- yield return true;
- }
- }
- }
- }
- }
- public scare2D.AutoLerpTransformBeginFixedUpdateSystem System => EntityWorld._scare2D_dot_AutoLerpTransformBeginFixedUpdateSystem_null;
- public EntityWorld EntityWorld { get; }
- public TypeSet Includes { get; }
- public TypeSet Excludes { get; }
- public IEntityWorld World => EntityWorld;
- public _scare2D_dot_AutoLerpTransformBeginFixedUpdateSystem_dot_AutoLerpGroup_Collection(EntityWorld world) {
- EntityWorld = world;
- Includes = new TypeSet(typeof(scare2D.Transform2D), typeof(scare2D.AutoLerpTransformComponent));
- Excludes = new TypeSet();
- }
- public IRefEnumerator<scare2D.AutoLerpTransformBeginFixedUpdateSystem.AutoLerpGroup> GetEnumerator() => new _scare2D_dot_AutoLerpTransformBeginFixedUpdateSystem_dot_AutoLerpGroup_Enumerator(this);
- public IRefEnumerable<scare2D.AutoLerpTransformBeginFixedUpdateSystem.AutoLerpGroup> WithFilter(Func<SharedDataType, bool> filter) => new RefEnumeratorWrapper<scare2D.AutoLerpTransformBeginFixedUpdateSystem.AutoLerpGroup>(new _scare2D_dot_AutoLerpTransformBeginFixedUpdateSystem_dot_AutoLerpGroup_Enumerator_ReadOnlyFilter(this, filter));
- }
- public sealed class _scare2D_dot_AutoLerpTransformBeginDrawSystem_dot_AutoLerpGroup_Collection : IComponentCollection<scare2D.AutoLerpTransformBeginDrawSystem.AutoLerpGroup> {
- public sealed class _scare2D_dot_AutoLerpTransformBeginDrawSystem_dot_AutoLerpGroup_Enumerator : IRefEnumerator<scare2D.AutoLerpTransformBeginDrawSystem.AutoLerpGroup> {
- private _scare2D_dot_AutoLerpTransformBeginDrawSystem_dot_AutoLerpGroup_Collection collection;
- private scare2D.AutoLerpTransformBeginDrawSystem.AutoLerpGroup currentValue = new scare2D.AutoLerpTransformBeginDrawSystem.AutoLerpGroup();
- private IEnumerator<bool> moveNextEnumerator;
- public _scare2D_dot_AutoLerpTransformBeginDrawSystem_dot_AutoLerpGroup_Enumerator(_scare2D_dot_AutoLerpTransformBeginDrawSystem_dot_AutoLerpGroup_Collection collection) {
- this.collection = collection;
- }
- public ref scare2D.AutoLerpTransformBeginDrawSystem.AutoLerpGroup Current => ref currentValue;
- public bool MoveNext() {
- if(moveNextEnumerator == null) {
- moveNextEnumerator = MoveNextInternal();
- }
- return moveNextEnumerator.MoveNext();
- }
- public IEnumerator<bool> MoveNextInternal() {
- foreach(var setType in collection.EntityWorld.Entities.Components) {
- bool keepSetType = setType.TypeSet.IsSupersetOf(collection.Includes);
- if(keepSetType == false) continue;
- foreach(var set in setType) {
- var refList__scare2D_dot_Transform2D_null = set.GetRefList<scare2D.Transform2D>();
- var refList__scare2D_dot_AutoLerpTransformComponent_null = set.GetRefList<scare2D.AutoLerpTransformComponent>();
- for(var i = 0; i < set.Handles.Count; ++i) {
- currentValue.Transform = refList__scare2D_dot_Transform2D_null[i];
- currentValue.AutoLerp = refList__scare2D_dot_AutoLerpTransformComponent_null[i];
- yield return true;
- refList__scare2D_dot_Transform2D_null[i] = currentValue.Transform;
- refList__scare2D_dot_AutoLerpTransformComponent_null[i] = currentValue.AutoLerp;
- }
- }
- }
- }
- }
- public sealed class _scare2D_dot_AutoLerpTransformBeginDrawSystem_dot_AutoLerpGroup_Enumerator_ReadOnlyFilter : IRefEnumerator<scare2D.AutoLerpTransformBeginDrawSystem.AutoLerpGroup> {
- private Func<SharedDataType, bool> filter;
- private _scare2D_dot_AutoLerpTransformBeginDrawSystem_dot_AutoLerpGroup_Collection collection;
- private scare2D.AutoLerpTransformBeginDrawSystem.AutoLerpGroup currentValue = new scare2D.AutoLerpTransformBeginDrawSystem.AutoLerpGroup();
- private IEnumerator<bool> moveNextEnumerator;
- public _scare2D_dot_AutoLerpTransformBeginDrawSystem_dot_AutoLerpGroup_Enumerator_ReadOnlyFilter(_scare2D_dot_AutoLerpTransformBeginDrawSystem_dot_AutoLerpGroup_Collection collection, Func<SharedDataType, bool> filter) {
- this.collection = collection;
- this.filter = filter;
- }
- public ref scare2D.AutoLerpTransformBeginDrawSystem.AutoLerpGroup Current => ref currentValue;
- public bool MoveNext() {
- if(moveNextEnumerator == null) {
- moveNextEnumerator = MoveNextInternal();
- }
- return moveNextEnumerator.MoveNext();
- }
- public IEnumerator<bool> MoveNextInternal() {
- foreach(var setType in collection.EntityWorld.Entities.Components) {
- bool keepSetType = setType.TypeSet.IsSupersetOf(collection.Includes);
- if(keepSetType == false) continue;
- foreach(var set in setType) {
- if(filter(set.SharedDataType) == false) continue;
- var refList__scare2D_dot_Transform2D_null = set.GetRefList<scare2D.Transform2D>();
- var refList__scare2D_dot_AutoLerpTransformComponent_null = set.GetRefList<scare2D.AutoLerpTransformComponent>();
- for(var i = 0; i < set.Handles.Count; ++i) {
- currentValue.Transform = refList__scare2D_dot_Transform2D_null[i];
- currentValue.AutoLerp = refList__scare2D_dot_AutoLerpTransformComponent_null[i];
- yield return true;
- }
- }
- }
- }
- }
- public scare2D.AutoLerpTransformBeginDrawSystem System => EntityWorld._scare2D_dot_AutoLerpTransformBeginDrawSystem_null;
- public EntityWorld EntityWorld { get; }
- public TypeSet Includes { get; }
- public TypeSet Excludes { get; }
- public IEntityWorld World => EntityWorld;
- public _scare2D_dot_AutoLerpTransformBeginDrawSystem_dot_AutoLerpGroup_Collection(EntityWorld world) {
- EntityWorld = world;
- Includes = new TypeSet(typeof(scare2D.Transform2D), typeof(scare2D.AutoLerpTransformComponent));
- Excludes = new TypeSet();
- }
- public IRefEnumerator<scare2D.AutoLerpTransformBeginDrawSystem.AutoLerpGroup> GetEnumerator() => new _scare2D_dot_AutoLerpTransformBeginDrawSystem_dot_AutoLerpGroup_Enumerator(this);
- public IRefEnumerable<scare2D.AutoLerpTransformBeginDrawSystem.AutoLerpGroup> WithFilter(Func<SharedDataType, bool> filter) => new RefEnumeratorWrapper<scare2D.AutoLerpTransformBeginDrawSystem.AutoLerpGroup>(new _scare2D_dot_AutoLerpTransformBeginDrawSystem_dot_AutoLerpGroup_Enumerator_ReadOnlyFilter(this, filter));
- }
- public sealed class _scare2D_dot_AutoSetDefaultTransformSystem_dot_ItemGroup_Collection : IComponentCollection<scare2D.AutoSetDefaultTransformSystem.ItemGroup> {
- public sealed class _scare2D_dot_AutoSetDefaultTransformSystem_dot_ItemGroup_Enumerator : IRefEnumerator<scare2D.AutoSetDefaultTransformSystem.ItemGroup> {
- private _scare2D_dot_AutoSetDefaultTransformSystem_dot_ItemGroup_Collection collection;
- private scare2D.AutoSetDefaultTransformSystem.ItemGroup currentValue = new scare2D.AutoSetDefaultTransformSystem.ItemGroup();
- private IEnumerator<bool> moveNextEnumerator;
- public _scare2D_dot_AutoSetDefaultTransformSystem_dot_ItemGroup_Enumerator(_scare2D_dot_AutoSetDefaultTransformSystem_dot_ItemGroup_Collection collection) {
- this.collection = collection;
- }
- public ref scare2D.AutoSetDefaultTransformSystem.ItemGroup Current => ref currentValue;
- public bool MoveNext() {
- if(moveNextEnumerator == null) {
- moveNextEnumerator = MoveNextInternal();
- }
- return moveNextEnumerator.MoveNext();
- }
- public IEnumerator<bool> MoveNextInternal() {
- foreach(var setType in collection.EntityWorld.Entities.Components) {
- bool keepSetType = setType.TypeSet.IsSupersetOf(collection.Includes);
- if(keepSetType == false) continue;
- foreach(var set in setType) {
- var refList__scare2D_dot_Transform2D_null = set.GetRefList<scare2D.Transform2D>();
- for(var i = 0; i < set.Handles.Count; ++i) {
- currentValue.Transform = refList__scare2D_dot_Transform2D_null[i];
- yield return true;
- refList__scare2D_dot_Transform2D_null[i] = currentValue.Transform;
- }
- }
- }
- }
- }
- public sealed class _scare2D_dot_AutoSetDefaultTransformSystem_dot_ItemGroup_Enumerator_ReadOnlyFilter : IRefEnumerator<scare2D.AutoSetDefaultTransformSystem.ItemGroup> {
- private Func<SharedDataType, bool> filter;
- private _scare2D_dot_AutoSetDefaultTransformSystem_dot_ItemGroup_Collection collection;
- private scare2D.AutoSetDefaultTransformSystem.ItemGroup currentValue = new scare2D.AutoSetDefaultTransformSystem.ItemGroup();
- private IEnumerator<bool> moveNextEnumerator;
- public _scare2D_dot_AutoSetDefaultTransformSystem_dot_ItemGroup_Enumerator_ReadOnlyFilter(_scare2D_dot_AutoSetDefaultTransformSystem_dot_ItemGroup_Collection collection, Func<SharedDataType, bool> filter) {
- this.collection = collection;
- this.filter = filter;
- }
- public ref scare2D.AutoSetDefaultTransformSystem.ItemGroup Current => ref currentValue;
- public bool MoveNext() {
- if(moveNextEnumerator == null) {
- moveNextEnumerator = MoveNextInternal();
- }
- return moveNextEnumerator.MoveNext();
- }
- public IEnumerator<bool> MoveNextInternal() {
- foreach(var setType in collection.EntityWorld.Entities.Components) {
- bool keepSetType = setType.TypeSet.IsSupersetOf(collection.Includes);
- if(keepSetType == false) continue;
- foreach(var set in setType) {
- if(filter(set.SharedDataType) == false) continue;
- var refList__scare2D_dot_Transform2D_null = set.GetRefList<scare2D.Transform2D>();
- for(var i = 0; i < set.Handles.Count; ++i) {
- currentValue.Transform = refList__scare2D_dot_Transform2D_null[i];
- yield return true;
- }
- }
- }
- }
- }
- public scare2D.AutoSetDefaultTransformSystem System => EntityWorld._scare2D_dot_AutoSetDefaultTransformSystem_null;
- public EntityWorld EntityWorld { get; }
- public TypeSet Includes { get; }
- public TypeSet Excludes { get; }
- public IEntityWorld World => EntityWorld;
- public _scare2D_dot_AutoSetDefaultTransformSystem_dot_ItemGroup_Collection(EntityWorld world) {
- EntityWorld = world;
- Includes = new TypeSet(typeof(scare2D.Transform2D));
- Excludes = new TypeSet();
- }
- public IRefEnumerator<scare2D.AutoSetDefaultTransformSystem.ItemGroup> GetEnumerator() => new _scare2D_dot_AutoSetDefaultTransformSystem_dot_ItemGroup_Enumerator(this);
- public IRefEnumerable<scare2D.AutoSetDefaultTransformSystem.ItemGroup> WithFilter(Func<SharedDataType, bool> filter) => new RefEnumeratorWrapper<scare2D.AutoSetDefaultTransformSystem.ItemGroup>(new _scare2D_dot_AutoSetDefaultTransformSystem_dot_ItemGroup_Enumerator_ReadOnlyFilter(this, filter));
- }
- public sealed class _scare2D_dot_PhysicsCleanupSystem_dot_ItemGroup_Collection : IComponentCollection<scare2D.PhysicsCleanupSystem.ItemGroup> {
- public sealed class _scare2D_dot_PhysicsCleanupSystem_dot_ItemGroup_Enumerator : IRefEnumerator<scare2D.PhysicsCleanupSystem.ItemGroup> {
- private _scare2D_dot_PhysicsCleanupSystem_dot_ItemGroup_Collection collection;
- private scare2D.PhysicsCleanupSystem.ItemGroup currentValue = new scare2D.PhysicsCleanupSystem.ItemGroup();
- private IEnumerator<bool> moveNextEnumerator;
- public _scare2D_dot_PhysicsCleanupSystem_dot_ItemGroup_Enumerator(_scare2D_dot_PhysicsCleanupSystem_dot_ItemGroup_Collection collection) {
- this.collection = collection;
- }
- public ref scare2D.PhysicsCleanupSystem.ItemGroup Current => ref currentValue;
- public bool MoveNext() {
- if(moveNextEnumerator == null) {
- moveNextEnumerator = MoveNextInternal();
- }
- return moveNextEnumerator.MoveNext();
- }
- public IEnumerator<bool> MoveNextInternal() {
- foreach(var setType in collection.EntityWorld.Entities.Components) {
- bool keepSetType = setType.TypeSet.IsSupersetOf(collection.Includes);
- if(keepSetType == false) continue;
- foreach(var set in setType) {
- var refList__scare2D_dot_EntityHandle_null = set.GetRefList<scare2D.EntityHandle>();
- var refList__scare2D_dot_BroadPhasePair_null = set.GetRefList<scare2D.BroadPhasePair>();
- for(var i = 0; i < set.Handles.Count; ++i) {
- currentValue.Handle = refList__scare2D_dot_EntityHandle_null[i];
- currentValue._ = refList__scare2D_dot_BroadPhasePair_null[i];
- yield return true;
- }
- }
- }
- }
- }
- public sealed class _scare2D_dot_PhysicsCleanupSystem_dot_ItemGroup_Enumerator_ReadOnlyFilter : IRefEnumerator<scare2D.PhysicsCleanupSystem.ItemGroup> {
- private Func<SharedDataType, bool> filter;
- private _scare2D_dot_PhysicsCleanupSystem_dot_ItemGroup_Collection collection;
- private scare2D.PhysicsCleanupSystem.ItemGroup currentValue = new scare2D.PhysicsCleanupSystem.ItemGroup();
- private IEnumerator<bool> moveNextEnumerator;
- public _scare2D_dot_PhysicsCleanupSystem_dot_ItemGroup_Enumerator_ReadOnlyFilter(_scare2D_dot_PhysicsCleanupSystem_dot_ItemGroup_Collection collection, Func<SharedDataType, bool> filter) {
- this.collection = collection;
- this.filter = filter;
- }
- public ref scare2D.PhysicsCleanupSystem.ItemGroup Current => ref currentValue;
- public bool MoveNext() {
- if(moveNextEnumerator == null) {
- moveNextEnumerator = MoveNextInternal();
- }
- return moveNextEnumerator.MoveNext();
- }
- public IEnumerator<bool> MoveNextInternal() {
- foreach(var setType in collection.EntityWorld.Entities.Components) {
- bool keepSetType = setType.TypeSet.IsSupersetOf(collection.Includes);
- if(keepSetType == false) continue;
- foreach(var set in setType) {
- if(filter(set.SharedDataType) == false) continue;
- var refList__scare2D_dot_EntityHandle_null = set.GetRefList<scare2D.EntityHandle>();
- var refList__scare2D_dot_BroadPhasePair_null = set.GetRefList<scare2D.BroadPhasePair>();
- for(var i = 0; i < set.Handles.Count; ++i) {
- currentValue.Handle = refList__scare2D_dot_EntityHandle_null[i];
- currentValue._ = refList__scare2D_dot_BroadPhasePair_null[i];
- yield return true;
- }
- }
- }
- }
- }
- public scare2D.PhysicsCleanupSystem System => EntityWorld._scare2D_dot_PhysicsCleanupSystem_null;
- public EntityWorld EntityWorld { get; }
- public TypeSet Includes { get; }
- public TypeSet Excludes { get; }
- public IEntityWorld World => EntityWorld;
- public _scare2D_dot_PhysicsCleanupSystem_dot_ItemGroup_Collection(EntityWorld world) {
- EntityWorld = world;
- Includes = new TypeSet(typeof(scare2D.BroadPhasePair));
- Excludes = new TypeSet();
- }
- public IRefEnumerator<scare2D.PhysicsCleanupSystem.ItemGroup> GetEnumerator() => new _scare2D_dot_PhysicsCleanupSystem_dot_ItemGroup_Enumerator(this);
- public IRefEnumerable<scare2D.PhysicsCleanupSystem.ItemGroup> WithFilter(Func<SharedDataType, bool> filter) => new RefEnumeratorWrapper<scare2D.PhysicsCleanupSystem.ItemGroup>(new _scare2D_dot_PhysicsCleanupSystem_dot_ItemGroup_Enumerator_ReadOnlyFilter(this, filter));
- }
- public sealed class _scare2D_dot_PhysicsCleanupSystem_dot_ItemGroup2_Collection : IComponentCollection<scare2D.PhysicsCleanupSystem.ItemGroup2> {
- public sealed class _scare2D_dot_PhysicsCleanupSystem_dot_ItemGroup2_Enumerator : IRefEnumerator<scare2D.PhysicsCleanupSystem.ItemGroup2> {
- private _scare2D_dot_PhysicsCleanupSystem_dot_ItemGroup2_Collection collection;
- private scare2D.PhysicsCleanupSystem.ItemGroup2 currentValue = new scare2D.PhysicsCleanupSystem.ItemGroup2();
- private IEnumerator<bool> moveNextEnumerator;
- public _scare2D_dot_PhysicsCleanupSystem_dot_ItemGroup2_Enumerator(_scare2D_dot_PhysicsCleanupSystem_dot_ItemGroup2_Collection collection) {
- this.collection = collection;
- }
- public ref scare2D.PhysicsCleanupSystem.ItemGroup2 Current => ref currentValue;
- public bool MoveNext() {
- if(moveNextEnumerator == null) {
- moveNextEnumerator = MoveNextInternal();
- }
- return moveNextEnumerator.MoveNext();
- }
- public IEnumerator<bool> MoveNextInternal() {
- foreach(var setType in collection.EntityWorld.Entities.Components) {
- bool keepSetType = setType.TypeSet.IsSupersetOf(collection.Includes);
- if(keepSetType == false) continue;
- foreach(var set in setType) {
- var refList__scare2D_dot_EntityHandle_null = set.GetRefList<scare2D.EntityHandle>();
- var refList__scare2D_dot_Manifold2D_null = set.GetRefList<scare2D.Manifold2D>();
- for(var i = 0; i < set.Handles.Count; ++i) {
- currentValue.Handle = refList__scare2D_dot_EntityHandle_null[i];
- currentValue._ = refList__scare2D_dot_Manifold2D_null[i];
- yield return true;
- }
- }
- }
- }
- }
- public sealed class _scare2D_dot_PhysicsCleanupSystem_dot_ItemGroup2_Enumerator_ReadOnlyFilter : IRefEnumerator<scare2D.PhysicsCleanupSystem.ItemGroup2> {
- private Func<SharedDataType, bool> filter;
- private _scare2D_dot_PhysicsCleanupSystem_dot_ItemGroup2_Collection collection;
- private scare2D.PhysicsCleanupSystem.ItemGroup2 currentValue = new scare2D.PhysicsCleanupSystem.ItemGroup2();
- private IEnumerator<bool> moveNextEnumerator;
- public _scare2D_dot_PhysicsCleanupSystem_dot_ItemGroup2_Enumerator_ReadOnlyFilter(_scare2D_dot_PhysicsCleanupSystem_dot_ItemGroup2_Collection collection, Func<SharedDataType, bool> filter) {
- this.collection = collection;
- this.filter = filter;
- }
- public ref scare2D.PhysicsCleanupSystem.ItemGroup2 Current => ref currentValue;
- public bool MoveNext() {
- if(moveNextEnumerator == null) {
- moveNextEnumerator = MoveNextInternal();
- }
- return moveNextEnumerator.MoveNext();
- }
- public IEnumerator<bool> MoveNextInternal() {
- foreach(var setType in collection.EntityWorld.Entities.Components) {
- bool keepSetType = setType.TypeSet.IsSupersetOf(collection.Includes);
- if(keepSetType == false) continue;
- foreach(var set in setType) {
- if(filter(set.SharedDataType) == false) continue;
- var refList__scare2D_dot_EntityHandle_null = set.GetRefList<scare2D.EntityHandle>();
- var refList__scare2D_dot_Manifold2D_null = set.GetRefList<scare2D.Manifold2D>();
- for(var i = 0; i < set.Handles.Count; ++i) {
- currentValue.Handle = refList__scare2D_dot_EntityHandle_null[i];
- currentValue._ = refList__scare2D_dot_Manifold2D_null[i];
- yield return true;
- }
- }
- }
- }
- }
- public scare2D.PhysicsCleanupSystem System => EntityWorld._scare2D_dot_PhysicsCleanupSystem_null;
- public EntityWorld EntityWorld { get; }
- public TypeSet Includes { get; }
- public TypeSet Excludes { get; }
- public IEntityWorld World => EntityWorld;
- public _scare2D_dot_PhysicsCleanupSystem_dot_ItemGroup2_Collection(EntityWorld world) {
- EntityWorld = world;
- Includes = new TypeSet(typeof(scare2D.Manifold2D));
- Excludes = new TypeSet();
- }
- public IRefEnumerator<scare2D.PhysicsCleanupSystem.ItemGroup2> GetEnumerator() => new _scare2D_dot_PhysicsCleanupSystem_dot_ItemGroup2_Enumerator(this);
- public IRefEnumerable<scare2D.PhysicsCleanupSystem.ItemGroup2> WithFilter(Func<SharedDataType, bool> filter) => new RefEnumeratorWrapper<scare2D.PhysicsCleanupSystem.ItemGroup2>(new _scare2D_dot_PhysicsCleanupSystem_dot_ItemGroup2_Enumerator_ReadOnlyFilter(this, filter));
- }
- public sealed class _scare2D_dot_BroadPhaseRendererSystem_dot_ItemGroup_Collection : IComponentCollection<scare2D.BroadPhaseRendererSystem.ItemGroup> {
- public sealed class _scare2D_dot_BroadPhaseRendererSystem_dot_ItemGroup_Enumerator : IRefEnumerator<scare2D.BroadPhaseRendererSystem.ItemGroup> {
- private _scare2D_dot_BroadPhaseRendererSystem_dot_ItemGroup_Collection collection;
- private scare2D.BroadPhaseRendererSystem.ItemGroup currentValue = new scare2D.BroadPhaseRendererSystem.ItemGroup();
- private IEnumerator<bool> moveNextEnumerator;
- public _scare2D_dot_BroadPhaseRendererSystem_dot_ItemGroup_Enumerator(_scare2D_dot_BroadPhaseRendererSystem_dot_ItemGroup_Collection collection) {
- this.collection = collection;
- }
- public ref scare2D.BroadPhaseRendererSystem.ItemGroup Current => ref currentValue;
- public bool MoveNext() {
- if(moveNextEnumerator == null) {
- moveNextEnumerator = MoveNextInternal();
- }
- return moveNextEnumerator.MoveNext();
- }
- public IEnumerator<bool> MoveNextInternal() {
- foreach(var setType in collection.EntityWorld.Entities.Components) {
- bool keepSetType = setType.TypeSet.IsSupersetOf(collection.Includes);
- if(keepSetType == false) continue;
- foreach(var set in setType) {
- var refList__scare2D_dot_BroadPhasePair_null = set.GetRefList<scare2D.BroadPhasePair>();
- for(var i = 0; i < set.Handles.Count; ++i) {
- currentValue.Pair = refList__scare2D_dot_BroadPhasePair_null[i];
- yield return true;
- }
- }
- }
- }
- }
- public sealed class _scare2D_dot_BroadPhaseRendererSystem_dot_ItemGroup_Enumerator_ReadOnlyFilter : IRefEnumerator<scare2D.BroadPhaseRendererSystem.ItemGroup> {
- private Func<SharedDataType, bool> filter;
- private _scare2D_dot_BroadPhaseRendererSystem_dot_ItemGroup_Collection collection;
- private scare2D.BroadPhaseRendererSystem.ItemGroup currentValue = new scare2D.BroadPhaseRendererSystem.ItemGroup();
- private IEnumerator<bool> moveNextEnumerator;
- public _scare2D_dot_BroadPhaseRendererSystem_dot_ItemGroup_Enumerator_ReadOnlyFilter(_scare2D_dot_BroadPhaseRendererSystem_dot_ItemGroup_Collection collection, Func<SharedDataType, bool> filter) {
- this.collection = collection;
- this.filter = filter;
- }
- public ref scare2D.BroadPhaseRendererSystem.ItemGroup Current => ref currentValue;
- public bool MoveNext() {
- if(moveNextEnumerator == null) {
- moveNextEnumerator = MoveNextInternal();
- }
- return moveNextEnumerator.MoveNext();
- }
- public IEnumerator<bool> MoveNextInternal() {
- foreach(var setType in collection.EntityWorld.Entities.Components) {
- bool keepSetType = setType.TypeSet.IsSupersetOf(collection.Includes);
- if(keepSetType == false) continue;
- foreach(var set in setType) {
- if(filter(set.SharedDataType) == false) continue;
- var refList__scare2D_dot_BroadPhasePair_null = set.GetRefList<scare2D.BroadPhasePair>();
- for(var i = 0; i < set.Handles.Count; ++i) {
- currentValue.Pair = refList__scare2D_dot_BroadPhasePair_null[i];
- yield return true;
- }
- }
- }
- }
- }
- public scare2D.BroadPhaseRendererSystem System => EntityWorld._scare2D_dot_BroadPhaseRendererSystem_null;
- public EntityWorld EntityWorld { get; }
- public TypeSet Includes { get; }
- public TypeSet Excludes { get; }
- public IEntityWorld World => EntityWorld;
- public _scare2D_dot_BroadPhaseRendererSystem_dot_ItemGroup_Collection(EntityWorld world) {
- EntityWorld = world;
- Includes = new TypeSet(typeof(scare2D.BroadPhasePair));
- Excludes = new TypeSet();
- }
- public IRefEnumerator<scare2D.BroadPhaseRendererSystem.ItemGroup> GetEnumerator() => new _scare2D_dot_BroadPhaseRendererSystem_dot_ItemGroup_Enumerator(this);
- public IRefEnumerable<scare2D.BroadPhaseRendererSystem.ItemGroup> WithFilter(Func<SharedDataType, bool> filter) => new RefEnumeratorWrapper<scare2D.BroadPhaseRendererSystem.ItemGroup>(new _scare2D_dot_BroadPhaseRendererSystem_dot_ItemGroup_Enumerator_ReadOnlyFilter(this, filter));
- }
- public sealed class _scare2D_dot_PhysicsObject_Collection : IComponentCollection<scare2D.PhysicsObject> {
- public sealed class _scare2D_dot_PhysicsObject_Enumerator : IRefEnumerator<scare2D.PhysicsObject> {
- private _scare2D_dot_PhysicsObject_Collection collection;
- private scare2D.PhysicsObject currentValue = new scare2D.PhysicsObject();
- private IEnumerator<bool> moveNextEnumerator;
- public _scare2D_dot_PhysicsObject_Enumerator(_scare2D_dot_PhysicsObject_Collection collection) {
- this.collection = collection;
- }
- public ref scare2D.PhysicsObject Current => ref currentValue;
- public bool MoveNext() {
- if(moveNextEnumerator == null) {
- moveNextEnumerator = MoveNextInternal();
- }
- return moveNextEnumerator.MoveNext();
- }
- public IEnumerator<bool> MoveNextInternal() {
- var handlesThatChangedSharedType = new RefList<EntityHandle>();
- foreach(var setType in collection.EntityWorld.Entities.Components) {
- bool keepSetType = setType.TypeSet.IsSupersetOf(collection.Includes);
- if(keepSetType == false) continue;
- foreach(var handle in handlesThatChangedSharedType) {
- collection.World.Entities.Components.CheckSharedDataTypeFor(handle);
- }
- handlesThatChangedSharedType.Clear();
- foreach(var set in setType) {
- var refList__scare2D_dot_EntityHandle_null = set.GetRefList<scare2D.EntityHandle>();
- var refList__scare2D_dot_Transform2D_null = set.GetRefList<scare2D.Transform2D>();
- var refList__scare2D_dot_RigidBody2D_null = set.GetRefList<scare2D.RigidBody2D>();
- System.UInt32 _scare2D_dot_RigidBody2D_CollisionMask = default;
- if(set.Handles.Count > 0) {
- _scare2D_dot_RigidBody2D_CollisionMask = refList__scare2D_dot_RigidBody2D_null[0].CollisionMask;
- }
- for(var i = 0; i < set.Handles.Count; ++i) {
- currentValue.Handle = refList__scare2D_dot_EntityHandle_null[i];
- currentValue.Transform = refList__scare2D_dot_Transform2D_null[i];
- currentValue.RigidBody = refList__scare2D_dot_RigidBody2D_null[i];
- yield return true;
- refList__scare2D_dot_Transform2D_null[i] = currentValue.Transform;
- refList__scare2D_dot_RigidBody2D_null[i] = currentValue.RigidBody;
- if(object.Equals(_scare2D_dot_RigidBody2D_CollisionMask, currentValue.RigidBody.CollisionMask) == false) {
- handlesThatChangedSharedType.Add(set.Handles[i]);
- }
- }
- }
- }
- foreach(var handle in handlesThatChangedSharedType) {
- collection.World.Entities.Components.CheckSharedDataTypeFor(handle);
- }
- }
- }
- public sealed class _scare2D_dot_PhysicsObject_Enumerator_ReadOnlyFilter : IRefEnumerator<scare2D.PhysicsObject> {
- private Func<SharedDataType, bool> filter;
- private _scare2D_dot_PhysicsObject_Collection collection;
- private scare2D.PhysicsObject currentValue = new scare2D.PhysicsObject();
- private IEnumerator<bool> moveNextEnumerator;
- public _scare2D_dot_PhysicsObject_Enumerator_ReadOnlyFilter(_scare2D_dot_PhysicsObject_Collection collection, Func<SharedDataType, bool> filter) {
- this.collection = collection;
- this.filter = filter;
- }
- public ref scare2D.PhysicsObject Current => ref currentValue;
- public bool MoveNext() {
- if(moveNextEnumerator == null) {
- moveNextEnumerator = MoveNextInternal();
- }
- return moveNextEnumerator.MoveNext();
- }
- public IEnumerator<bool> MoveNextInternal() {
- foreach(var setType in collection.EntityWorld.Entities.Components) {
- bool keepSetType = setType.TypeSet.IsSupersetOf(collection.Includes);
- if(keepSetType == false) continue;
- foreach(var set in setType) {
- if(filter(set.SharedDataType) == false) continue;
- var refList__scare2D_dot_EntityHandle_null = set.GetRefList<scare2D.EntityHandle>();
- var refList__scare2D_dot_Transform2D_null = set.GetRefList<scare2D.Transform2D>();
- var refList__scare2D_dot_RigidBody2D_null = set.GetRefList<scare2D.RigidBody2D>();
- if(set.Handles.Count > 0) {
- }
- for(var i = 0; i < set.Handles.Count; ++i) {
- currentValue.Handle = refList__scare2D_dot_EntityHandle_null[i];
- currentValue.Transform = refList__scare2D_dot_Transform2D_null[i];
- currentValue.RigidBody = refList__scare2D_dot_RigidBody2D_null[i];
- yield return true;
- }
- }
- }
- }
- }
- public scare2D.BroadPhaseSystem System => EntityWorld._scare2D_dot_BroadPhaseSystem_null;
- public EntityWorld EntityWorld { get; }
- public TypeSet Includes { get; }
- public TypeSet Excludes { get; }
- public IEntityWorld World => EntityWorld;
- public _scare2D_dot_PhysicsObject_Collection(EntityWorld world) {
- EntityWorld = world;
- Includes = new TypeSet(typeof(scare2D.Transform2D), typeof(scare2D.RigidBody2D));
- Excludes = new TypeSet();
- }
- public IRefEnumerator<scare2D.PhysicsObject> GetEnumerator() => new _scare2D_dot_PhysicsObject_Enumerator(this);
- public IRefEnumerable<scare2D.PhysicsObject> WithFilter(Func<SharedDataType, bool> filter) => new RefEnumeratorWrapper<scare2D.PhysicsObject>(new _scare2D_dot_PhysicsObject_Enumerator_ReadOnlyFilter(this, filter));
- }
- public sealed class _scare2D_dot_NarrowPhaseSystem_dot_ItemGroup_Collection : IComponentCollection<scare2D.NarrowPhaseSystem.ItemGroup> {
- public sealed class _scare2D_dot_NarrowPhaseSystem_dot_ItemGroup_Enumerator : IRefEnumerator<scare2D.NarrowPhaseSystem.ItemGroup> {
- private _scare2D_dot_NarrowPhaseSystem_dot_ItemGroup_Collection collection;
- private scare2D.NarrowPhaseSystem.ItemGroup currentValue = new scare2D.NarrowPhaseSystem.ItemGroup();
- private IEnumerator<bool> moveNextEnumerator;
- public _scare2D_dot_NarrowPhaseSystem_dot_ItemGroup_Enumerator(_scare2D_dot_NarrowPhaseSystem_dot_ItemGroup_Collection collection) {
- this.collection = collection;
- }
- public ref scare2D.NarrowPhaseSystem.ItemGroup Current => ref currentValue;
- public bool MoveNext() {
- if(moveNextEnumerator == null) {
- moveNextEnumerator = MoveNextInternal();
- }
- return moveNextEnumerator.MoveNext();
- }
- public IEnumerator<bool> MoveNextInternal() {
- foreach(var setType in collection.EntityWorld.Entities.Components) {
- bool keepSetType = setType.TypeSet.IsSupersetOf(collection.Includes);
- if(keepSetType == false) continue;
- foreach(var set in setType) {
- var refList__scare2D_dot_BroadPhasePair_null = set.GetRefList<scare2D.BroadPhasePair>();
- for(var i = 0; i < set.Handles.Count; ++i) {
- currentValue.Pair = refList__scare2D_dot_BroadPhasePair_null[i];
- yield return true;
- }
- }
- }
- }
- }
- public sealed class _scare2D_dot_NarrowPhaseSystem_dot_ItemGroup_Enumerator_ReadOnlyFilter : IRefEnumerator<scare2D.NarrowPhaseSystem.ItemGroup> {
- private Func<SharedDataType, bool> filter;
- private _scare2D_dot_NarrowPhaseSystem_dot_ItemGroup_Collection collection;
- private scare2D.NarrowPhaseSystem.ItemGroup currentValue = new scare2D.NarrowPhaseSystem.ItemGroup();
- private IEnumerator<bool> moveNextEnumerator;
- public _scare2D_dot_NarrowPhaseSystem_dot_ItemGroup_Enumerator_ReadOnlyFilter(_scare2D_dot_NarrowPhaseSystem_dot_ItemGroup_Collection collection, Func<SharedDataType, bool> filter) {
- this.collection = collection;
- this.filter = filter;
- }
- public ref scare2D.NarrowPhaseSystem.ItemGroup Current => ref currentValue;
- public bool MoveNext() {
- if(moveNextEnumerator == null) {
- moveNextEnumerator = MoveNextInternal();
- }
- return moveNextEnumerator.MoveNext();
- }
- public IEnumerator<bool> MoveNextInternal() {
- foreach(var setType in collection.EntityWorld.Entities.Components) {
- bool keepSetType = setType.TypeSet.IsSupersetOf(collection.Includes);
- if(keepSetType == false) continue;
- foreach(var set in setType) {
- if(filter(set.SharedDataType) == false) continue;
- var refList__scare2D_dot_BroadPhasePair_null = set.GetRefList<scare2D.BroadPhasePair>();
- for(var i = 0; i < set.Handles.Count; ++i) {
- currentValue.Pair = refList__scare2D_dot_BroadPhasePair_null[i];
- yield return true;
- }
- }
- }
- }
- }
- public scare2D.NarrowPhaseSystem System => EntityWorld._scare2D_dot_NarrowPhaseSystem_null;
- public EntityWorld EntityWorld { get; }
- public TypeSet Includes { get; }
- public TypeSet Excludes { get; }
- public IEntityWorld World => EntityWorld;
- public _scare2D_dot_NarrowPhaseSystem_dot_ItemGroup_Collection(EntityWorld world) {
- EntityWorld = world;
- Includes = new TypeSet(typeof(scare2D.BroadPhasePair));
- Excludes = new TypeSet();
- }
- public IRefEnumerator<scare2D.NarrowPhaseSystem.ItemGroup> GetEnumerator() => new _scare2D_dot_NarrowPhaseSystem_dot_ItemGroup_Enumerator(this);
- public IRefEnumerable<scare2D.NarrowPhaseSystem.ItemGroup> WithFilter(Func<SharedDataType, bool> filter) => new RefEnumeratorWrapper<scare2D.NarrowPhaseSystem.ItemGroup>(new _scare2D_dot_NarrowPhaseSystem_dot_ItemGroup_Enumerator_ReadOnlyFilter(this, filter));
- }
- public sealed class _scare2D_dot_CollisionResponseSystem_dot_ItemGroup_Collection : IComponentCollection<scare2D.CollisionResponseSystem.ItemGroup> {
- public sealed class _scare2D_dot_CollisionResponseSystem_dot_ItemGroup_Enumerator : IRefEnumerator<scare2D.CollisionResponseSystem.ItemGroup> {
- private _scare2D_dot_CollisionResponseSystem_dot_ItemGroup_Collection collection;
- private scare2D.CollisionResponseSystem.ItemGroup currentValue = new scare2D.CollisionResponseSystem.ItemGroup();
- private IEnumerator<bool> moveNextEnumerator;
- public _scare2D_dot_CollisionResponseSystem_dot_ItemGroup_Enumerator(_scare2D_dot_CollisionResponseSystem_dot_ItemGroup_Collection collection) {
- this.collection = collection;
- }
- public ref scare2D.CollisionResponseSystem.ItemGroup Current => ref currentValue;
- public bool MoveNext() {
- if(moveNextEnumerator == null) {
- moveNextEnumerator = MoveNextInternal();
- }
- return moveNextEnumerator.MoveNext();
- }
- public IEnumerator<bool> MoveNextInternal() {
- foreach(var setType in collection.EntityWorld.Entities.Components) {
- bool keepSetType = setType.TypeSet.IsSupersetOf(collection.Includes);
- if(keepSetType == false) continue;
- foreach(var set in setType) {
- var refList__scare2D_dot_Manifold2D_null = set.GetRefList<scare2D.Manifold2D>();
- for(var i = 0; i < set.Handles.Count; ++i) {
- currentValue.Collision = refList__scare2D_dot_Manifold2D_null[i];
- yield return true;
- }
- }
- }
- }
- }
- public sealed class _scare2D_dot_CollisionResponseSystem_dot_ItemGroup_Enumerator_ReadOnlyFilter : IRefEnumerator<scare2D.CollisionResponseSystem.ItemGroup> {
- private Func<SharedDataType, bool> filter;
- private _scare2D_dot_CollisionResponseSystem_dot_ItemGroup_Collection collection;
- private scare2D.CollisionResponseSystem.ItemGroup currentValue = new scare2D.CollisionResponseSystem.ItemGroup();
- private IEnumerator<bool> moveNextEnumerator;
- public _scare2D_dot_CollisionResponseSystem_dot_ItemGroup_Enumerator_ReadOnlyFilter(_scare2D_dot_CollisionResponseSystem_dot_ItemGroup_Collection collection, Func<SharedDataType, bool> filter) {
- this.collection = collection;
- this.filter = filter;
- }
- public ref scare2D.CollisionResponseSystem.ItemGroup Current => ref currentValue;
- public bool MoveNext() {
- if(moveNextEnumerator == null) {
- moveNextEnumerator = MoveNextInternal();
- }
- return moveNextEnumerator.MoveNext();
- }
- public IEnumerator<bool> MoveNextInternal() {
- foreach(var setType in collection.EntityWorld.Entities.Components) {
- bool keepSetType = setType.TypeSet.IsSupersetOf(collection.Includes);
- if(keepSetType == false) continue;
- foreach(var set in setType) {
- if(filter(set.SharedDataType) == false) continue;
- var refList__scare2D_dot_Manifold2D_null = set.GetRefList<scare2D.Manifold2D>();
- for(var i = 0; i < set.Handles.Count; ++i) {
- currentValue.Collision = refList__scare2D_dot_Manifold2D_null[i];
- yield return true;
- }
- }
- }
- }
- }
- public scare2D.CollisionResponseSystem System => EntityWorld._scare2D_dot_CollisionResponseSystem_null;
- public EntityWorld EntityWorld { get; }
- public TypeSet Includes { get; }
- public TypeSet Excludes { get; }
- public IEntityWorld World => EntityWorld;
- public _scare2D_dot_CollisionResponseSystem_dot_ItemGroup_Collection(EntityWorld world) {
- EntityWorld = world;
- Includes = new TypeSet(typeof(scare2D.Manifold2D));
- Excludes = new TypeSet();
- }
- public IRefEnumerator<scare2D.CollisionResponseSystem.ItemGroup> GetEnumerator() => new _scare2D_dot_CollisionResponseSystem_dot_ItemGroup_Enumerator(this);
- public IRefEnumerable<scare2D.CollisionResponseSystem.ItemGroup> WithFilter(Func<SharedDataType, bool> filter) => new RefEnumeratorWrapper<scare2D.CollisionResponseSystem.ItemGroup>(new _scare2D_dot_CollisionResponseSystem_dot_ItemGroup_Enumerator_ReadOnlyFilter(this, filter));
- }
- public sealed class _scare2D_dot_ParticleEmitterRenderer_dot_ItemGroup_Collection : IComponentCollection<scare2D.ParticleEmitterRenderer.ItemGroup> {
- public sealed class _scare2D_dot_ParticleEmitterRenderer_dot_ItemGroup_Enumerator : IRefEnumerator<scare2D.ParticleEmitterRenderer.ItemGroup> {
- private _scare2D_dot_ParticleEmitterRenderer_dot_ItemGroup_Collection collection;
- private scare2D.ParticleEmitterRenderer.ItemGroup currentValue = new scare2D.ParticleEmitterRenderer.ItemGroup();
- private IEnumerator<bool> moveNextEnumerator;
- public _scare2D_dot_ParticleEmitterRenderer_dot_ItemGroup_Enumerator(_scare2D_dot_ParticleEmitterRenderer_dot_ItemGroup_Collection collection) {
- this.collection = collection;
- }
- public ref scare2D.ParticleEmitterRenderer.ItemGroup Current => ref currentValue;
- public bool MoveNext() {
- if(moveNextEnumerator == null) {
- moveNextEnumerator = MoveNextInternal();
- }
- return moveNextEnumerator.MoveNext();
- }
- public IEnumerator<bool> MoveNextInternal() {
- var handlesThatChangedSharedType = new RefList<EntityHandle>();
- foreach(var setType in collection.EntityWorld.Entities.Components) {
- bool keepSetType = setType.TypeSet.IsSupersetOf(collection.Includes);
- if(keepSetType == false) continue;
- foreach(var handle in handlesThatChangedSharedType) {
- collection.World.Entities.Components.CheckSharedDataTypeFor(handle);
- }
- handlesThatChangedSharedType.Clear();
- foreach(var set in setType) {
- var refList__scare2D_dot_EntityHandle_null = set.GetRefList<scare2D.EntityHandle>();
- var refList__scare2D_dot_Transform_null = set.GetRefList<scare2D.Transform>();
- var refList__scare2D_dot_ParticleEmitter_null = set.GetRefList<scare2D.ParticleEmitter>();
- System.String _scare2D_dot_ParticleEmitter_textureName = default;
- if(set.Handles.Count > 0) {
- _scare2D_dot_ParticleEmitter_textureName = refList__scare2D_dot_ParticleEmitter_null[0].textureName;
- currentValue.handle = refList__scare2D_dot_EntityHandle_null[0];
- currentValue.transform = refList__scare2D_dot_Transform_null[0];
- currentValue.emitter = refList__scare2D_dot_ParticleEmitter_null[0];
- collection.System.SetSharedState(currentValue, collection.EntityWorld._Microsoft_dot_Xna_dot_Framework_dot_Content_dot_ContentManager_null, collection.EntityWorld._Microsoft_dot_Xna_dot_Framework_dot_Graphics_dot_GraphicsDevice_null);
- }
- for(var i = 0; i < set.Handles.Count; ++i) {
- currentValue.handle = refList__scare2D_dot_EntityHandle_null[i];
- currentValue.transform = refList__scare2D_dot_Transform_null[i];
- currentValue.emitter = refList__scare2D_dot_ParticleEmitter_null[i];
- yield return true;
- refList__scare2D_dot_Transform_null[i] = currentValue.transform;
- refList__scare2D_dot_ParticleEmitter_null[i] = currentValue.emitter;
- if(_scare2D_dot_ParticleEmitter_textureName != currentValue.emitter.textureName) {
- handlesThatChangedSharedType.Add(set.Handles[i]);
- }
- }
- }
- }
- foreach(var handle in handlesThatChangedSharedType) {
- collection.World.Entities.Components.CheckSharedDataTypeFor(handle);
- }
- }
- }
- public sealed class _scare2D_dot_ParticleEmitterRenderer_dot_ItemGroup_Enumerator_ReadOnlyFilter : IRefEnumerator<scare2D.ParticleEmitterRenderer.ItemGroup> {
- private Func<SharedDataType, bool> filter;
- private _scare2D_dot_ParticleEmitterRenderer_dot_ItemGroup_Collection collection;
- private scare2D.ParticleEmitterRenderer.ItemGroup currentValue = new scare2D.ParticleEmitterRenderer.ItemGroup();
- private IEnumerator<bool> moveNextEnumerator;
- public _scare2D_dot_ParticleEmitterRenderer_dot_ItemGroup_Enumerator_ReadOnlyFilter(_scare2D_dot_ParticleEmitterRenderer_dot_ItemGroup_Collection collection, Func<SharedDataType, bool> filter) {
- this.collection = collection;
- this.filter = filter;
- }
- public ref scare2D.ParticleEmitterRenderer.ItemGroup Current => ref currentValue;
- public bool MoveNext() {
- if(moveNextEnumerator == null) {
- moveNextEnumerator = MoveNextInternal();
- }
- return moveNextEnumerator.MoveNext();
- }
- public IEnumerator<bool> MoveNextInternal() {
- foreach(var setType in collection.EntityWorld.Entities.Components) {
- bool keepSetType = setType.TypeSet.IsSupersetOf(collection.Includes);
- if(keepSetType == false) continue;
- foreach(var set in setType) {
- if(filter(set.SharedDataType) == false) continue;
- var refList__scare2D_dot_EntityHandle_null = set.GetRefList<scare2D.EntityHandle>();
- var refList__scare2D_dot_Transform_null = set.GetRefList<scare2D.Transform>();
- var refList__scare2D_dot_ParticleEmitter_null = set.GetRefList<scare2D.ParticleEmitter>();
- if(set.Handles.Count > 0) {
- currentValue.handle = refList__scare2D_dot_EntityHandle_null[0];
- currentValue.transform = refList__scare2D_dot_Transform_null[0];
- currentValue.emitter = refList__scare2D_dot_ParticleEmitter_null[0];
- collection.System.SetSharedState(currentValue, collection.EntityWorld._Microsoft_dot_Xna_dot_Framework_dot_Content_dot_ContentManager_null, collection.EntityWorld._Microsoft_dot_Xna_dot_Framework_dot_Graphics_dot_GraphicsDevice_null);
- }
- for(var i = 0; i < set.Handles.Count; ++i) {
- currentValue.handle = refList__scare2D_dot_EntityHandle_null[i];
- currentValue.transform = refList__scare2D_dot_Transform_null[i];
- currentValue.emitter = refList__scare2D_dot_ParticleEmitter_null[i];
- yield return true;
- }
- }
- }
- }
- }
- public scare2D.ParticleEmitterRenderer System => EntityWorld._scare2D_dot_ParticleEmitterRenderer_null;
- public EntityWorld EntityWorld { get; }
- public TypeSet Includes { get; }
- public TypeSet Excludes { get; }
- public IEntityWorld World => EntityWorld;
- public _scare2D_dot_ParticleEmitterRenderer_dot_ItemGroup_Collection(EntityWorld world) {
- EntityWorld = world;
- Includes = new TypeSet(typeof(scare2D.Transform), typeof(scare2D.ParticleEmitter));
- Excludes = new TypeSet();
- }
- public IRefEnumerator<scare2D.ParticleEmitterRenderer.ItemGroup> GetEnumerator() => new _scare2D_dot_ParticleEmitterRenderer_dot_ItemGroup_Enumerator(this);
- public IRefEnumerable<scare2D.ParticleEmitterRenderer.ItemGroup> WithFilter(Func<SharedDataType, bool> filter) => new RefEnumeratorWrapper<scare2D.ParticleEmitterRenderer.ItemGroup>(new _scare2D_dot_ParticleEmitterRenderer_dot_ItemGroup_Enumerator_ReadOnlyFilter(this, filter));
- }
- public sealed class _scare2D_dot_SpawnerSystem_dot_Group_Collection : IComponentCollection<scare2D.SpawnerSystem.Group> {
- public sealed class _scare2D_dot_SpawnerSystem_dot_Group_Enumerator : IRefEnumerator<scare2D.SpawnerSystem.Group> {
- private _scare2D_dot_SpawnerSystem_dot_Group_Collection collection;
- private scare2D.SpawnerSystem.Group currentValue = new scare2D.SpawnerSystem.Group();
- private IEnumerator<bool> moveNextEnumerator;
- public _scare2D_dot_SpawnerSystem_dot_Group_Enumerator(_scare2D_dot_SpawnerSystem_dot_Group_Collection collection) {
- this.collection = collection;
- }
- public ref scare2D.SpawnerSystem.Group Current => ref currentValue;
- public bool MoveNext() {
- if(moveNextEnumerator == null) {
- moveNextEnumerator = MoveNextInternal();
- }
- return moveNextEnumerator.MoveNext();
- }
- public IEnumerator<bool> MoveNextInternal() {
- foreach(var setType in collection.EntityWorld.Entities.Components) {
- bool keepSetType = setType.TypeSet.IsSupersetOf(collection.Includes);
- if(keepSetType == false) continue;
- foreach(var set in setType) {
- var refList__scare2D_dot_Transform_null = set.GetRefList<scare2D.Transform>();
- var refList__scare2D_dot_Spawner_null = set.GetRefList<scare2D.Spawner>();
- for(var i = 0; i < set.Handles.Count; ++i) {
- currentValue.transform = refList__scare2D_dot_Transform_null[i];
- currentValue.spawner = refList__scare2D_dot_Spawner_null[i];
- yield return true;
- refList__scare2D_dot_Transform_null[i] = currentValue.transform;
- refList__scare2D_dot_Spawner_null[i] = currentValue.spawner;
- }
- }
- }
- }
- }
- public sealed class _scare2D_dot_SpawnerSystem_dot_Group_Enumerator_ReadOnlyFilter : IRefEnumerator<scare2D.SpawnerSystem.Group> {
- private Func<SharedDataType, bool> filter;
- private _scare2D_dot_SpawnerSystem_dot_Group_Collection collection;
- private scare2D.SpawnerSystem.Group currentValue = new scare2D.SpawnerSystem.Group();
- private IEnumerator<bool> moveNextEnumerator;
- public _scare2D_dot_SpawnerSystem_dot_Group_Enumerator_ReadOnlyFilter(_scare2D_dot_SpawnerSystem_dot_Group_Collection collection, Func<SharedDataType, bool> filter) {
- this.collection = collection;
- this.filter = filter;
- }
- public ref scare2D.SpawnerSystem.Group Current => ref currentValue;
- public bool MoveNext() {
- if(moveNextEnumerator == null) {
- moveNextEnumerator = MoveNextInternal();
- }
- return moveNextEnumerator.MoveNext();
- }
- public IEnumerator<bool> MoveNextInternal() {
- foreach(var setType in collection.EntityWorld.Entities.Components) {
- bool keepSetType = setType.TypeSet.IsSupersetOf(collection.Includes);
- if(keepSetType == false) continue;
- foreach(var set in setType) {
- if(filter(set.SharedDataType) == false) continue;
- var refList__scare2D_dot_Transform_null = set.GetRefList<scare2D.Transform>();
- var refList__scare2D_dot_Spawner_null = set.GetRefList<scare2D.Spawner>();
- for(var i = 0; i < set.Handles.Count; ++i) {
- currentValue.transform = refList__scare2D_dot_Transform_null[i];
- currentValue.spawner = refList__scare2D_dot_Spawner_null[i];
- yield return true;
- }
- }
- }
- }
- }
- public scare2D.SpawnerSystem System => EntityWorld._scare2D_dot_SpawnerSystem_null;
- public EntityWorld EntityWorld { get; }
- public TypeSet Includes { get; }
- public TypeSet Excludes { get; }
- public IEntityWorld World => EntityWorld;
- public _scare2D_dot_SpawnerSystem_dot_Group_Collection(EntityWorld world) {
- EntityWorld = world;
- Includes = new TypeSet(typeof(scare2D.Transform), typeof(scare2D.Spawner));
- Excludes = new TypeSet();
- }
- public IRefEnumerator<scare2D.SpawnerSystem.Group> GetEnumerator() => new _scare2D_dot_SpawnerSystem_dot_Group_Enumerator(this);
- public IRefEnumerable<scare2D.SpawnerSystem.Group> WithFilter(Func<SharedDataType, bool> filter) => new RefEnumeratorWrapper<scare2D.SpawnerSystem.Group>(new _scare2D_dot_SpawnerSystem_dot_Group_Enumerator_ReadOnlyFilter(this, filter));
- }
- public sealed class _scare2D_dot_LifeTimeSystem_dot_Group_Collection : IComponentCollection<scare2D.LifeTimeSystem.Group> {
- public sealed class _scare2D_dot_LifeTimeSystem_dot_Group_Enumerator : IRefEnumerator<scare2D.LifeTimeSystem.Group> {
- private _scare2D_dot_LifeTimeSystem_dot_Group_Collection collection;
- private scare2D.LifeTimeSystem.Group currentValue = new scare2D.LifeTimeSystem.Group();
- private IEnumerator<bool> moveNextEnumerator;
- public _scare2D_dot_LifeTimeSystem_dot_Group_Enumerator(_scare2D_dot_LifeTimeSystem_dot_Group_Collection collection) {
- this.collection = collection;
- }
- public ref scare2D.LifeTimeSystem.Group Current => ref currentValue;
- public bool MoveNext() {
- if(moveNextEnumerator == null) {
- moveNextEnumerator = MoveNextInternal();
- }
- return moveNextEnumerator.MoveNext();
- }
- public IEnumerator<bool> MoveNextInternal() {
- foreach(var setType in collection.EntityWorld.Entities.Components) {
- bool keepSetType = setType.TypeSet.IsSupersetOf(collection.Includes);
- if(keepSetType == false) continue;
- foreach(var set in setType) {
- var refList__scare2D_dot_EntityHandle_null = set.GetRefList<scare2D.EntityHandle>();
- var refList__scare2D_dot_LifeTime_null = set.GetRefList<scare2D.LifeTime>();
- for(var i = 0; i < set.Handles.Count; ++i) {
- currentValue.handle = refList__scare2D_dot_EntityHandle_null[i];
- currentValue.lifeTime = refList__scare2D_dot_LifeTime_null[i];
- yield return true;
- refList__scare2D_dot_LifeTime_null[i] = currentValue.lifeTime;
- }
- }
- }
- }
- }
- public sealed class _scare2D_dot_LifeTimeSystem_dot_Group_Enumerator_ReadOnlyFilter : IRefEnumerator<scare2D.LifeTimeSystem.Group> {
- private Func<SharedDataType, bool> filter;
- private _scare2D_dot_LifeTimeSystem_dot_Group_Collection collection;
- private scare2D.LifeTimeSystem.Group currentValue = new scare2D.LifeTimeSystem.Group();
- private IEnumerator<bool> moveNextEnumerator;
- public _scare2D_dot_LifeTimeSystem_dot_Group_Enumerator_ReadOnlyFilter(_scare2D_dot_LifeTimeSystem_dot_Group_Collection collection, Func<SharedDataType, bool> filter) {
- this.collection = collection;
- this.filter = filter;
- }
- public ref scare2D.LifeTimeSystem.Group Current => ref currentValue;
- public bool MoveNext() {
- if(moveNextEnumerator == null) {
- moveNextEnumerator = MoveNextInternal();
- }
- return moveNextEnumerator.MoveNext();
- }
- public IEnumerator<bool> MoveNextInternal() {
- foreach(var setType in collection.EntityWorld.Entities.Components) {
- bool keepSetType = setType.TypeSet.IsSupersetOf(collection.Includes);
- if(keepSetType == false) continue;
- foreach(var set in setType) {
- if(filter(set.SharedDataType) == false) continue;
- var refList__scare2D_dot_EntityHandle_null = set.GetRefList<scare2D.EntityHandle>();
- var refList__scare2D_dot_LifeTime_null = set.GetRefList<scare2D.LifeTime>();
- for(var i = 0; i < set.Handles.Count; ++i) {
- currentValue.handle = refList__scare2D_dot_EntityHandle_null[i];
- currentValue.lifeTime = refList__scare2D_dot_LifeTime_null[i];
- yield return true;
- }
- }
- }
- }
- }
- public scare2D.LifeTimeSystem System => EntityWorld._scare2D_dot_LifeTimeSystem_null;
- public EntityWorld EntityWorld { get; }
- public TypeSet Includes { get; }
- public TypeSet Excludes { get; }
- public IEntityWorld World => EntityWorld;
- public _scare2D_dot_LifeTimeSystem_dot_Group_Collection(EntityWorld world) {
- EntityWorld = world;
- Includes = new TypeSet(typeof(scare2D.LifeTime));
- Excludes = new TypeSet();
- }
- public IRefEnumerator<scare2D.LifeTimeSystem.Group> GetEnumerator() => new _scare2D_dot_LifeTimeSystem_dot_Group_Enumerator(this);
- public IRefEnumerable<scare2D.LifeTimeSystem.Group> WithFilter(Func<SharedDataType, bool> filter) => new RefEnumeratorWrapper<scare2D.LifeTimeSystem.Group>(new _scare2D_dot_LifeTimeSystem_dot_Group_Enumerator_ReadOnlyFilter(this, filter));
- }
- public sealed class _scare2D_dot_PingPongSystem_dot_PingPong_Collection : IComponentCollection<scare2D.PingPongSystem.PingPong> {
- public sealed class _scare2D_dot_PingPongSystem_dot_PingPong_Enumerator : IRefEnumerator<scare2D.PingPongSystem.PingPong> {
- private _scare2D_dot_PingPongSystem_dot_PingPong_Collection collection;
- private scare2D.PingPongSystem.PingPong currentValue = new scare2D.PingPongSystem.PingPong();
- private IEnumerator<bool> moveNextEnumerator;
- public _scare2D_dot_PingPongSystem_dot_PingPong_Enumerator(_scare2D_dot_PingPongSystem_dot_PingPong_Collection collection) {
- this.collection = collection;
- }
- public ref scare2D.PingPongSystem.PingPong Current => ref currentValue;
- public bool MoveNext() {
- if(moveNextEnumerator == null) {
- moveNextEnumerator = MoveNextInternal();
- }
- return moveNextEnumerator.MoveNext();
- }
- public IEnumerator<bool> MoveNextInternal() {
- var handlesThatChangedSharedType = new RefList<EntityHandle>();
- foreach(var setType in collection.EntityWorld.Entities.Components) {
- bool keepSetType = setType.TypeSet.IsSupersetOf(collection.Includes);
- if(keepSetType == false) continue;
- foreach(var handle in handlesThatChangedSharedType) {
- collection.World.Entities.Components.CheckSharedDataTypeFor(handle);
- }
- handlesThatChangedSharedType.Clear();
- foreach(var set in setType) {
- var refList__scare2D_dot_Transform_null = set.GetRefList<scare2D.Transform>();
- var refList__scare2D_dot_BoxCollider_null = set.GetRefList<scare2D.BoxCollider>();
- var refList__scare2D_dot_PingPongComponent_null = set.GetRefList<scare2D.PingPongComponent>();
- System.Boolean _scare2D_dot_BoxCollider_canCollide = default;
- if(set.Handles.Count > 0) {
- _scare2D_dot_BoxCollider_canCollide = refList__scare2D_dot_BoxCollider_null[0].canCollide;
- }
- for(var i = 0; i < set.Handles.Count; ++i) {
- currentValue.transform = refList__scare2D_dot_Transform_null[i];
- currentValue.collider = refList__scare2D_dot_BoxCollider_null[i];
- currentValue.ball = refList__scare2D_dot_PingPongComponent_null[i];
- yield return true;
- refList__scare2D_dot_Transform_null[i] = currentValue.transform;
- refList__scare2D_dot_BoxCollider_null[i] = currentValue.collider;
- refList__scare2D_dot_PingPongComponent_null[i] = currentValue.ball;
- if(object.Equals(_scare2D_dot_BoxCollider_canCollide, currentValue.collider.canCollide) == false) {
- handlesThatChangedSharedType.Add(set.Handles[i]);
- }
- }
- }
- }
- foreach(var handle in handlesThatChangedSharedType) {
- collection.World.Entities.Components.CheckSharedDataTypeFor(handle);
- }
- }
- }
- public sealed class _scare2D_dot_PingPongSystem_dot_PingPong_Enumerator_ReadOnlyFilter : IRefEnumerator<scare2D.PingPongSystem.PingPong> {
- private Func<SharedDataType, bool> filter;
- private _scare2D_dot_PingPongSystem_dot_PingPong_Collection collection;
- private scare2D.PingPongSystem.PingPong currentValue = new scare2D.PingPongSystem.PingPong();
- private IEnumerator<bool> moveNextEnumerator;
- public _scare2D_dot_PingPongSystem_dot_PingPong_Enumerator_ReadOnlyFilter(_scare2D_dot_PingPongSystem_dot_PingPong_Collection collection, Func<SharedDataType, bool> filter) {
- this.collection = collection;
- this.filter = filter;
- }
- public ref scare2D.PingPongSystem.PingPong Current => ref currentValue;
- public bool MoveNext() {
- if(moveNextEnumerator == null) {
- moveNextEnumerator = MoveNextInternal();
- }
- return moveNextEnumerator.MoveNext();
- }
- public IEnumerator<bool> MoveNextInternal() {
- foreach(var setType in collection.EntityWorld.Entities.Components) {
- bool keepSetType = setType.TypeSet.IsSupersetOf(collection.Includes);
- if(keepSetType == false) continue;
- foreach(var set in setType) {
- if(filter(set.SharedDataType) == false) continue;
- var refList__scare2D_dot_Transform_null = set.GetRefList<scare2D.Transform>();
- var refList__scare2D_dot_BoxCollider_null = set.GetRefList<scare2D.BoxCollider>();
- var refList__scare2D_dot_PingPongComponent_null = set.GetRefList<scare2D.PingPongComponent>();
- if(set.Handles.Count > 0) {
- }
- for(var i = 0; i < set.Handles.Count; ++i) {
- currentValue.transform = refList__scare2D_dot_Transform_null[i];
- currentValue.collider = refList__scare2D_dot_BoxCollider_null[i];
- currentValue.ball = refList__scare2D_dot_PingPongComponent_null[i];
- yield return true;
- }
- }
- }
- }
- }
- public scare2D.PingPongSystem System => EntityWorld._scare2D_dot_PingPongSystem_null;
- public EntityWorld EntityWorld { get; }
- public TypeSet Includes { get; }
- public TypeSet Excludes { get; }
- public IEntityWorld World => EntityWorld;
- public _scare2D_dot_PingPongSystem_dot_PingPong_Collection(EntityWorld world) {
- EntityWorld = world;
- Includes = new TypeSet(typeof(scare2D.Transform), typeof(scare2D.BoxCollider), typeof(scare2D.PingPongComponent));
- Excludes = new TypeSet();
- }
- public IRefEnumerator<scare2D.PingPongSystem.PingPong> GetEnumerator() => new _scare2D_dot_PingPongSystem_dot_PingPong_Enumerator(this);
- public IRefEnumerable<scare2D.PingPongSystem.PingPong> WithFilter(Func<SharedDataType, bool> filter) => new RefEnumeratorWrapper<scare2D.PingPongSystem.PingPong>(new _scare2D_dot_PingPongSystem_dot_PingPong_Enumerator_ReadOnlyFilter(this, filter));
- }
- public sealed class _scare2D_dot_SpriteRendererSystem_dot_ItemGroup_Collection : IComponentCollection<scare2D.SpriteRendererSystem.ItemGroup> {
- public sealed class _scare2D_dot_SpriteRendererSystem_dot_ItemGroup_Enumerator : IRefEnumerator<scare2D.SpriteRendererSystem.ItemGroup> {
- private _scare2D_dot_SpriteRendererSystem_dot_ItemGroup_Collection collection;
- private scare2D.SpriteRendererSystem.ItemGroup currentValue = new scare2D.SpriteRendererSystem.ItemGroup();
- private IEnumerator<bool> moveNextEnumerator;
- public _scare2D_dot_SpriteRendererSystem_dot_ItemGroup_Enumerator(_scare2D_dot_SpriteRendererSystem_dot_ItemGroup_Collection collection) {
- this.collection = collection;
- }
- public ref scare2D.SpriteRendererSystem.ItemGroup Current => ref currentValue;
- public bool MoveNext() {
- if(moveNextEnumerator == null) {
- moveNextEnumerator = MoveNextInternal();
- }
- return moveNextEnumerator.MoveNext();
- }
- public IEnumerator<bool> MoveNextInternal() {
- foreach(var setType in collection.EntityWorld.Entities.Components) {
- bool keepSetType = setType.TypeSet.IsSupersetOf(collection.Includes);
- if(keepSetType == false) continue;
- foreach(var set in setType) {
- var refList__scare2D_dot_Transform_null = set.GetRefList<scare2D.Transform>();
- var refList__scare2D_dot_BoxCollider_null = set.GetRefList<scare2D.BoxCollider>();
- var refList__scare2D_dot_SpriteRenderer_null = set.GetRefList<scare2D.SpriteRenderer>();
- if(set.Handles.Count > 0) {
- currentValue.transform = refList__scare2D_dot_Transform_null[0];
- currentValue.collider = refList__scare2D_dot_BoxCollider_null[0];
- currentValue.renderer = refList__scare2D_dot_SpriteRenderer_null[0];
- collection.System.SetSharedState(currentValue, collection.EntityWorld._Microsoft_dot_Xna_dot_Framework_dot_Content_dot_ContentManager_null);
- }
- for(var i = 0; i < set.Handles.Count; ++i) {
- currentValue.transform = refList__scare2D_dot_Transform_null[i];
- currentValue.collider = refList__scare2D_dot_BoxCollider_null[i];
- currentValue.renderer = refList__scare2D_dot_SpriteRenderer_null[i];
- yield return true;
- }
- }
- }
- }
- }
- public sealed class _scare2D_dot_SpriteRendererSystem_dot_ItemGroup_Enumerator_ReadOnlyFilter : IRefEnumerator<scare2D.SpriteRendererSystem.ItemGroup> {
- private Func<SharedDataType, bool> filter;
- private _scare2D_dot_SpriteRendererSystem_dot_ItemGroup_Collection collection;
- private scare2D.SpriteRendererSystem.ItemGroup currentValue = new scare2D.SpriteRendererSystem.ItemGroup();
- private IEnumerator<bool> moveNextEnumerator;
- public _scare2D_dot_SpriteRendererSystem_dot_ItemGroup_Enumerator_ReadOnlyFilter(_scare2D_dot_SpriteRendererSystem_dot_ItemGroup_Collection collection, Func<SharedDataType, bool> filter) {
- this.collection = collection;
- this.filter = filter;
- }
- public ref scare2D.SpriteRendererSystem.ItemGroup Current => ref currentValue;
- public bool MoveNext() {
- if(moveNextEnumerator == null) {
- moveNextEnumerator = MoveNextInternal();
- }
- return moveNextEnumerator.MoveNext();
- }
- public IEnumerator<bool> MoveNextInternal() {
- foreach(var setType in collection.EntityWorld.Entities.Components) {
- bool keepSetType = setType.TypeSet.IsSupersetOf(collection.Includes);
- if(keepSetType == false) continue;
- foreach(var set in setType) {
- if(filter(set.SharedDataType) == false) continue;
- var refList__scare2D_dot_Transform_null = set.GetRefList<scare2D.Transform>();
- var refList__scare2D_dot_BoxCollider_null = set.GetRefList<scare2D.BoxCollider>();
- var refList__scare2D_dot_SpriteRenderer_null = set.GetRefList<scare2D.SpriteRenderer>();
- if(set.Handles.Count > 0) {
- currentValue.transform = refList__scare2D_dot_Transform_null[0];
- currentValue.collider = refList__scare2D_dot_BoxCollider_null[0];
- currentValue.renderer = refList__scare2D_dot_SpriteRenderer_null[0];
- collection.System.SetSharedState(currentValue, collection.EntityWorld._Microsoft_dot_Xna_dot_Framework_dot_Content_dot_ContentManager_null);
- }
- for(var i = 0; i < set.Handles.Count; ++i) {
- currentValue.transform = refList__scare2D_dot_Transform_null[i];
- currentValue.collider = refList__scare2D_dot_BoxCollider_null[i];
- currentValue.renderer = refList__scare2D_dot_SpriteRenderer_null[i];
- yield return true;
- }
- }
- }
- }
- }
- public scare2D.SpriteRendererSystem System => EntityWorld._scare2D_dot_SpriteRendererSystem_null;
- public EntityWorld EntityWorld { get; }
- public TypeSet Includes { get; }
- public TypeSet Excludes { get; }
- public IEntityWorld World => EntityWorld;
- public _scare2D_dot_SpriteRendererSystem_dot_ItemGroup_Collection(EntityWorld world) {
- EntityWorld = world;
- Includes = new TypeSet(typeof(scare2D.Transform), typeof(scare2D.BoxCollider), typeof(scare2D.SpriteRenderer));
- Excludes = new TypeSet();
- }
- public IRefEnumerator<scare2D.SpriteRendererSystem.ItemGroup> GetEnumerator() => new _scare2D_dot_SpriteRendererSystem_dot_ItemGroup_Enumerator(this);
- public IRefEnumerable<scare2D.SpriteRendererSystem.ItemGroup> WithFilter(Func<SharedDataType, bool> filter) => new RefEnumeratorWrapper<scare2D.SpriteRendererSystem.ItemGroup>(new _scare2D_dot_SpriteRendererSystem_dot_ItemGroup_Enumerator_ReadOnlyFilter(this, filter));
- }
- public sealed class _scare2D_dot_SpriteRendererSystem_dot_ItemGroup2_Collection : IComponentCollection<scare2D.SpriteRendererSystem.ItemGroup2> {
- public sealed class _scare2D_dot_SpriteRendererSystem_dot_ItemGroup2_Enumerator : IRefEnumerator<scare2D.SpriteRendererSystem.ItemGroup2> {
- private _scare2D_dot_SpriteRendererSystem_dot_ItemGroup2_Collection collection;
- private scare2D.SpriteRendererSystem.ItemGroup2 currentValue = new scare2D.SpriteRendererSystem.ItemGroup2();
- private IEnumerator<bool> moveNextEnumerator;
- public _scare2D_dot_SpriteRendererSystem_dot_ItemGroup2_Enumerator(_scare2D_dot_SpriteRendererSystem_dot_ItemGroup2_Collection collection) {
- this.collection = collection;
- }
- public ref scare2D.SpriteRendererSystem.ItemGroup2 Current => ref currentValue;
- public bool MoveNext() {
- if(moveNextEnumerator == null) {
- moveNextEnumerator = MoveNextInternal();
- }
- return moveNextEnumerator.MoveNext();
- }
- public IEnumerator<bool> MoveNextInternal() {
- foreach(var setType in collection.EntityWorld.Entities.Components) {
- bool keepSetType = setType.TypeSet.IsSupersetOf(collection.Includes);
- if(keepSetType == false) continue;
- foreach(var set in setType) {
- var refList__scare2D_dot_Transform2D_null = set.GetRefList<scare2D.Transform2D>();
- var refList__scare2D_dot_SpriteRenderer_null = set.GetRefList<scare2D.SpriteRenderer>();
- if(set.Handles.Count > 0) {
- currentValue.Transform = refList__scare2D_dot_Transform2D_null[0];
- currentValue.SpriteRenderer = refList__scare2D_dot_SpriteRenderer_null[0];
- collection.System.SetSharedState(currentValue, collection.EntityWorld._Microsoft_dot_Xna_dot_Framework_dot_Content_dot_ContentManager_null);
- }
- for(var i = 0; i < set.Handles.Count; ++i) {
- currentValue.Transform = refList__scare2D_dot_Transform2D_null[i];
- currentValue.SpriteRenderer = refList__scare2D_dot_SpriteRenderer_null[i];
- yield return true;
- }
- }
- }
- }
- }
- public sealed class _scare2D_dot_SpriteRendererSystem_dot_ItemGroup2_Enumerator_ReadOnlyFilter : IRefEnumerator<scare2D.SpriteRendererSystem.ItemGroup2> {
- private Func<SharedDataType, bool> filter;
- private _scare2D_dot_SpriteRendererSystem_dot_ItemGroup2_Collection collection;
- private scare2D.SpriteRendererSystem.ItemGroup2 currentValue = new scare2D.SpriteRendererSystem.ItemGroup2();
- private IEnumerator<bool> moveNextEnumerator;
- public _scare2D_dot_SpriteRendererSystem_dot_ItemGroup2_Enumerator_ReadOnlyFilter(_scare2D_dot_SpriteRendererSystem_dot_ItemGroup2_Collection collection, Func<SharedDataType, bool> filter) {
- this.collection = collection;
- this.filter = filter;
- }
- public ref scare2D.SpriteRendererSystem.ItemGroup2 Current => ref currentValue;
- public bool MoveNext() {
- if(moveNextEnumerator == null) {
- moveNextEnumerator = MoveNextInternal();
- }
- return moveNextEnumerator.MoveNext();
- }
- public IEnumerator<bool> MoveNextInternal() {
- foreach(var setType in collection.EntityWorld.Entities.Components) {
- bool keepSetType = setType.TypeSet.IsSupersetOf(collection.Includes);
- if(keepSetType == false) continue;
- foreach(var set in setType) {
- if(filter(set.SharedDataType) == false) continue;
- var refList__scare2D_dot_Transform2D_null = set.GetRefList<scare2D.Transform2D>();
- var refList__scare2D_dot_SpriteRenderer_null = set.GetRefList<scare2D.SpriteRenderer>();
- if(set.Handles.Count > 0) {
- currentValue.Transform = refList__scare2D_dot_Transform2D_null[0];
- currentValue.SpriteRenderer = refList__scare2D_dot_SpriteRenderer_null[0];
- collection.System.SetSharedState(currentValue, collection.EntityWorld._Microsoft_dot_Xna_dot_Framework_dot_Content_dot_ContentManager_null);
- }
- for(var i = 0; i < set.Handles.Count; ++i) {
- currentValue.Transform = refList__scare2D_dot_Transform2D_null[i];
- currentValue.SpriteRenderer = refList__scare2D_dot_SpriteRenderer_null[i];
- yield return true;
- }
- }
- }
- }
- }
- public scare2D.SpriteRendererSystem System => EntityWorld._scare2D_dot_SpriteRendererSystem_null;
- public EntityWorld EntityWorld { get; }
- public TypeSet Includes { get; }
- public TypeSet Excludes { get; }
- public IEntityWorld World => EntityWorld;
- public _scare2D_dot_SpriteRendererSystem_dot_ItemGroup2_Collection(EntityWorld world) {
- EntityWorld = world;
- Includes = new TypeSet(typeof(scare2D.Transform2D), typeof(scare2D.SpriteRenderer));
- Excludes = new TypeSet();
- }
- public IRefEnumerator<scare2D.SpriteRendererSystem.ItemGroup2> GetEnumerator() => new _scare2D_dot_SpriteRendererSystem_dot_ItemGroup2_Enumerator(this);
- public IRefEnumerable<scare2D.SpriteRendererSystem.ItemGroup2> WithFilter(Func<SharedDataType, bool> filter) => new RefEnumeratorWrapper<scare2D.SpriteRendererSystem.ItemGroup2>(new _scare2D_dot_SpriteRendererSystem_dot_ItemGroup2_Enumerator_ReadOnlyFilter(this, filter));
- }
- public sealed class _scare2D_dot_NameRendererSystem_dot_ItemGroup_Collection : IComponentCollection<scare2D.NameRendererSystem.ItemGroup> {
- public sealed class _scare2D_dot_NameRendererSystem_dot_ItemGroup_Enumerator : IRefEnumerator<scare2D.NameRendererSystem.ItemGroup> {
- private _scare2D_dot_NameRendererSystem_dot_ItemGroup_Collection collection;
- private scare2D.NameRendererSystem.ItemGroup currentValue = new scare2D.NameRendererSystem.ItemGroup();
- private IEnumerator<bool> moveNextEnumerator;
- public _scare2D_dot_NameRendererSystem_dot_ItemGroup_Enumerator(_scare2D_dot_NameRendererSystem_dot_ItemGroup_Collection collection) {
- this.collection = collection;
- }
- public ref scare2D.NameRendererSystem.ItemGroup Current => ref currentValue;
- public bool MoveNext() {
- if(moveNextEnumerator == null) {
- moveNextEnumerator = MoveNextInternal();
- }
- return moveNextEnumerator.MoveNext();
- }
- public IEnumerator<bool> MoveNextInternal() {
- foreach(var setType in collection.EntityWorld.Entities.Components) {
- bool keepSetType = setType.TypeSet.IsSupersetOf(collection.Includes) && setType.TypeSet.GetIntersection(collection.Excludes).IsEmpty;
- if(keepSetType == false) continue;
- foreach(var set in setType) {
- var refList__scare2D_dot_EntityHandle_null = set.GetRefList<scare2D.EntityHandle>();
- var refList__scare2D_dot_EntityName_null = set.GetRefList<scare2D.EntityName>();
- var refList__scare2D_dot_Transform_null = set.GetRefList<scare2D.Transform>();
- for(var i = 0; i < set.Handles.Count; ++i) {
- currentValue.handle = refList__scare2D_dot_EntityHandle_null[i];
- currentValue.entityName = refList__scare2D_dot_EntityName_null[i];
- currentValue.transform = refList__scare2D_dot_Transform_null[i];
- yield return true;
- }
- }
- }
- }
- }
- public sealed class _scare2D_dot_NameRendererSystem_dot_ItemGroup_Enumerator_ReadOnlyFilter : IRefEnumerator<scare2D.NameRendererSystem.ItemGroup> {
- private Func<SharedDataType, bool> filter;
- private _scare2D_dot_NameRendererSystem_dot_ItemGroup_Collection collection;
- private scare2D.NameRendererSystem.ItemGroup currentValue = new scare2D.NameRendererSystem.ItemGroup();
- private IEnumerator<bool> moveNextEnumerator;
- public _scare2D_dot_NameRendererSystem_dot_ItemGroup_Enumerator_ReadOnlyFilter(_scare2D_dot_NameRendererSystem_dot_ItemGroup_Collection collection, Func<SharedDataType, bool> filter) {
- this.collection = collection;
- this.filter = filter;
- }
- public ref scare2D.NameRendererSystem.ItemGroup Current => ref currentValue;
- public bool MoveNext() {
- if(moveNextEnumerator == null) {
- moveNextEnumerator = MoveNextInternal();
- }
- return moveNextEnumerator.MoveNext();
- }
- public IEnumerator<bool> MoveNextInternal() {
- foreach(var setType in collection.EntityWorld.Entities.Components) {
- bool keepSetType = setType.TypeSet.IsSupersetOf(collection.Includes) && setType.TypeSet.GetIntersection(collection.Excludes).IsEmpty;
- if(keepSetType == false) continue;
- foreach(var set in setType) {
- if(filter(set.SharedDataType) == false) continue;
- var refList__scare2D_dot_EntityHandle_null = set.GetRefList<scare2D.EntityHandle>();
- var refList__scare2D_dot_EntityName_null = set.GetRefList<scare2D.EntityName>();
- var refList__scare2D_dot_Transform_null = set.GetRefList<scare2D.Transform>();
- for(var i = 0; i < set.Handles.Count; ++i) {
- currentValue.handle = refList__scare2D_dot_EntityHandle_null[i];
- currentValue.entityName = refList__scare2D_dot_EntityName_null[i];
- currentValue.transform = refList__scare2D_dot_Transform_null[i];
- yield return true;
- }
- }
- }
- }
- }
- public scare2D.NameRendererSystem System => EntityWorld._scare2D_dot_NameRendererSystem_null;
- public EntityWorld EntityWorld { get; }
- public TypeSet Includes { get; }
- public TypeSet Excludes { get; }
- public IEntityWorld World => EntityWorld;
- public _scare2D_dot_NameRendererSystem_dot_ItemGroup_Collection(EntityWorld world) {
- EntityWorld = world;
- Includes = new TypeSet(typeof(scare2D.EntityName), typeof(scare2D.Transform));
- Excludes = new TypeSet(typeof(scare2D.BoxCollider));
- }
- public IRefEnumerator<scare2D.NameRendererSystem.ItemGroup> GetEnumerator() => new _scare2D_dot_NameRendererSystem_dot_ItemGroup_Enumerator(this);
- public IRefEnumerable<scare2D.NameRendererSystem.ItemGroup> WithFilter(Func<SharedDataType, bool> filter) => new RefEnumeratorWrapper<scare2D.NameRendererSystem.ItemGroup>(new _scare2D_dot_NameRendererSystem_dot_ItemGroup_Enumerator_ReadOnlyFilter(this, filter));
- }
- public sealed class _scare2D_dot_NameRendererSystem_dot_ItemGroup2_Collection : IComponentCollection<scare2D.NameRendererSystem.ItemGroup2> {
- public sealed class _scare2D_dot_NameRendererSystem_dot_ItemGroup2_Enumerator : IRefEnumerator<scare2D.NameRendererSystem.ItemGroup2> {
- private _scare2D_dot_NameRendererSystem_dot_ItemGroup2_Collection collection;
- private scare2D.NameRendererSystem.ItemGroup2 currentValue = new scare2D.NameRendererSystem.ItemGroup2();
- private IEnumerator<bool> moveNextEnumerator;
- public _scare2D_dot_NameRendererSystem_dot_ItemGroup2_Enumerator(_scare2D_dot_NameRendererSystem_dot_ItemGroup2_Collection collection) {
- this.collection = collection;
- }
- public ref scare2D.NameRendererSystem.ItemGroup2 Current => ref currentValue;
- public bool MoveNext() {
- if(moveNextEnumerator == null) {
- moveNextEnumerator = MoveNextInternal();
- }
- return moveNextEnumerator.MoveNext();
- }
- public IEnumerator<bool> MoveNextInternal() {
- foreach(var setType in collection.EntityWorld.Entities.Components) {
- bool keepSetType = setType.TypeSet.IsSupersetOf(collection.Includes);
- if(keepSetType == false) continue;
- foreach(var set in setType) {
- var refList__scare2D_dot_EntityHandle_null = set.GetRefList<scare2D.EntityHandle>();
- var refList__scare2D_dot_EntityName_null = set.GetRefList<scare2D.EntityName>();
- var refList__scare2D_dot_Transform_null = set.GetRefList<scare2D.Transform>();
- var refList__scare2D_dot_BoxCollider_null = set.GetRefList<scare2D.BoxCollider>();
- if(set.Handles.Count > 0) {
- }
- for(var i = 0; i < set.Handles.Count; ++i) {
- currentValue.handle = refList__scare2D_dot_EntityHandle_null[i];
- currentValue.entityName = refList__scare2D_dot_EntityName_null[i];
- currentValue.transform = refList__scare2D_dot_Transform_null[i];
- currentValue.collider = refList__scare2D_dot_BoxCollider_null[i];
- yield return true;
- }
- }
- }
- }
- }
- public sealed class _scare2D_dot_NameRendererSystem_dot_ItemGroup2_Enumerator_ReadOnlyFilter : IRefEnumerator<scare2D.NameRendererSystem.ItemGroup2> {
- private Func<SharedDataType, bool> filter;
- private _scare2D_dot_NameRendererSystem_dot_ItemGroup2_Collection collection;
- private scare2D.NameRendererSystem.ItemGroup2 currentValue = new scare2D.NameRendererSystem.ItemGroup2();
- private IEnumerator<bool> moveNextEnumerator;
- public _scare2D_dot_NameRendererSystem_dot_ItemGroup2_Enumerator_ReadOnlyFilter(_scare2D_dot_NameRendererSystem_dot_ItemGroup2_Collection collection, Func<SharedDataType, bool> filter) {
- this.collection = collection;
- this.filter = filter;
- }
- public ref scare2D.NameRendererSystem.ItemGroup2 Current => ref currentValue;
- public bool MoveNext() {
- if(moveNextEnumerator == null) {
- moveNextEnumerator = MoveNextInternal();
- }
- return moveNextEnumerator.MoveNext();
- }
- public IEnumerator<bool> MoveNextInternal() {
- foreach(var setType in collection.EntityWorld.Entities.Components) {
- bool keepSetType = setType.TypeSet.IsSupersetOf(collection.Includes);
- if(keepSetType == false) continue;
- foreach(var set in setType) {
- if(filter(set.SharedDataType) == false) continue;
- var refList__scare2D_dot_EntityHandle_null = set.GetRefList<scare2D.EntityHandle>();
- var refList__scare2D_dot_EntityName_null = set.GetRefList<scare2D.EntityName>();
- var refList__scare2D_dot_Transform_null = set.GetRefList<scare2D.Transform>();
- var refList__scare2D_dot_BoxCollider_null = set.GetRefList<scare2D.BoxCollider>();
- if(set.Handles.Count > 0) {
- }
- for(var i = 0; i < set.Handles.Count; ++i) {
- currentValue.handle = refList__scare2D_dot_EntityHandle_null[i];
- currentValue.entityName = refList__scare2D_dot_EntityName_null[i];
- currentValue.transform = refList__scare2D_dot_Transform_null[i];
- currentValue.collider = refList__scare2D_dot_BoxCollider_null[i];
- yield return true;
- }
- }
- }
- }
- }
- public scare2D.NameRendererSystem System => EntityWorld._scare2D_dot_NameRendererSystem_null;
- public EntityWorld EntityWorld { get; }
- public TypeSet Includes { get; }
- public TypeSet Excludes { get; }
- public IEntityWorld World => EntityWorld;
- public _scare2D_dot_NameRendererSystem_dot_ItemGroup2_Collection(EntityWorld world) {
- EntityWorld = world;
- Includes = new TypeSet(typeof(scare2D.EntityName), typeof(scare2D.Transform), typeof(scare2D.BoxCollider));
- Excludes = new TypeSet();
- }
- public IRefEnumerator<scare2D.NameRendererSystem.ItemGroup2> GetEnumerator() => new _scare2D_dot_NameRendererSystem_dot_ItemGroup2_Enumerator(this);
- public IRefEnumerable<scare2D.NameRendererSystem.ItemGroup2> WithFilter(Func<SharedDataType, bool> filter) => new RefEnumeratorWrapper<scare2D.NameRendererSystem.ItemGroup2>(new _scare2D_dot_NameRendererSystem_dot_ItemGroup2_Enumerator_ReadOnlyFilter(this, filter));
- }
- public sealed class _scare2D_dot_NameRendererSystem_dot_ItemGroup3_Collection : IComponentCollection<scare2D.NameRendererSystem.ItemGroup3> {
- public sealed class _scare2D_dot_NameRendererSystem_dot_ItemGroup3_Enumerator : IRefEnumerator<scare2D.NameRendererSystem.ItemGroup3> {
- private _scare2D_dot_NameRendererSystem_dot_ItemGroup3_Collection collection;
- private scare2D.NameRendererSystem.ItemGroup3 currentValue = new scare2D.NameRendererSystem.ItemGroup3();
- private IEnumerator<bool> moveNextEnumerator;
- public _scare2D_dot_NameRendererSystem_dot_ItemGroup3_Enumerator(_scare2D_dot_NameRendererSystem_dot_ItemGroup3_Collection collection) {
- this.collection = collection;
- }
- public ref scare2D.NameRendererSystem.ItemGroup3 Current => ref currentValue;
- public bool MoveNext() {
- if(moveNextEnumerator == null) {
- moveNextEnumerator = MoveNextInternal();
- }
- return moveNextEnumerator.MoveNext();
- }
- public IEnumerator<bool> MoveNextInternal() {
- foreach(var setType in collection.EntityWorld.Entities.Components) {
- bool keepSetType = setType.TypeSet.IsSupersetOf(collection.Includes) && setType.TypeSet.GetIntersection(collection.Excludes).IsEmpty;
- if(keepSetType == false) continue;
- foreach(var set in setType) {
- var refList__scare2D_dot_EntityHandle_null = set.GetRefList<scare2D.EntityHandle>();
- var refList__scare2D_dot_Transform_null = set.GetRefList<scare2D.Transform>();
- for(var i = 0; i < set.Handles.Count; ++i) {
- currentValue.handle = refList__scare2D_dot_EntityHandle_null[i];
- currentValue.transform = refList__scare2D_dot_Transform_null[i];
- yield return true;
- }
- }
- }
- }
- }
- public sealed class _scare2D_dot_NameRendererSystem_dot_ItemGroup3_Enumerator_ReadOnlyFilter : IRefEnumerator<scare2D.NameRendererSystem.ItemGroup3> {
- private Func<SharedDataType, bool> filter;
- private _scare2D_dot_NameRendererSystem_dot_ItemGroup3_Collection collection;
- private scare2D.NameRendererSystem.ItemGroup3 currentValue = new scare2D.NameRendererSystem.ItemGroup3();
- private IEnumerator<bool> moveNextEnumerator;
- public _scare2D_dot_NameRendererSystem_dot_ItemGroup3_Enumerator_ReadOnlyFilter(_scare2D_dot_NameRendererSystem_dot_ItemGroup3_Collection collection, Func<SharedDataType, bool> filter) {
- this.collection = collection;
- this.filter = filter;
- }
- public ref scare2D.NameRendererSystem.ItemGroup3 Current => ref currentValue;
- public bool MoveNext() {
- if(moveNextEnumerator == null) {
- moveNextEnumerator = MoveNextInternal();
- }
- return moveNextEnumerator.MoveNext();
- }
- public IEnumerator<bool> MoveNextInternal() {
- foreach(var setType in collection.EntityWorld.Entities.Components) {
- bool keepSetType = setType.TypeSet.IsSupersetOf(collection.Includes) && setType.TypeSet.GetIntersection(collection.Excludes).IsEmpty;
- if(keepSetType == false) continue;
- foreach(var set in setType) {
- if(filter(set.SharedDataType) == false) continue;
- var refList__scare2D_dot_EntityHandle_null = set.GetRefList<scare2D.EntityHandle>();
- var refList__scare2D_dot_Transform_null = set.GetRefList<scare2D.Transform>();
- for(var i = 0; i < set.Handles.Count; ++i) {
- currentValue.handle = refList__scare2D_dot_EntityHandle_null[i];
- currentValue.transform = refList__scare2D_dot_Transform_null[i];
- yield return true;
- }
- }
- }
- }
- }
- public scare2D.NameRendererSystem System => EntityWorld._scare2D_dot_NameRendererSystem_null;
- public EntityWorld EntityWorld { get; }
- public TypeSet Includes { get; }
- public TypeSet Excludes { get; }
- public IEntityWorld World => EntityWorld;
- public _scare2D_dot_NameRendererSystem_dot_ItemGroup3_Collection(EntityWorld world) {
- EntityWorld = world;
- Includes = new TypeSet(typeof(scare2D.Transform));
- Excludes = new TypeSet(typeof(scare2D.EntityName));
- }
- public IRefEnumerator<scare2D.NameRendererSystem.ItemGroup3> GetEnumerator() => new _scare2D_dot_NameRendererSystem_dot_ItemGroup3_Enumerator(this);
- public IRefEnumerable<scare2D.NameRendererSystem.ItemGroup3> WithFilter(Func<SharedDataType, bool> filter) => new RefEnumeratorWrapper<scare2D.NameRendererSystem.ItemGroup3>(new _scare2D_dot_NameRendererSystem_dot_ItemGroup3_Enumerator_ReadOnlyFilter(this, filter));
- }
- public sealed class _scare2D_dot_BoxColliderRendererSystem_dot_ItemGroup_Collection : IComponentCollection<scare2D.BoxColliderRendererSystem.ItemGroup> {
- public sealed class _scare2D_dot_BoxColliderRendererSystem_dot_ItemGroup_Enumerator : IRefEnumerator<scare2D.BoxColliderRendererSystem.ItemGroup> {
- private _scare2D_dot_BoxColliderRendererSystem_dot_ItemGroup_Collection collection;
- private scare2D.BoxColliderRendererSystem.ItemGroup currentValue = new scare2D.BoxColliderRendererSystem.ItemGroup();
- private IEnumerator<bool> moveNextEnumerator;
- public _scare2D_dot_BoxColliderRendererSystem_dot_ItemGroup_Enumerator(_scare2D_dot_BoxColliderRendererSystem_dot_ItemGroup_Collection collection) {
- this.collection = collection;
- }
- public ref scare2D.BoxColliderRendererSystem.ItemGroup Current => ref currentValue;
- public bool MoveNext() {
- if(moveNextEnumerator == null) {
- moveNextEnumerator = MoveNextInternal();
- }
- return moveNextEnumerator.MoveNext();
- }
- public IEnumerator<bool> MoveNextInternal() {
- var handlesThatChangedSharedType = new RefList<EntityHandle>();
- foreach(var setType in collection.EntityWorld.Entities.Components) {
- bool keepSetType = setType.TypeSet.IsSupersetOf(collection.Includes);
- if(keepSetType == false) continue;
- foreach(var handle in handlesThatChangedSharedType) {
- collection.World.Entities.Components.CheckSharedDataTypeFor(handle);
- }
- handlesThatChangedSharedType.Clear();
- foreach(var set in setType) {
- var refList__scare2D_dot_Transform_null = set.GetRefList<scare2D.Transform>();
- var refList__scare2D_dot_BoxCollider_null = set.GetRefList<scare2D.BoxCollider>();
- System.Boolean _scare2D_dot_BoxCollider_canCollide = default;
- if(set.Handles.Count > 0) {
- _scare2D_dot_BoxCollider_canCollide = refList__scare2D_dot_BoxCollider_null[0].canCollide;
- }
- for(var i = 0; i < set.Handles.Count; ++i) {
- currentValue.transform = refList__scare2D_dot_Transform_null[i];
- currentValue.collider = refList__scare2D_dot_BoxCollider_null[i];
- yield return true;
- refList__scare2D_dot_Transform_null[i] = currentValue.transform;
- refList__scare2D_dot_BoxCollider_null[i] = currentValue.collider;
- if(object.Equals(_scare2D_dot_BoxCollider_canCollide, currentValue.collider.canCollide) == false) {
- handlesThatChangedSharedType.Add(set.Handles[i]);
- }
- }
- }
- }
- foreach(var handle in handlesThatChangedSharedType) {
- collection.World.Entities.Components.CheckSharedDataTypeFor(handle);
- }
- }
- }
- public sealed class _scare2D_dot_BoxColliderRendererSystem_dot_ItemGroup_Enumerator_ReadOnlyFilter : IRefEnumerator<scare2D.BoxColliderRendererSystem.ItemGroup> {
- private Func<SharedDataType, bool> filter;
- private _scare2D_dot_BoxColliderRendererSystem_dot_ItemGroup_Collection collection;
- private scare2D.BoxColliderRendererSystem.ItemGroup currentValue = new scare2D.BoxColliderRendererSystem.ItemGroup();
- private IEnumerator<bool> moveNextEnumerator;
- public _scare2D_dot_BoxColliderRendererSystem_dot_ItemGroup_Enumerator_ReadOnlyFilter(_scare2D_dot_BoxColliderRendererSystem_dot_ItemGroup_Collection collection, Func<SharedDataType, bool> filter) {
- this.collection = collection;
- this.filter = filter;
- }
- public ref scare2D.BoxColliderRendererSystem.ItemGroup Current => ref currentValue;
- public bool MoveNext() {
- if(moveNextEnumerator == null) {
- moveNextEnumerator = MoveNextInternal();
- }
- return moveNextEnumerator.MoveNext();
- }
- public IEnumerator<bool> MoveNextInternal() {
- foreach(var setType in collection.EntityWorld.Entities.Components) {
- bool keepSetType = setType.TypeSet.IsSupersetOf(collection.Includes);
- if(keepSetType == false) continue;
- foreach(var set in setType) {
- if(filter(set.SharedDataType) == false) continue;
- var refList__scare2D_dot_Transform_null = set.GetRefList<scare2D.Transform>();
- var refList__scare2D_dot_BoxCollider_null = set.GetRefList<scare2D.BoxCollider>();
- if(set.Handles.Count > 0) {
- }
- for(var i = 0; i < set.Handles.Count; ++i) {
- currentValue.transform = refList__scare2D_dot_Transform_null[i];
- currentValue.collider = refList__scare2D_dot_BoxCollider_null[i];
- yield return true;
- }
- }
- }
- }
- }
- public scare2D.BoxColliderRendererSystem System => EntityWorld._scare2D_dot_BoxColliderRendererSystem_null;
- public EntityWorld EntityWorld { get; }
- public TypeSet Includes { get; }
- public TypeSet Excludes { get; }
- public IEntityWorld World => EntityWorld;
- public _scare2D_dot_BoxColliderRendererSystem_dot_ItemGroup_Collection(EntityWorld world) {
- EntityWorld = world;
- Includes = new TypeSet(typeof(scare2D.Transform), typeof(scare2D.BoxCollider));
- Excludes = new TypeSet();
- }
- public IRefEnumerator<scare2D.BoxColliderRendererSystem.ItemGroup> GetEnumerator() => new _scare2D_dot_BoxColliderRendererSystem_dot_ItemGroup_Enumerator(this);
- public IRefEnumerable<scare2D.BoxColliderRendererSystem.ItemGroup> WithFilter(Func<SharedDataType, bool> filter) => new RefEnumeratorWrapper<scare2D.BoxColliderRendererSystem.ItemGroup>(new _scare2D_dot_BoxColliderRendererSystem_dot_ItemGroup_Enumerator_ReadOnlyFilter(this, filter));
- }
- public sealed class _scare2D_dot_TextureRotatorSystem_dot_ItemGroup_Collection : IComponentCollection<scare2D.TextureRotatorSystem.ItemGroup> {
- public sealed class _scare2D_dot_TextureRotatorSystem_dot_ItemGroup_Enumerator : IRefEnumerator<scare2D.TextureRotatorSystem.ItemGroup> {
- private _scare2D_dot_TextureRotatorSystem_dot_ItemGroup_Collection collection;
- private scare2D.TextureRotatorSystem.ItemGroup currentValue = new scare2D.TextureRotatorSystem.ItemGroup();
- private IEnumerator<bool> moveNextEnumerator;
- public _scare2D_dot_TextureRotatorSystem_dot_ItemGroup_Enumerator(_scare2D_dot_TextureRotatorSystem_dot_ItemGroup_Collection collection) {
- this.collection = collection;
- }
- public ref scare2D.TextureRotatorSystem.ItemGroup Current => ref currentValue;
- public bool MoveNext() {
- if(moveNextEnumerator == null) {
- moveNextEnumerator = MoveNextInternal();
- }
- return moveNextEnumerator.MoveNext();
- }
- public IEnumerator<bool> MoveNextInternal() {
- var handlesThatChangedSharedType = new RefList<EntityHandle>();
- foreach(var setType in collection.EntityWorld.Entities.Components) {
- bool keepSetType = setType.TypeSet.IsSupersetOf(collection.Includes);
- if(keepSetType == false) continue;
- foreach(var handle in handlesThatChangedSharedType) {
- collection.World.Entities.Components.CheckSharedDataTypeFor(handle);
- }
- handlesThatChangedSharedType.Clear();
- foreach(var set in setType) {
- var refList__scare2D_dot_SpriteRenderer_null = set.GetRefList<scare2D.SpriteRenderer>();
- var refList__scare2D_dot_TextureRotator_null = set.GetRefList<scare2D.TextureRotator>();
- System.String _scare2D_dot_SpriteRenderer_textureName = default;
- if(set.Handles.Count > 0) {
- _scare2D_dot_SpriteRenderer_textureName = refList__scare2D_dot_SpriteRenderer_null[0].textureName;
- }
- for(var i = 0; i < set.Handles.Count; ++i) {
- currentValue.SpriteRenderer = refList__scare2D_dot_SpriteRenderer_null[i];
- currentValue.TextureRotator = refList__scare2D_dot_TextureRotator_null[i];
- yield return true;
- refList__scare2D_dot_SpriteRenderer_null[i] = currentValue.SpriteRenderer;
- refList__scare2D_dot_TextureRotator_null[i] = currentValue.TextureRotator;
- if(_scare2D_dot_SpriteRenderer_textureName != currentValue.SpriteRenderer.textureName) {
- handlesThatChangedSharedType.Add(set.Handles[i]);
- }
- }
- }
- }
- foreach(var handle in handlesThatChangedSharedType) {
- collection.World.Entities.Components.CheckSharedDataTypeFor(handle);
- }
- }
- }
- public sealed class _scare2D_dot_TextureRotatorSystem_dot_ItemGroup_Enumerator_ReadOnlyFilter : IRefEnumerator<scare2D.TextureRotatorSystem.ItemGroup> {
- private Func<SharedDataType, bool> filter;
- private _scare2D_dot_TextureRotatorSystem_dot_ItemGroup_Collection collection;
- private scare2D.TextureRotatorSystem.ItemGroup currentValue = new scare2D.TextureRotatorSystem.ItemGroup();
- private IEnumerator<bool> moveNextEnumerator;
- public _scare2D_dot_TextureRotatorSystem_dot_ItemGroup_Enumerator_ReadOnlyFilter(_scare2D_dot_TextureRotatorSystem_dot_ItemGroup_Collection collection, Func<SharedDataType, bool> filter) {
- this.collection = collection;
- this.filter = filter;
- }
- public ref scare2D.TextureRotatorSystem.ItemGroup Current => ref currentValue;
- public bool MoveNext() {
- if(moveNextEnumerator == null) {
- moveNextEnumerator = MoveNextInternal();
- }
- return moveNextEnumerator.MoveNext();
- }
- public IEnumerator<bool> MoveNextInternal() {
- foreach(var setType in collection.EntityWorld.Entities.Components) {
- bool keepSetType = setType.TypeSet.IsSupersetOf(collection.Includes);
- if(keepSetType == false) continue;
- foreach(var set in setType) {
- if(filter(set.SharedDataType) == false) continue;
- var refList__scare2D_dot_SpriteRenderer_null = set.GetRefList<scare2D.SpriteRenderer>();
- var refList__scare2D_dot_TextureRotator_null = set.GetRefList<scare2D.TextureRotator>();
- if(set.Handles.Count > 0) {
- }
- for(var i = 0; i < set.Handles.Count; ++i) {
- currentValue.SpriteRenderer = refList__scare2D_dot_SpriteRenderer_null[i];
- currentValue.TextureRotator = refList__scare2D_dot_TextureRotator_null[i];
- yield return true;
- }
- }
- }
- }
- }
- public scare2D.TextureRotatorSystem System => EntityWorld._scare2D_dot_TextureRotatorSystem_null;
- public EntityWorld EntityWorld { get; }
- public TypeSet Includes { get; }
- public TypeSet Excludes { get; }
- public IEntityWorld World => EntityWorld;
- public _scare2D_dot_TextureRotatorSystem_dot_ItemGroup_Collection(EntityWorld world) {
- EntityWorld = world;
- Includes = new TypeSet(typeof(scare2D.SpriteRenderer), typeof(scare2D.TextureRotator));
- Excludes = new TypeSet();
- }
- public IRefEnumerator<scare2D.TextureRotatorSystem.ItemGroup> GetEnumerator() => new _scare2D_dot_TextureRotatorSystem_dot_ItemGroup_Enumerator(this);
- public IRefEnumerable<scare2D.TextureRotatorSystem.ItemGroup> WithFilter(Func<SharedDataType, bool> filter) => new RefEnumeratorWrapper<scare2D.TextureRotatorSystem.ItemGroup>(new _scare2D_dot_TextureRotatorSystem_dot_ItemGroup_Enumerator_ReadOnlyFilter(this, filter));
- }
- public sealed class _scare2D_dot_AutoLerpTransformEndFixedUpdateSystem_dot_AutoLerpGroup_Collection : IComponentCollection<scare2D.AutoLerpTransformEndFixedUpdateSystem.AutoLerpGroup> {
- public sealed class _scare2D_dot_AutoLerpTransformEndFixedUpdateSystem_dot_AutoLerpGroup_Enumerator : IRefEnumerator<scare2D.AutoLerpTransformEndFixedUpdateSystem.AutoLerpGroup> {
- private _scare2D_dot_AutoLerpTransformEndFixedUpdateSystem_dot_AutoLerpGroup_Collection collection;
- private scare2D.AutoLerpTransformEndFixedUpdateSystem.AutoLerpGroup currentValue = new scare2D.AutoLerpTransformEndFixedUpdateSystem.AutoLerpGroup();
- private IEnumerator<bool> moveNextEnumerator;
- public _scare2D_dot_AutoLerpTransformEndFixedUpdateSystem_dot_AutoLerpGroup_Enumerator(_scare2D_dot_AutoLerpTransformEndFixedUpdateSystem_dot_AutoLerpGroup_Collection collection) {
- this.collection = collection;
- }
- public ref scare2D.AutoLerpTransformEndFixedUpdateSystem.AutoLerpGroup Current => ref currentValue;
- public bool MoveNext() {
- if(moveNextEnumerator == null) {
- moveNextEnumerator = MoveNextInternal();
- }
- return moveNextEnumerator.MoveNext();
- }
- public IEnumerator<bool> MoveNextInternal() {
- foreach(var setType in collection.EntityWorld.Entities.Components) {
- bool keepSetType = setType.TypeSet.IsSupersetOf(collection.Includes);
- if(keepSetType == false) continue;
- foreach(var set in setType) {
- var refList__scare2D_dot_Transform2D_null = set.GetRefList<scare2D.Transform2D>();
- var refList__scare2D_dot_AutoLerpTransformComponent_null = set.GetRefList<scare2D.AutoLerpTransformComponent>();
- for(var i = 0; i < set.Handles.Count; ++i) {
- currentValue.Transform = refList__scare2D_dot_Transform2D_null[i];
- currentValue.AutoLerp = refList__scare2D_dot_AutoLerpTransformComponent_null[i];
- yield return true;
- refList__scare2D_dot_Transform2D_null[i] = currentValue.Transform;
- refList__scare2D_dot_AutoLerpTransformComponent_null[i] = currentValue.AutoLerp;
- }
- }
- }
- }
- }
- public sealed class _scare2D_dot_AutoLerpTransformEndFixedUpdateSystem_dot_AutoLerpGroup_Enumerator_ReadOnlyFilter : IRefEnumerator<scare2D.AutoLerpTransformEndFixedUpdateSystem.AutoLerpGroup> {
- private Func<SharedDataType, bool> filter;
- private _scare2D_dot_AutoLerpTransformEndFixedUpdateSystem_dot_AutoLerpGroup_Collection collection;
- private scare2D.AutoLerpTransformEndFixedUpdateSystem.AutoLerpGroup currentValue = new scare2D.AutoLerpTransformEndFixedUpdateSystem.AutoLerpGroup();
- private IEnumerator<bool> moveNextEnumerator;
- public _scare2D_dot_AutoLerpTransformEndFixedUpdateSystem_dot_AutoLerpGroup_Enumerator_ReadOnlyFilter(_scare2D_dot_AutoLerpTransformEndFixedUpdateSystem_dot_AutoLerpGroup_Collection collection, Func<SharedDataType, bool> filter) {
- this.collection = collection;
- this.filter = filter;
- }
- public ref scare2D.AutoLerpTransformEndFixedUpdateSystem.AutoLerpGroup Current => ref currentValue;
- public bool MoveNext() {
- if(moveNextEnumerator == null) {
- moveNextEnumerator = MoveNextInternal();
- }
- return moveNextEnumerator.MoveNext();
- }
- public IEnumerator<bool> MoveNextInternal() {
- foreach(var setType in collection.EntityWorld.Entities.Components) {
- bool keepSetType = setType.TypeSet.IsSupersetOf(collection.Includes);
- if(keepSetType == false) continue;
- foreach(var set in setType) {
- if(filter(set.SharedDataType) == false) continue;
- var refList__scare2D_dot_Transform2D_null = set.GetRefList<scare2D.Transform2D>();
- var refList__scare2D_dot_AutoLerpTransformComponent_null = set.GetRefList<scare2D.AutoLerpTransformComponent>();
- for(var i = 0; i < set.Handles.Count; ++i) {
- currentValue.Transform = refList__scare2D_dot_Transform2D_null[i];
- currentValue.AutoLerp = refList__scare2D_dot_AutoLerpTransformComponent_null[i];
- yield return true;
- }
- }
- }
- }
- }
- public scare2D.AutoLerpTransformEndFixedUpdateSystem System => EntityWorld._scare2D_dot_AutoLerpTransformEndFixedUpdateSystem_null;
- public EntityWorld EntityWorld { get; }
- public TypeSet Includes { get; }
- public TypeSet Excludes { get; }
- public IEntityWorld World => EntityWorld;
- public _scare2D_dot_AutoLerpTransformEndFixedUpdateSystem_dot_AutoLerpGroup_Collection(EntityWorld world) {
- EntityWorld = world;
- Includes = new TypeSet(typeof(scare2D.Transform2D), typeof(scare2D.AutoLerpTransformComponent));
- Excludes = new TypeSet();
- }
- public IRefEnumerator<scare2D.AutoLerpTransformEndFixedUpdateSystem.AutoLerpGroup> GetEnumerator() => new _scare2D_dot_AutoLerpTransformEndFixedUpdateSystem_dot_AutoLerpGroup_Enumerator(this);
- public IRefEnumerable<scare2D.AutoLerpTransformEndFixedUpdateSystem.AutoLerpGroup> WithFilter(Func<SharedDataType, bool> filter) => new RefEnumeratorWrapper<scare2D.AutoLerpTransformEndFixedUpdateSystem.AutoLerpGroup>(new _scare2D_dot_AutoLerpTransformEndFixedUpdateSystem_dot_AutoLerpGroup_Enumerator_ReadOnlyFilter(this, filter));
- }
- public sealed class _scare2D_dot_RigidBody2DVelocityRendererSystem_dot_ItemGroup_Collection : IComponentCollection<scare2D.RigidBody2DVelocityRendererSystem.ItemGroup> {
- public sealed class _scare2D_dot_RigidBody2DVelocityRendererSystem_dot_ItemGroup_Enumerator : IRefEnumerator<scare2D.RigidBody2DVelocityRendererSystem.ItemGroup> {
- private _scare2D_dot_RigidBody2DVelocityRendererSystem_dot_ItemGroup_Collection collection;
- private scare2D.RigidBody2DVelocityRendererSystem.ItemGroup currentValue = new scare2D.RigidBody2DVelocityRendererSystem.ItemGroup();
- private IEnumerator<bool> moveNextEnumerator;
- public _scare2D_dot_RigidBody2DVelocityRendererSystem_dot_ItemGroup_Enumerator(_scare2D_dot_RigidBody2DVelocityRendererSystem_dot_ItemGroup_Collection collection) {
- this.collection = collection;
- }
- public ref scare2D.RigidBody2DVelocityRendererSystem.ItemGroup Current => ref currentValue;
- public bool MoveNext() {
- if(moveNextEnumerator == null) {
- moveNextEnumerator = MoveNextInternal();
- }
- return moveNextEnumerator.MoveNext();
- }
- public IEnumerator<bool> MoveNextInternal() {
- foreach(var setType in collection.EntityWorld.Entities.Components) {
- bool keepSetType = setType.TypeSet.IsSupersetOf(collection.Includes);
- if(keepSetType == false) continue;
- foreach(var set in setType) {
- var refList__scare2D_dot_Transform2D_null = set.GetRefList<scare2D.Transform2D>();
- var refList__scare2D_dot_RigidBody2D_null = set.GetRefList<scare2D.RigidBody2D>();
- if(set.Handles.Count > 0) {
- }
- for(var i = 0; i < set.Handles.Count; ++i) {
- currentValue.Transform = refList__scare2D_dot_Transform2D_null[i];
- currentValue.RigidBody = refList__scare2D_dot_RigidBody2D_null[i];
- yield return true;
- }
- }
- }
- }
- }
- public sealed class _scare2D_dot_RigidBody2DVelocityRendererSystem_dot_ItemGroup_Enumerator_ReadOnlyFilter : IRefEnumerator<scare2D.RigidBody2DVelocityRendererSystem.ItemGroup> {
- private Func<SharedDataType, bool> filter;
- private _scare2D_dot_RigidBody2DVelocityRendererSystem_dot_ItemGroup_Collection collection;
- private scare2D.RigidBody2DVelocityRendererSystem.ItemGroup currentValue = new scare2D.RigidBody2DVelocityRendererSystem.ItemGroup();
- private IEnumerator<bool> moveNextEnumerator;
- public _scare2D_dot_RigidBody2DVelocityRendererSystem_dot_ItemGroup_Enumerator_ReadOnlyFilter(_scare2D_dot_RigidBody2DVelocityRendererSystem_dot_ItemGroup_Collection collection, Func<SharedDataType, bool> filter) {
- this.collection = collection;
- this.filter = filter;
- }
- public ref scare2D.RigidBody2DVelocityRendererSystem.ItemGroup Current => ref currentValue;
- public bool MoveNext() {
- if(moveNextEnumerator == null) {
- moveNextEnumerator = MoveNextInternal();
- }
- return moveNextEnumerator.MoveNext();
- }
- public IEnumerator<bool> MoveNextInternal() {
- foreach(var setType in collection.EntityWorld.Entities.Components) {
- bool keepSetType = setType.TypeSet.IsSupersetOf(collection.Includes);
- if(keepSetType == false) continue;
- foreach(var set in setType) {
- if(filter(set.SharedDataType) == false) continue;
- var refList__scare2D_dot_Transform2D_null = set.GetRefList<scare2D.Transform2D>();
- var refList__scare2D_dot_RigidBody2D_null = set.GetRefList<scare2D.RigidBody2D>();
- if(set.Handles.Count > 0) {
- }
- for(var i = 0; i < set.Handles.Count; ++i) {
- currentValue.Transform = refList__scare2D_dot_Transform2D_null[i];
- currentValue.RigidBody = refList__scare2D_dot_RigidBody2D_null[i];
- yield return true;
- }
- }
- }
- }
- }
- public scare2D.RigidBody2DVelocityRendererSystem System => EntityWorld._scare2D_dot_RigidBody2DVelocityRendererSystem_null;
- public EntityWorld EntityWorld { get; }
- public TypeSet Includes { get; }
- public TypeSet Excludes { get; }
- public IEntityWorld World => EntityWorld;
- public _scare2D_dot_RigidBody2DVelocityRendererSystem_dot_ItemGroup_Collection(EntityWorld world) {
- EntityWorld = world;
- Includes = new TypeSet(typeof(scare2D.Transform2D), typeof(scare2D.RigidBody2D));
- Excludes = new TypeSet();
- }
- public IRefEnumerator<scare2D.RigidBody2DVelocityRendererSystem.ItemGroup> GetEnumerator() => new _scare2D_dot_RigidBody2DVelocityRendererSystem_dot_ItemGroup_Enumerator(this);
- public IRefEnumerable<scare2D.RigidBody2DVelocityRendererSystem.ItemGroup> WithFilter(Func<SharedDataType, bool> filter) => new RefEnumeratorWrapper<scare2D.RigidBody2DVelocityRendererSystem.ItemGroup>(new _scare2D_dot_RigidBody2DVelocityRendererSystem_dot_ItemGroup_Enumerator_ReadOnlyFilter(this, filter));
- }
- public sealed class _scare2D_dot_ReadOnlyGenericGroup_scare2D_dot_Manifold2D__Collection : IComponentCollection<scare2D.ReadOnlyGenericGroup<scare2D.Manifold2D>> {
- public sealed class _scare2D_dot_ReadOnlyGenericGroup_scare2D_dot_Manifold2D__Enumerator : IRefEnumerator<scare2D.ReadOnlyGenericGroup<scare2D.Manifold2D>> {
- private _scare2D_dot_ReadOnlyGenericGroup_scare2D_dot_Manifold2D__Collection collection;
- private scare2D.ReadOnlyGenericGroup<scare2D.Manifold2D> currentValue = new scare2D.ReadOnlyGenericGroup<scare2D.Manifold2D>();
- private IEnumerator<bool> moveNextEnumerator;
- public _scare2D_dot_ReadOnlyGenericGroup_scare2D_dot_Manifold2D__Enumerator(_scare2D_dot_ReadOnlyGenericGroup_scare2D_dot_Manifold2D__Collection collection) {
- this.collection = collection;
- }
- public ref scare2D.ReadOnlyGenericGroup<scare2D.Manifold2D> Current => ref currentValue;
- public bool MoveNext() {
- if(moveNextEnumerator == null) {
- moveNextEnumerator = MoveNextInternal();
- }
- return moveNextEnumerator.MoveNext();
- }
- public IEnumerator<bool> MoveNextInternal() {
- foreach(var setType in collection.EntityWorld.Entities.Components) {
- bool keepSetType = setType.TypeSet.IsSupersetOf(collection.Includes);
- if(keepSetType == false) continue;
- foreach(var set in setType) {
- var refList__scare2D_dot_Manifold2D_null = set.GetRefList<scare2D.Manifold2D>();
- for(var i = 0; i < set.Handles.Count; ++i) {
- currentValue.Component = refList__scare2D_dot_Manifold2D_null[i];
- yield return true;
- }
- }
- }
- }
- }
- public sealed class _scare2D_dot_ReadOnlyGenericGroup_scare2D_dot_Manifold2D__Enumerator_ReadOnlyFilter : IRefEnumerator<scare2D.ReadOnlyGenericGroup<scare2D.Manifold2D>> {
- private Func<SharedDataType, bool> filter;
- private _scare2D_dot_ReadOnlyGenericGroup_scare2D_dot_Manifold2D__Collection collection;
- private scare2D.ReadOnlyGenericGroup<scare2D.Manifold2D> currentValue = new scare2D.ReadOnlyGenericGroup<scare2D.Manifold2D>();
- private IEnumerator<bool> moveNextEnumerator;
- public _scare2D_dot_ReadOnlyGenericGroup_scare2D_dot_Manifold2D__Enumerator_ReadOnlyFilter(_scare2D_dot_ReadOnlyGenericGroup_scare2D_dot_Manifold2D__Collection collection, Func<SharedDataType, bool> filter) {
- this.collection = collection;
- this.filter = filter;
- }
- public ref scare2D.ReadOnlyGenericGroup<scare2D.Manifold2D> Current => ref currentValue;
- public bool MoveNext() {
- if(moveNextEnumerator == null) {
- moveNextEnumerator = MoveNextInternal();
- }
- return moveNextEnumerator.MoveNext();
- }
- public IEnumerator<bool> MoveNextInternal() {
- foreach(var setType in collection.EntityWorld.Entities.Components) {
- bool keepSetType = setType.TypeSet.IsSupersetOf(collection.Includes);
- if(keepSetType == false) continue;
- foreach(var set in setType) {
- if(filter(set.SharedDataType) == false) continue;
- var refList__scare2D_dot_Manifold2D_null = set.GetRefList<scare2D.Manifold2D>();
- for(var i = 0; i < set.Handles.Count; ++i) {
- currentValue.Component = refList__scare2D_dot_Manifold2D_null[i];
- yield return true;
- }
- }
- }
- }
- }
- public scare2D.Manifold2DRendererSystem System => EntityWorld._scare2D_dot_Manifold2DRendererSystem_null;
- public EntityWorld EntityWorld { get; }
- public TypeSet Includes { get; }
- public TypeSet Excludes { get; }
- public IEntityWorld World => EntityWorld;
- public _scare2D_dot_ReadOnlyGenericGroup_scare2D_dot_Manifold2D__Collection(EntityWorld world) {
- EntityWorld = world;
- Includes = new TypeSet(typeof(scare2D.Manifold2D));
- Excludes = new TypeSet();
- }
- public IRefEnumerator<scare2D.ReadOnlyGenericGroup<scare2D.Manifold2D>> GetEnumerator() => new _scare2D_dot_ReadOnlyGenericGroup_scare2D_dot_Manifold2D__Enumerator(this);
- public IRefEnumerable<scare2D.ReadOnlyGenericGroup<scare2D.Manifold2D>> WithFilter(Func<SharedDataType, bool> filter) => new RefEnumeratorWrapper<scare2D.ReadOnlyGenericGroup<scare2D.Manifold2D>>(new _scare2D_dot_ReadOnlyGenericGroup_scare2D_dot_Manifold2D__Enumerator_ReadOnlyFilter(this, filter));
- }
- public sealed class EntityWorldFormatter : BaseSerializationFormatter<EntityWorld> {
- public override void Serialize(Type objectType, object obj, ISerializeContext context)
- {
- var world = (EntityWorld)obj;
- context.Serialize(world.Entities);
- }
- public override IEnumerator<object> Deserialize(Type objectType, IDeserializeContext context)
- {
- var world = new EntityWorld();
- yield return world;
- var entities = context.Deserialize<EntityManager>();
- world.Entities = entities;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement