🐳chore(库): 调整submodule
parent
7f57515820
commit
b582805df0
@ -1 +0,0 @@
|
|||||||
Subproject commit 2d6546b99b7f42b53824fdd89a62780e94252a46
|
|
||||||
File diff suppressed because it is too large
Load Diff
@ -1,51 +1,31 @@
|
|||||||
-- test sort
|
|
||||||
|
|
||||||
local ecs = require "ecs"
|
local ecs = require "ecs"
|
||||||
|
|
||||||
local w = ecs.world()
|
local w = ecs.world()
|
||||||
|
|
||||||
w:register {
|
w:register {
|
||||||
name = "data",
|
name = "value",
|
||||||
type = "float",
|
type = "int",
|
||||||
}
|
}
|
||||||
|
|
||||||
w:register {
|
w:register {
|
||||||
name = "index",
|
name = "mark"
|
||||||
type = "int",
|
|
||||||
}
|
}
|
||||||
|
|
||||||
local tmp = { 10,9,8,7,6,5,4,3,2,1 }
|
w:new {
|
||||||
|
value = 1,
|
||||||
for i = 1, 10, 2 do
|
mark = true,
|
||||||
w:new { data = tmp[i], index = tmp[i] }
|
}
|
||||||
w:new { index = tmp[i+1] }
|
|
||||||
end
|
|
||||||
|
|
||||||
w:update()
|
|
||||||
|
|
||||||
for v in w:select "index data?in" do
|
|
||||||
print(v.data)
|
|
||||||
end
|
|
||||||
|
|
||||||
w:sort("sort", "index")
|
|
||||||
|
|
||||||
print "sorted"
|
|
||||||
|
|
||||||
for v in w:select "sort data:in index:in" do
|
|
||||||
print(v.data, v.index)
|
|
||||||
end
|
|
||||||
|
|
||||||
w:register {
|
w:new {
|
||||||
name = "sorted_index",
|
mark = true,
|
||||||
type = "int",
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for i = 1, 10 do
|
|
||||||
w:new { data = i * 0.5 , sorted_index = i * 2 }
|
|
||||||
end
|
|
||||||
|
|
||||||
for v in w:select "sorted_index:in data?in" do
|
for v in w:select "mark" do
|
||||||
print(v.sorted_index, "=>", v.data)
|
w:sync("value?in", v)
|
||||||
|
print(v.value)
|
||||||
end
|
end
|
||||||
|
|
||||||
--w:remove(iter)
|
for v in w:select "mark" do
|
||||||
|
print(pcall(w.sync, w, "value:in", v))
|
||||||
|
end
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,15 @@
|
|||||||
|
https://www.cnblogs.com/lucky9322/p/14922842.html
|
||||||
|
|
||||||
|
NoSQLBooster for MongoDB 基于 Electro 编写 asar 打包,所以我们能够解包修改代码并重新打包
|
||||||
|
|
||||||
|
1.安装工具
|
||||||
|
npm install asar -g
|
||||||
|
|
||||||
|
2.解包
|
||||||
|
进入 /Applications/NoSQLBooster for MongoDB.app/Contents/Resources
|
||||||
|
|
||||||
|
3.修改 app\shared\lmCore.js 里的 MAX_TRIAL_DAYS 和 TRIAL_DAYS 值
|
||||||
|
MAX_TRIAL_DAYS=999999,TRIAL_DAYS=999999
|
||||||
|
|
||||||
|
4.打包,打包完之后删除 app 文件夹
|
||||||
|
asar pack app app.asar
|
||||||
Loading…
Reference in New Issue