mirror of
				https://github.com/Ukendio/jecs.git
				synced 2025-11-04 10:59:18 +00:00 
			
		
		
		
	Merge branch 'main' into documentation-update
This commit is contained in:
		
						commit
						a9b45f13e5
					
				
					 2 changed files with 4 additions and 3 deletions
				
			
		
							
								
								
									
										3
									
								
								jecs.d.ts
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										3
									
								
								jecs.d.ts
									
									
									
									
										vendored
									
									
								
							| 
						 | 
					@ -120,6 +120,7 @@ export class World {
 | 
				
			||||||
	 * @returns An entity (Tag) with no data.
 | 
						 * @returns An entity (Tag) with no data.
 | 
				
			||||||
	 */
 | 
						 */
 | 
				
			||||||
	entity(): Tag;
 | 
						entity(): Tag;
 | 
				
			||||||
 | 
						entity<T extends Entity>(id: T): InferComponent<T> extends undefined ? Tag : T;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	/**
 | 
						/**
 | 
				
			||||||
	 * Creates a new entity in the first 256 IDs, typically used for static
 | 
						 * Creates a new entity in the first 256 IDs, typically used for static
 | 
				
			||||||
| 
						 | 
					@ -148,7 +149,7 @@ export class World {
 | 
				
			||||||
	 * @param entity The target entity.
 | 
						 * @param entity The target entity.
 | 
				
			||||||
	 * @param component The component (or tag) to add.
 | 
						 * @param component The component (or tag) to add.
 | 
				
			||||||
	 */
 | 
						 */
 | 
				
			||||||
	add(entity: Entity, component: Id<undefined>): void;
 | 
						add<C>(entity: Entity, component: undefined extends InferComponent<C> ? C : Id<undefined>): void;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	/**
 | 
						/**
 | 
				
			||||||
	 * Assigns a value to a component on the given entity.
 | 
						 * Assigns a value to a component on the given entity.
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										4
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										4
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							| 
						 | 
					@ -1,12 +1,12 @@
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	"name": "@rbxts/jecs",
 | 
						"name": "@rbxts/jecs",
 | 
				
			||||||
	"version": "0.6.0-rc.1",
 | 
						"version": "0.6.0",
 | 
				
			||||||
	"lockfileVersion": 3,
 | 
						"lockfileVersion": 3,
 | 
				
			||||||
	"requires": true,
 | 
						"requires": true,
 | 
				
			||||||
	"packages": {
 | 
						"packages": {
 | 
				
			||||||
		"": {
 | 
							"": {
 | 
				
			||||||
			"name": "@rbxts/jecs",
 | 
								"name": "@rbxts/jecs",
 | 
				
			||||||
			"version": "0.6.0-rc.1",
 | 
								"version": "0.6.0",
 | 
				
			||||||
			"license": "MIT",
 | 
								"license": "MIT",
 | 
				
			||||||
			"devDependencies": {
 | 
								"devDependencies": {
 | 
				
			||||||
				"@rbxts/compiler-types": "^2.3.0-types.1",
 | 
									"@rbxts/compiler-types": "^2.3.0-types.1",
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue