mirror of
				https://github.com/Ukendio/jecs.git
				synced 2025-10-31 17:20:32 +00:00 
			
		
		
		
	Compare commits
	
		
			7 commits
		
	
	
		
			b7cc9d5461
			...
			d5425fce82
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
|  | d5425fce82 | ||
|  | af13ea9f5f | ||
|  | 61e0df82ae | ||
|  | 1a7b1b02b6 | ||
|  | 872e5c9cdb | ||
|  | 4c5e5e1968 | ||
|  | 3815c62442 | 
					 6 changed files with 17 additions and 14 deletions
				
			
		|  | @ -56,17 +56,21 @@ world:set(PreSimulation, Event, RunService.PreSimulation) | |||
| world:add(PreAnimation, Phase) | ||||
| world:set(PreAnimation, Event, RunService.PreAnimation) | ||||
| 
 | ||||
| table.insert(jabby.public, { | ||||
| 	class_name = "World", | ||||
| jabby.register({ | ||||
| 	applet = jabby.applets.world, | ||||
| 	name = "MyWorld", | ||||
| 	configuration = { | ||||
| 	world = world, | ||||
| 	debug = Name, | ||||
| 	entities = {}, | ||||
| 	}, | ||||
| }) | ||||
| 
 | ||||
| jabby.public.updated = true | ||||
| 
 | ||||
| table.insert(jabby.public, jabby_scheduler) | ||||
| jabby.register({ | ||||
| 	applet = jabby.applets.scheduler, | ||||
| 	name = "Scheduler", | ||||
| 	configuration = { | ||||
| 		scheduler = jabby_scheduler, | ||||
| 	}, | ||||
| }) | ||||
| 
 | ||||
| if RunService:IsClient() then  | ||||
| 	world:add(PreRender, Phase) | ||||
|  |  | |||
|  | @ -5,4 +5,4 @@ registry = "https://github.com/UpliftGames/wally-index" | |||
| realm = "shared" | ||||
| 
 | ||||
| [dependencies] | ||||
| jabby = "alicesaidhi/jabby@0.2.0-rc.3" | ||||
| jabby = "alicesaidhi/jabby@0.2.0-rc.9" | ||||
|  |  | |||
|  | @ -15,7 +15,7 @@ Add the following to your wally configuration: | |||
| ::: code-group | ||||
| 
 | ||||
| ```toml [wally.toml] | ||||
| jecs = "ukendio/jecs@0.2.3" | ||||
| jecs = "ukendio/jecs@0.5.3" | ||||
| ``` | ||||
| 
 | ||||
| ::: | ||||
|  |  | |||
|  | @ -870,7 +870,7 @@ local function world_set(world: World, entity: i53, id: i53, data: unknown): () | |||
| 
 | ||||
| 	local on_set = idr_hooks.on_set | ||||
| 	if on_set then | ||||
| 		invoke_hook(on_set, entity, data) | ||||
| 		on_set(entity, data) | ||||
| 	end | ||||
| end | ||||
| 
 | ||||
|  | @ -899,7 +899,7 @@ local function world_remove(world: World, entity: i53, id: i53) | |||
| 	end | ||||
| 	local to = archetype_traverse_remove(world, id, from) | ||||
| 
 | ||||
| 	if from and not (from == to) then | ||||
| 	if from ~= to then | ||||
| 		local idr = world.component_index[id] | ||||
| 		local on_remove = idr.hooks.on_remove | ||||
| 		if on_remove then | ||||
|  | @ -946,7 +946,6 @@ local function archetype_delete(world: World, archetype: Archetype, row: number, | |||
| 		end | ||||
| 
 | ||||
| 		entities[row] = move | ||||
| 		delete = entities[row] | ||||
| 	end | ||||
| 
 | ||||
| 	for _, id in id_types do | ||||
|  |  | |||
|  | @ -1,6 +1,6 @@ | |||
| { | ||||
| 	"name": "@rbxts/jecs", | ||||
| 	"version": "0.5.3", | ||||
| 	"version": "0.5.4", | ||||
| 	"description": "Stupidly fast Entity Component System", | ||||
| 	"main": "jecs.luau", | ||||
| 	"repository": { | ||||
|  |  | |||
|  | @ -1,6 +1,6 @@ | |||
| [package] | ||||
| name = "ukendio/jecs" | ||||
| version = "0.5.3" | ||||
| version = "0.5.4" | ||||
| registry = "https://github.com/UpliftGames/wally-index" | ||||
| realm = "shared" | ||||
| license = "MIT" | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue