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-10-12 19:28:41 +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()
|
2024-05-10 15:59:57 +00:00
|
|
|
local mirror = require(ReplicatedStorage.mirror)
|
|
|
|
local mcs = mirror.World.new()
|
2024-04-23 15:10:49 +00:00
|
|
|
|
|
|
|
local A1 = Matter.component()
|
|
|
|
local A2 = Matter.component()
|
|
|
|
local A3 = Matter.component()
|
|
|
|
local A4 = Matter.component()
|
|
|
|
local A5 = Matter.component()
|
|
|
|
local A6 = Matter.component()
|
|
|
|
local A7 = Matter.component()
|
|
|
|
local A8 = Matter.component()
|
|
|
|
|
|
|
|
local B1 = ecr.component()
|
|
|
|
local B2 = ecr.component()
|
|
|
|
local B3 = ecr.component()
|
|
|
|
local B4 = ecr.component()
|
|
|
|
local B5 = ecr.component()
|
|
|
|
local B6 = ecr.component()
|
|
|
|
local B7 = ecr.component()
|
|
|
|
local B8 = ecr.component()
|
|
|
|
|
|
|
|
local C1 = ecs:entity()
|
|
|
|
local C2 = ecs:entity()
|
|
|
|
local C3 = ecs:entity()
|
|
|
|
local C4 = ecs:entity()
|
|
|
|
local C5 = ecs:entity()
|
|
|
|
local C6 = ecs:entity()
|
|
|
|
local C7 = ecs:entity()
|
|
|
|
local C8 = ecs:entity()
|
2024-05-10 15:59:57 +00:00
|
|
|
local E1 = mcs:entity()
|
|
|
|
local E2 = mcs:entity()
|
|
|
|
local E3 = mcs:entity()
|
|
|
|
local E4 = mcs:entity()
|
|
|
|
local E5 = mcs:entity()
|
|
|
|
local E6 = mcs:entity()
|
|
|
|
local E7 = mcs:entity()
|
|
|
|
local E8 = mcs:entity()
|
|
|
|
|
2024-04-23 15:10:49 +00:00
|
|
|
local registry2 = ecr.registry()
|
|
|
|
return {
|
|
|
|
ParameterGenerator = function()
|
|
|
|
return
|
|
|
|
end,
|
|
|
|
|
|
|
|
Functions = {
|
2024-10-12 19:28:41 +00:00
|
|
|
Matter = function()
|
|
|
|
local e = newWorld:spawn()
|
|
|
|
for i = 1, 5000 do
|
|
|
|
newWorld:insert(
|
|
|
|
e,
|
|
|
|
A1({ value = true }),
|
|
|
|
A2({ value = true }),
|
|
|
|
A3({ value = true }),
|
|
|
|
A4({ value = true }),
|
|
|
|
A5({ value = true }),
|
|
|
|
A6({ value = true }),
|
|
|
|
A7({ value = true }),
|
|
|
|
A8({ value = true })
|
|
|
|
)
|
|
|
|
end
|
2024-04-23 15:10:49 +00:00
|
|
|
end,
|
|
|
|
|
2024-10-12 19:28:41 +00:00
|
|
|
ECR = function()
|
|
|
|
local e = registry2.create()
|
|
|
|
for i = 1, 5000 do
|
|
|
|
registry2:set(e, B1, { value = false })
|
|
|
|
registry2:set(e, B2, { value = false })
|
|
|
|
registry2:set(e, B3, { value = false })
|
|
|
|
registry2:set(e, B4, { value = false })
|
|
|
|
registry2:set(e, B5, { value = false })
|
|
|
|
registry2:set(e, B6, { value = false })
|
|
|
|
registry2:set(e, B7, { value = false })
|
|
|
|
registry2:set(e, B8, { value = false })
|
|
|
|
end
|
2024-04-23 15:10:49 +00:00
|
|
|
end,
|
|
|
|
|
2024-10-12 19:28:41 +00:00
|
|
|
Jecs = function()
|
|
|
|
local e = ecs:entity()
|
|
|
|
for i = 1, 5000 do
|
|
|
|
ecs:set(e, C1, { value = false })
|
|
|
|
ecs:set(e, C2, { value = false })
|
|
|
|
ecs:set(e, C3, { value = false })
|
|
|
|
ecs:set(e, C4, { value = false })
|
|
|
|
ecs:set(e, C5, { value = false })
|
|
|
|
ecs:set(e, C6, { value = false })
|
|
|
|
ecs:set(e, C7, { value = false })
|
|
|
|
ecs:set(e, C8, { value = false })
|
|
|
|
end
|
2024-05-10 15:59:57 +00:00
|
|
|
end,
|
2024-04-23 15:10:49 +00:00
|
|
|
},
|
|
|
|
}
|