mirror of
				https://github.com/Ukendio/jecs.git
				synced 2025-11-04 10:59:18 +00:00 
			
		
		
		
	Fix hooks types (#226)
	
		
			
	
		
	
	
		
	
		
			Some checks failed
		
		
	
	
	
				
					
				
			
		
			Some checks failed
		
		
	
	
* fix hooks types * add generic types
This commit is contained in:
		
							parent
							
								
									a31db7b17b
								
							
						
					
					
						commit
						378a9a45ff
					
				
					 1 changed files with 4 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -2650,10 +2650,10 @@ return {
 | 
			
		|||
	tag = (ECS_TAG :: any) :: <T>() -> Entity<T>,
 | 
			
		||||
	meta = (ECS_META :: any) :: <T>(id: Entity, id: Id<T>, value: T) -> Entity<T>,
 | 
			
		||||
	is_tag = (ecs_is_tag :: any) :: <T>(World, Id<T>) -> boolean,
 | 
			
		||||
 | 
			
		||||
	OnAdd = EcsOnAdd :: Entity<(entity: Entity) -> ()>,
 | 
			
		||||
	OnRemove = EcsOnRemove :: Entity<(entity: Entity) -> ()>,
 | 
			
		||||
	OnChange = EcsOnChange :: Entity<(entity: Entity, data: any) -> ()>,
 | 
			
		||||
	
 | 
			
		||||
    OnAdd = EcsOnAdd :: Entity<<T>(entity: Entity, id: Id<T>, data: T) -> ()>,
 | 
			
		||||
	OnRemove = EcsOnRemove :: Entity<(entity: Entity, id: Id) -> ()>,
 | 
			
		||||
	OnChange = EcsOnChange :: Entity<<T>(entity: Entity, id: Id<T>, data: T) -> ()>,
 | 
			
		||||
	ChildOf = EcsChildOf :: Entity,
 | 
			
		||||
	Component = EcsComponent :: Entity,
 | 
			
		||||
	Wildcard = EcsWildcard :: Entity,
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue