You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: meta/3rd/luaecs/library/ecs.lua
+4-29Lines changed: 4 additions & 29 deletions
Original file line number
Diff line number
Diff line change
@@ -79,15 +79,6 @@ end
79
79
functionmeta:select(pat)
80
80
end
81
81
82
-
---Sync C memory data to the iter which contains the index id and component id by then pattern the entity meet.
83
-
---Read component with in, and write component to C which with out.
84
-
---This is a additional featur, we use select most times.
85
-
---@parampatstring #pattern whcih the iter specified entity meet.
86
-
---@paramiterITER # {pool index, cid}
87
-
---@seeECSWorld#_sync
88
-
functionmeta:sync(pat, iter)
89
-
end
90
-
91
82
---Sync all then component of the eneity represent by a iter
92
83
---@paramiternumber|ITER #ITER or entity id
93
84
---@returntable
@@ -121,15 +112,6 @@ end
121
112
functionmeta:update(tagname)
122
113
end
123
114
124
-
---Select a singleton component. Singleton component only hava a instance, the pool index is 1.
125
-
---`pattern` and `iter` must gived or not the same time.
126
-
---@paramnamestring Component name
127
-
---@parampattern?string #key [opt inout] , opt is : or ?, inout is in, out, update, like t:in, b:out, id?update. **Used to select other component into the Singleton Component.
128
-
---@paramiter?table # when give, is update and return it.
0 commit comments