2024-04-23 15:10:49 +00:00
|
|
|
--!optimize 2
|
|
|
|
--!native
|
|
|
|
|
|
|
|
local ReplicatedStorage = game:GetService("ReplicatedStorage")
|
|
|
|
local Matter = require(ReplicatedStorage.DevPackages.Matter)
|
|
|
|
local ecr = require(ReplicatedStorage.DevPackages.ecr)
|
2024-05-04 23:52:01 +00:00
|
|
|
local jecs = require(ReplicatedStorage.Lib)
|
2024-04-23 15:10:49 +00:00
|
|
|
local newWorld = Matter.World.new()
|
|
|
|
local ecs = jecs.World.new()
|
|
|
|
|
|
|
|
return {
|
|
|
|
ParameterGenerator = function()
|
2024-05-04 23:52:01 +00:00
|
|
|
local registry2 = ecr.registry()
|
2024-04-23 15:10:49 +00:00
|
|
|
|
|
|
|
return registry2
|
2024-10-12 20:18:11 +00:00
|
|
|
end,
|
2024-04-23 15:10:49 +00:00
|
|
|
|
|
|
|
Functions = {
|
2024-05-04 23:52:01 +00:00
|
|
|
Matter = function()
|
|
|
|
for i = 1, 1000 do
|
|
|
|
newWorld:spawn()
|
|
|
|
end
|
2024-10-12 20:18:11 +00:00
|
|
|
end,
|
2024-05-04 23:52:01 +00:00
|
|
|
|
|
|
|
ECR = function(_, registry2)
|
|
|
|
for i = 1, 1000 do
|
|
|
|
registry2.create()
|
|
|
|
end
|
2024-10-12 20:18:11 +00:00
|
|
|
end,
|
2024-05-04 23:52:01 +00:00
|
|
|
|
|
|
|
Jecs = function()
|
|
|
|
for i = 1, 1000 do
|
|
|
|
ecs:entity()
|
|
|
|
end
|
2024-10-12 20:18:11 +00:00
|
|
|
end,
|
|
|
|
},
|
2024-04-23 15:10:49 +00:00
|
|
|
}
|