Skip to content

Commit

Permalink
Fix lints
Browse files Browse the repository at this point in the history
  • Loading branch information
memorycode committed Oct 20, 2024
1 parent fd9b4a6 commit 2a8a862
Showing 1 changed file with 1 addition and 23 deletions.
24 changes: 1 addition & 23 deletions lib/World.luau
Original file line number Diff line number Diff line change
Expand Up @@ -477,28 +477,6 @@ function World:spawnAt(id: number, ...)
return id
end

function World:_newQueryArchetype(queryArchetype)
if self._queryCache[queryArchetype] == nil then
self._queryCache[queryArchetype] = {}
else
return -- Archetype isn't actually new
end

for entityArchetype in self.storage do
if areArchetypesCompatible(queryArchetype, entityArchetype) then
self._queryCache[queryArchetype][entityArchetype] = true
end
end
end

function World:_updateQueryCache(entityArchetype)
for queryArchetype, compatibleArchetypes in pairs(self._queryCache) do
if areArchetypesCompatible(queryArchetype, entityArchetype) then
compatibleArchetypes[entityArchetype] = true
end
end
end

--[=[
Replaces a given entity by ID with an entirely new set of components.
Equivalent to removing all components from an entity, and then adding these ones.
Expand Down Expand Up @@ -557,7 +535,7 @@ end
--[=[
Gets a specific component (or set of components) from a specific entity in this world.
@param id number -- The entity ID
@param entityId number -- The entity ID
@param ... Component -- The components to fetch
@return ... -- Returns the component values in the same order they were passed in
]=]
Expand Down

0 comments on commit 2a8a862

Please sign in to comment.