mirror of
				https://github.com/Ukendio/jecs.git
				synced 2025-11-04 10:59:18 +00:00 
			
		
		
		
	Compare commits
	
		
			2 commits
		
	
	
		
			3815c62442
			...
			872e5c9cdb
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 
							 | 
						872e5c9cdb | ||
| 
							 | 
						4c5e5e1968 | 
					 3 changed files with 13 additions and 9 deletions
				
			
		| 
						 | 
					@ -56,17 +56,21 @@ world:set(PreSimulation, Event, RunService.PreSimulation)
 | 
				
			||||||
world:add(PreAnimation, Phase)
 | 
					world:add(PreAnimation, Phase)
 | 
				
			||||||
world:set(PreAnimation, Event, RunService.PreAnimation)
 | 
					world:set(PreAnimation, Event, RunService.PreAnimation)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
table.insert(jabby.public, {
 | 
					jabby.register({
 | 
				
			||||||
	class_name = "World",
 | 
						applet = jabby.applets.world,
 | 
				
			||||||
	name = "MyWorld",
 | 
						name = "MyWorld",
 | 
				
			||||||
 | 
						configuration = {
 | 
				
			||||||
	world = world,
 | 
						world = world,
 | 
				
			||||||
	debug = Name,
 | 
						},
 | 
				
			||||||
	entities = {},
 | 
					 | 
				
			||||||
})
 | 
					})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
jabby.public.updated = true
 | 
					jabby.register({
 | 
				
			||||||
 | 
						applet = jabby.applets.scheduler,
 | 
				
			||||||
table.insert(jabby.public, jabby_scheduler)
 | 
						name = "Scheduler",
 | 
				
			||||||
 | 
						configuration = {
 | 
				
			||||||
 | 
							scheduler = jabby_scheduler,
 | 
				
			||||||
 | 
						},
 | 
				
			||||||
 | 
					})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if RunService:IsClient() then 
 | 
					if RunService:IsClient() then 
 | 
				
			||||||
	world:add(PreRender, Phase)
 | 
						world:add(PreRender, Phase)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -5,4 +5,4 @@ registry = "https://github.com/UpliftGames/wally-index"
 | 
				
			||||||
realm = "shared"
 | 
					realm = "shared"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[dependencies]
 | 
					[dependencies]
 | 
				
			||||||
jabby = "alicesaidhi/jabby@0.2.0-rc.3"
 | 
					jabby = "alicesaidhi/jabby@0.2.0-rc.9"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -899,7 +899,7 @@ local function world_remove(world: World, entity: i53, id: i53)
 | 
				
			||||||
	end
 | 
						end
 | 
				
			||||||
	local to = archetype_traverse_remove(world, id, from)
 | 
						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 idr = world.component_index[id]
 | 
				
			||||||
		local on_remove = idr.hooks.on_remove
 | 
							local on_remove = idr.hooks.on_remove
 | 
				
			||||||
		if on_remove then
 | 
							if on_remove then
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue