mirror of
				https://github.com/Ukendio/jecs.git
				synced 2025-11-03 18:39:19 +00:00 
			
		
		
		
	Make cleanup conditions
This commit is contained in:
		
							parent
							
								
									54b21001ab
								
							
						
					
					
						commit
						012b5e2bfa
					
				
					 1 changed files with 5 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -3004,8 +3004,10 @@ local function world_new()
 | 
			
		|||
	inner_world_set(world, EcsWildcard, EcsName, "jecs.Wildcard")
 | 
			
		||||
	inner_world_set(world, EcsChildOf, EcsName, "jecs.ChildOf")
 | 
			
		||||
	inner_world_set(world, EcsComponent, EcsName, "jecs.Component")
 | 
			
		||||
 | 
			
		||||
	inner_world_set(world, EcsOnDelete, EcsName, "jecs.OnDelete")
 | 
			
		||||
	inner_world_set(world, EcsOnDeleteTarget, EcsName, "jecs.OnDeleteTarget")
 | 
			
		||||
 | 
			
		||||
	inner_world_set(world, EcsDelete, EcsName, "jecs.Delete")
 | 
			
		||||
	inner_world_set(world, EcsRemove, EcsName, "jecs.Remove")
 | 
			
		||||
	inner_world_set(world, EcsName, EcsName, "jecs.Name")
 | 
			
		||||
| 
						 | 
				
			
			@ -3014,6 +3016,9 @@ local function world_new()
 | 
			
		|||
	inner_world_add(world, EcsChildOf, ECS_PAIR(EcsOnDeleteTarget, EcsDelete))
 | 
			
		||||
	inner_world_add(world, EcsChildOf, EcsExclusive)
 | 
			
		||||
 | 
			
		||||
	inner_world_add(world, EcsOnDelete, EcsExclusive)
 | 
			
		||||
	inner_world_add(world, EcsOnDeleteTarget, EcsExclusive)
 | 
			
		||||
 | 
			
		||||
	for i = EcsRest + 1, ecs_max_tag_id do
 | 
			
		||||
		entity_index_new_id(entity_index)
 | 
			
		||||
	end
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue